Summary: | glob(...) broken in php 4.3.8 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alex Schultz <aschultz> |
Component: | [OLD] Development | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alex Schultz
2004-07-21 05:30:41 UTC
you linked to an upstream bug that was fixed in 4.3.7, and i've never seen it myself, somewhere you are in error. well it's in php 4.3.8 in the gentoo package. I found this bug last night at about 4:30 am when doing system upgrades and it managed to hose a bunch of stuff. The glob(...) function call was returning false rather than an empty array. I had to back it out and reinstalled 4.3.6-r1 and everything was fine. 4.3.8 server: websvr root # php -v ; cat test.php ; php test.php PHP 4.3.8 (cli) (built: Jul 21 2004 04:43:13) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the ionCube PHP Accelerator v1.3.3r2, Copyright (c) 2001-2002, by Nick Lindridge <? var_dump(glob("/filename.[nN][gG][a-zA-Z]")); ?> bool(false) 4.3.6 server: sftp root # php -v ; cat test.php ; php test.php PHP 4.3.6 (cli) (built: Jul 21 2004 05:16:33) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the ionCube PHP Accelerator v1.3.3r2, Copyright (c) 2001-2002, by Nick Lindridge <? var_dump(glob("/filename.[nN][gG][a-zA-Z]")); ?> array(0) { } http://bugs.php.net/bug.php?id=29246 it poped up in 4.3.8, it has been fixed in cvs. so i'm not imagining things :) if you'd like to isolate the fix responsible and post it here, I'll put it in our tree. 4.3.9rc1 is in the tree, and contains a fix. |