#36855 [Opn->Asn]: is_dir and opendir + path ending with space

From: Date: Sat, 25 Mar 2006 23:47:28 +0000
Subject: #36855 [Opn->Asn]: is_dir and opendir + path ending with space
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94879@lists.php.net to get a copy of this message
 ID:               36855
 Updated by:       tony2001@php.net
 Reported By:      r21vo1 at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Directory function related
 Operating System: Windows
 PHP Version:      5.1.2
-Assigned To:      
+Assigned To:      pollita
 New Comment:

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


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

[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] 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)

« previous php.bugs (#94879) next »