Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS metadata files break the library #68

Open
jay-knight opened this issue Dec 12, 2023 · 0 comments
Open

MacOS metadata files break the library #68

jay-knight opened this issue Dec 12, 2023 · 0 comments

Comments

@jay-knight
Copy link

We ran into a problem where some MacOS metadata files (see https://apple.stackexchange.com/questions/14980/why-are-dot-underscore-files-created-and-how-can-i-avoid-them) got included in the deployment to production. This broke the library because files like vendor/ircmaxell/random-lib/lib/RandomLib/Mixer/._McryptRijndael128.php existed, and AbstractFactory::loadFiles() tried to load them, resulting in

PHP Fatal error: Uncaught ReflectionException: Class RandomLib\\Mixer\\._McryptRijndael128 does not exist in
[snip]/vendor/ircmaxell/security-lib/lib/SecurityLib/AbstractFactory.php:50 

Redeploying without those files fixed the problem.

However, consider adding a check that the file is a "real" php file. Or perhaps catch that exception, error_log() a message and skip that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant