From:             dravet at calumet dot purdue dot edu
Operating system: Windows 2003 Enterprise
PHP version:      4.3.9
PHP Bug Type:     Directory function related
Bug description:  opendir does not like have a number as the first char

Description:
------------
Opendir does not appear to like having a number as the first char of a
directory name.  If I rename 100LEVEL to LEVEL100 then the code works.

Reproduce code:
---------------
$current_dir "D:\htdocs\assessment\form40s\approved\100LEVEL";
$dir = opendir($current_dir);
while (false !== ($file=readdir($dir)))
{
print $file;
}
closedir($dir);


Expected result:
----------------
CIS100.pdfCIS103 (TECH 03-26) pdf.pdfCIS103.pdfCIS111(TECH 03-33)
.pdfCIS111.pdfCIS140.pdfCIS166 FALL-2004.pdfCIS166(TECH 04-04).pdfCIS166-
2000.pdfCIS180(TECH 03-34).pdfCIS180.pdfCIS187.pdfFall 2003 Tech School
Network.mdbFall 2003 Tech School.lnk 

This is the results when the directory is named LEVEL100.  I will format
the text later.

Actual result:
--------------
PHP Warning: opendir(D:[EMAIL PROTECTED]): failed
to open dir: Invalid argument in
D:\htdocs\assessment\form40s\approved\index.php on line 14 PHP Warning:
readdir(): supplied argument is not a valid Directory resource in
D:\htdocs\assessment\form40s\approved\index.php on line 15 PHP Warning:
closedir(): supplied argument is not a valid Directory resource in
D:\htdocs\assessment\form40s\approved\index.php on line 20 


-- 
Edit bug report at http://bugs.php.net/?id=30296&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30296&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30296&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30296&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30296&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30296&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30296&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30296&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30296&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30296&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30296&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30296&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30296&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30296&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30296&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30296&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30296&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30296&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30296&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30296&r=mysqlcfg

Reply via email to