ID: 42832 Updated by: j...@php.net Reported By: jmboyd at bluebottle dot com -Status: Open +Status: Assigned Bug Type: Directory function related Operating System: win32 only - Windows 2000/XP PHP Version: 5.2CVS-2008-08-25 Assigned To: pajoye
Previous Comments: ------------------------------------------------------------------------ [2009-03-16 19:09:20] jmboyd at bluebottle dot com Just tested with the newest 5.2.9-1 win32 binaries under XP (no longer have Win2k handy to test with) and the behavior is still the same. My initial test shows the script running twice to help show when the bug landed -- using php 5.2.1 there is no problem, but starting with version 5.2.2 the bug appears. ------------------------------------------------------------------------ [2009-03-02 19:06:29] paj...@php.net Tested on Win 2008 and Vista: C:\tmp\test\l2>cd .. Access is denied. C:\tmp\test\l2>\tmp\php530ntsvc9\php.exe \tmp\php530ntsvc9\acl.php . .. C:\tmp\test\l2>C:\Users\pierre\Documents\test\php53nts\php.exe \tmp\php530ntsvc9 \acl.php . .. I saw in your test that you called two times the script, the first run works, is it a copy/paste error or does it actually work in the 1st pass? ------------------------------------------------------------------------ [2008-10-27 13:45:42] j...@php.net Assigned to the windows port maintainer. ------------------------------------------------------------------------ [2008-08-25 14:56:47] jmboyd at bluebottle dot com Hey, I did provide feedback! Lousy robot. Just tried it again with the latest 5.3.0alpha2-dev build stamped Mon, 25 Aug 2008 10:05:33 -0400, same result. I can post the output if needed, but it's exactly the same as the 18 Aug 5:54pm UTC comment above. ------------------------------------------------------------------------ [2008-08-18 17:54:24] jmboyd at bluebottle dot com Same result with the snapshot (from Mon, 18 Aug 2008 14:03:00 -0400): C:\parentdir\subdir>\php53dev\php -r "foreach(scandir('.') as $f) {echo($f); }" Warning: scandir(.): failed to open dir: Bad file descriptor in Command line code on line 1 Warning: scandir(): (errno 9): Bad file descriptor in Command line code on line 1 Warning: Invalid argument supplied for foreach() in Command line code on line 1 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42832 -- Edit this bug report at http://bugs.php.net/?id=42832&edit=1