#36855 [Fbk->Opn]: is_dir and opendir + path ending with space
ID: 36855
User updated by: r21vo1 at gmail dot com
Reported By: r21vo1 at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Directory function related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
Tested, problem remains.
I also tested on my freebsd box with php 5.1.2, works correctly (both
values false).
Previous Comments:
------------------------------------------------------------------------
[2006-03-25 12:15:36] bjori@php.net
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
------------------------------------------------------------------------
[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)