#36855 [Opn->Fbk]: is_dir and opendir + path ending with space
ID: 36855
Updated by: bjori@php.net
Reported By: r21vo1 at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Directory function related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Can't reproduce
Previous Comments:
------------------------------------------------------------------------
[2006-03-25 03:54:19] r21vo1 at gmail dot com
Description:
------------
is_dir() doesn't fail if path ends with additional space, opendir does.
Reproduce code:
---------------
create dir, for example "bla"
var_dump(is_dir("bla "));
var_dump(opendir("bla "));
Expected result:
----------------
Both should be either true or false.
Actual result:
--------------
is_dir() returns true, opendir() returns false.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36855&edit=1
Thread (5 messages)