From: ship at omskreg dot ru
Operating system: Windows 2000 (all Windows)
PHP version: 4.3.1
PHP Bug Type: Directory function related
Bug description: Constant GLOB_ONLYDIR is absent in file php4ts.dll and unusable
in php4ts.dll (product version 4.3.1, file version 4.3.1.1):
Constant GLOB_ONLYDIR is absent (void) in file php4ts.dll.
Constant GLOB_ONLYDIR is unusable in function glob().
This constant (GLOB_ONLYDIR) is present in sources.
Error message in HTML code from PHP engine is:
Notice: Use of undefined constant GLOB_ONLYDIR - assumed 'GLOB_ONLYDIR' in
C:\Program Files\Apache Group\Apache2\htdocs\dev\lib.php on line 58
Warning: glob() expects parameter 2 to be long, string given in C:\Program
Files\Apache Group\Apache2\htdocs\dev\lib.php on line 58
Source PHP code for reproduce error:
$filesarray = glob("*", GLOB_ONLYDIR);
--
Edit bug report at http://bugs.php.net/?id=23044&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23044&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23044&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23044&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23044&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23044&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23044&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23044&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23044&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23044&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23044&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23044&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23044&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23044&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23044&r=gnused