ID:               36855
 Updated by:       [EMAIL PROTECTED]
 Reported By:      r21vo1 at gmail dot com
-Status:           Assigned
+Status:           Bogus
 Bug Type:         Directory function related
 Operating System: Windows
 PHP Version:      5.1.2
 Assigned To:      pollita
 New Comment:

This is an oddity of win32 api, and not a bug in PHP.

Try this on command line and you will see this strange behaviour is a
"feature" of the operating system.

md test
cd "test "

Windows happily complies with it.




Previous Comments:
------------------------------------------------------------------------

[2006-03-26 00:47:26] [EMAIL PROTECTED]

Sara, please take a look at it.
Looks like a windows weirdness, but I'm unable to test it.

------------------------------------------------------------------------

[2006-03-25 12:58:31] r21vo1 at gmail dot com

Tested, problem remains.
I also tested on my freebsd box with php 5.1.2, works correctly (both
values false).

------------------------------------------------------------------------

[2006-03-25 12:15:36] [EMAIL PROTECTED]

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

Reply via email to