From:             john at cloudyhands dot com
Operating system: Windows XP
PHP version:      4.3.1
PHP Bug Type:     Filesystem function related
Bug description:  opendir() doesn't handle Windows filesnames with spaces

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 bug report at http://bugs.php.net/?id=24308&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24308&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24308&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24308&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24308&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24308&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24308&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24308&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24308&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24308&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24308&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24308&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24308&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24308&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24308&r=gnused

Reply via email to