|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-04-08 11:48 UTC] ab@php.net
Description:
------------
Test diff:
043+
044+ Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(C:\php-sdk\php53\vc9\x86\php-src\ext\spl\tests/): failed to open stream: No such file or directory' in C:\php-sdk\php53\vc9\x86\php-src\ext\spl\tests\fileobject_003.php:18
045+ Stack trace:
046+ #0 C:\php-sdk\php53\vc9\x86\php-src\ext\spl\tests\fileobject_003.php(18): SplFileObject->__construct('C:\php-sdk\php5...')
047+ #1 C:\php-sdk\php53\vc9\x86\php-src\ext\spl\tests\fileobject_003.php(35): test('C:\php-sdk\php5...', 's', 'l')
048+ #2 {main}
049+ thrown in C:\php-sdk\php53\vc9\x86\php-src\ext\spl\tests\fileobject_003.php on line 18
043- %s(%d) "%stests/"
044- string(%d) "%stests"
045- bool(true)
046- string(5) "tests"
047- bool(true)
048- string(%d) "%sspl"
049- bool(true)
050- string(%d) "%stests"
051- string(%d) "tests"
052- string(%d) "%sspl"
053- ===2===
054- object(SplFileInfo)#%d (2) {
055- ["pathName":"SplFileInfo":private]=>
056- string(%d) "%s"
057- ["fileName":"SplFileInfo":private]=>
058- string(%d) "%s"
059- }
060- object(SplFileInfo)#%d (2) {
061- ["pathName":"SplFileInfo":private]=>
062- string(%d) "%s"
063- ["fileName":"SplFileInfo":private]=>
064- string(%d) "%s"
065- }
066- bool(false)
067- bool(true)
068- bool(true)
069- %s(%d) "%stests"
070- string(%d) "%stests"
071- bool(true)
072- string(%d) "tests"
073- bool(true)
074- string(%d) "%sspl"
075- bool(true)
076- string(%d) "%stests"
077- string(5) "tests"
078- string(%d) "%sspl"
079- ===DONE===
Expected result:
----------------
test pass
Actual result:
--------------
test fail
Patches61671.diff (last revision 2012-04-18 14:05 UTC by ab@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 14:00:01 2025 UTC |
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