php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
Submitted: 2012-05-10 11:59 UTC Modified: 2012-05-11 12:42 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: Testing related
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2012-05-10 11:59 UTC] ab@php.net
Description:
------------
Test diff:

Warning: include(C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\spl\examples\tests/../dualiterator.inc): failed to open stream: No such file or directory in C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\spl\examples\tests\dualiterator_001.php on line 5

Warning: include(): Failed opening 'C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\spl\examples\tests/../dualiterator.inc' for inclusion (include_path='.;C:\php\pear') in C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\spl\examples\tests\dualiterator_001.php on line 5

Fatal error: Class 'DualIterator' not found in C:\snaps\php-test-pack-5.3-nts-windows-vc9-x86-rf3d86b3\ext\spl\examples\tests\dualiterator_001.php on line 12

The explanation is simple - the test is trying to include a class from the examples folder, but the examples folder contents is not copied along with the test pack.

Expected result:
----------------
test pass

Actual result:
--------------
test fail

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-11 12:40 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=81ba6b14c7b1b934f4d3e2896f861a42b07aa838
Log: Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
 [2012-05-11 12:42 UTC] ab@php.net
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.


 [2012-05-11 12:42 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2014-10-07 23:26 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=81ba6b14c7b1b934f4d3e2896f861a42b07aa838
Log: Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
 [2014-10-07 23:36 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=81ba6b14c7b1b934f4d3e2896f861a42b07aa838
Log: Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC