Bug #61671 [Opn->Csd]: ext\spl\tests\fileobject_003.phpt fails
| From: | ab@php.net | Date: | Thu, 19 Apr 2012 09:47:10 +0000 |
| Subject: | Bug #61671 [Opn->Csd]: ext\spl\tests\fileobject_003.phpt fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169728@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61671&edit=1
ID: 61671
Updated by: ab@php.net
Reported by: ab@php.net
Summary: ext\spl\tests\fileobject_003.phpt fails
-Status: Open
+Status: Closed
Type: Bug
Package: SPL related
Operating System: Windows
PHP Version: 5.3.10
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-04-18 21:30:54] mattficken@php.net
The patch fixes the bug for me on Windows and Linux on PHP-5.3-rf3d86b3.
------------------------------------------------------------------------
[2012-04-18 14:07:55] ab@php.net
The solution was already introduced in 5.4 by Etienne Kneuss but wasn't merged back into 5.3 .
SplFileObject should not be used with directories. The patch is just putting together all the
necessary pieces from 5.4
------------------------------------------------------------------------
[2012-04-18 14:05:06] ab@php.net
The following patch has been added/updated:
Patch Name: 61671.diff
Revision: 1334757906
URL: https://bugs.php.net/patch-display.php?bug=61671&patch=61671.diff&revision=1334757906
------------------------------------------------------------------------
[2012-04-17 10:06:34] ab@php.net
A simple reproduce case for this:
C:\php-sdk\php53\vc9\x86\php-src>Debug_TS\php -r "$o = new
SplFileObject('C:\\php-sdk\\');"
Fatal error: Uncaught exception 'RuntimeException' with message
'SplFileObject::__construct(C:\php-sdk\): failed to open stream: No such file or
directory' in Command line code:1
Stack trace:
#0 Command line code(1): SplFileObject->__construct('C:\php-sdk\')
#1 {main}
thrown in Command line code on line 1
------------------------------------------------------------------------
[2012-04-08 11:49:30] ab@php.net
On windows SplFileObject doesn't work as expected with directories,
because the functionality of php_stream_open_wrapper_ex can't open
dir streams on windows. Fixing this may have long range consequences
but would be rather correct instead of just fixing the test behaviour.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=61671
--
Edit this bug report at https://bugs.php.net/bug.php?id=61671&edit=1