ID: 42832 User updated by: jmboyd at bluebottle dot com Reported By: jmboyd at bluebottle dot com -Status: No Feedback +Status: Open Bug Type: Directory function related -Operating System: win32 only - Windows 2000 +Operating System: win32 only - Windows 2000/XP PHP Version: 5.2CVS-2008-08-25 Assigned To: pajoye New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2009-03-10 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-03-02 19:06:29] [email protected] 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] [email protected] 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
