On Fri, 03 Aug 2012 10:34:08 +0200, Sebastian Harl wrote: > > So I did some debugging: > > If the dir has no subdirs: > > php -r 'var_dump(glob("/etc/pnp4nagios/templates.d/*", GLOB_ONLYDIR));' > > PHP Warning: PHP Startup: Unable to load dynamic library > > '/usr/lib/php5/20100525/suhosin.so' - /usr/lib/php5/20100525/suhosin.so: > > cannot open shared object file: No such file or directory in Unknown on > > line 0 > > bool(false)
As expected, this works fine on a (pure) wheezy system: % mkdir /tmp/foo % php -r 'var_dump(glob("/tmp/foo/*", GLOB_ONLYDIR));' array(0) { } > > So I guess the problem is that my PHP doesn't return an empty array but > > false, which is also documented to be the case on "some systems": > > http://php.net/manual/en/function.glob.php > Right. I suppose PHP uses the glob(3) function from libc, so you're > "mixed" setup might cause that problem. I fully agree that this should > be fixed, but the question is if this bug is to be considered RC. I'm a bit skeptical, too ... > Anyway, since the patch is fairly trivial, I'll try to get it into > Wheezy -- after all, there might be other architectures / setups that > would cause this problem as well. Doesn't seem to have happened yet :) Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Didier Squiban: Suite de gavottes des montagnes
signature.asc
Description: Digital signature