#24308 [Bgs]: opendir() doesn't handle Windows filesnames with spaces
| From: | john at cloudyhands dot com | Date: | Fri, 27 Jun 2003 23:22:58 +0000 |
| Subject: | #24308 [Bgs]: opendir() doesn't handle Windows filesnames with spaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42659@lists.php.net to get a copy of this message | ||
ID: 24308
User updated by: john at cloudyhands dot com
Reported By: john at cloudyhands dot com
Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows XP
-PHP Version: 4.3.1
+PHP Version: PHP Version 4.3.2
New Comment:
unless I'm missing something, this ain't fixed. back at you.
Previous Comments:
------------------------------------------------------------------------
[2003-06-26 12:06:28] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
PHP 4.3.2 is already released with lot of fixes.
------------------------------------------------------------------------
[2003-06-24 02:45:52] john at cloudyhands dot com
Description:
------------
here is the error:
Warning: opendir(C:\Documents and Settings\john\My Documents\My
Pictures\2003_0622) [function.opendir]: failed to open dir: Invalid
argument in C:\jf\php\htmlScan\showPics.php on line 202
Cannot find C:\Documents and Settings\john\My Documents\My
Pictures\2003_0622.
There is such a directory, and trying a different directory with no
spaces does work.
So, Windows gets you again! :)
Reproduce code:
---------------
$dfltRoot = "C:\\Documents and Settings\\john\\My Documents\\My
Pictures\\2003_0622";
opendir($dfltRoot);
Expected result:
----------------
opendir() returns the directory handle.
Actual result:
--------------
see error listed in description
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24308&edit=1