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

Broken on alpine:3.11 (docker) #2

Open
jceloria opened this issue Dec 9, 2020 · 1 comment
Open

Broken on alpine:3.11 (docker) #2

jceloria opened this issue Dec 9, 2020 · 1 comment

Comments

@jceloria
Copy link

jceloria commented Dec 9, 2020

/ # apk -vv info | grep -E '^(apache2-[0-9]|php7-[0-9])'
apache2-2.4.43-r0 - A high performance Unix-based HTTP server
php7-7.3.18-r0 - The PHP7 language runtime engine
[Wed Dec 09 20:45:28.462029 2020] [php7:notice] [pid 206] [client 184.21.64.185:50523] PHP Notice:  Undefined offset: 1 in /var/www/<redacted>/plugins/PicoFotofolder/PicoFotofolder.php on line 40
[Wed Dec 09 20:45:28.462088 2020] [php7:notice] [pid 206] [client 184.21.64.185:50523] PHP Notice:  Undefined offset: 2 in /var/www/<redacted>/plugins/PicoFotofolder/PicoFotofolder.php on line 40
[Wed Dec 09 20:45:28.462244 2020] [php7:warn] [pid 206] [client 184.21.64.185:50523] PHP Warning:  Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' (this will throw an Error in a future version of PHP) in /var/www/<redacted>/plugins/PicoFotofolder/PicoFotofolder.php on line 106
[Wed Dec 09 20:45:28.462266 2020] [php7:warn] [pid 206] [client 184.21.64.185:50523] PHP Warning:  glob() expects parameter 2 to be int, string given in /var/www/<redacted>/plugins/PicoFotofolder/PicoFotofolder.php on line 106
[Wed Dec 09 20:45:28.462300 2020] [php7:warn] [pid 206] [client 184.21.64.185:50523] PHP Warning:  usort() expects parameter 1 to be array, null given in /var/www/<redacted>/plugins/PicoFotofolder/PicoFotofolder.php on line 107
[Wed Dec 09 20:45:28.462308 2020] [php7:warn] [pid 206] [client 184.21.64.185:50523] PHP Warning:  Invalid argument supplied for foreach() in /var/www/<redacted>/plugins/PicoFotofolder/PicoFotofolder.php on line 116

I found this:
zendframework/zend-stdlib#58

@maloja
Copy link
Owner

maloja commented Dec 13, 2020

Thanks for your hint about the behavoir of musl libc. I'll see if i can fix this. At the moment i have no alpine environment. Affected Line:

 $filelist = glob($dir . '/' . $pattern, GLOB_BRACE);
		usort($filelist, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));

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

2 participants