ID: 23044
User updated by: ship at omskreg dot ru
Reported By: ship at omskreg dot ru
-Status: Feedback
+Status: Open
Bug Type: Documentation problem
Operating System: Windows 2000 (all Windows)
PHP Version: 4.3.1
Assigned To: alindeman
New Comment:
Other glob() constants (GLOB_MARK, GLOB_NOSORT, GLOB_NOCHECK,
GLOB_NOESCAPE, GLOB_BRACE) are present in content of file php4ts.dll as
text fragments. Only constant GLOB_ONLYDIR (this constant is described
in documentation) is not present in content of file php4ts.dll, and
therefore this constant cannot be used in PHP code.
Whether function glob() will work if to specify numerical value instead
of constant GLOB_ONLYDIR as text, I do not know - am I did not try to
make.
Previous Comments:
------------------------------------------------------------------------
[2003-04-04 15:36:48] [EMAIL PROTECTED]
Is that the only constant that isn't defined (I need to know before
making a note of this in the docs)? Assigning to myself...
------------------------------------------------------------------------
[2003-04-04 11:28:09] [EMAIL PROTECTED]
It's just not avaialable under windows then.
------------------------------------------------------------------------
[2003-04-04 02:32:11] ship at omskreg dot ru
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 this bug report at http://bugs.php.net/?id=23044&edit=1
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php