|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-24 19:25 UTC] danack@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: danack
[2015-03-27 18:23 UTC] danack@php.net
[2015-04-02 14:47 UTC] danack@php.net
[2015-04-03 19:45 UTC] tyrael@php.net
[2017-01-22 16:36 UTC] danack@php.net
-Assigned To: danack
+Assigned To:
[2020-04-24 18:54 UTC] alexinbeijing at gmail dot com
[2020-04-24 20:31 UTC] danack@php.net
[2021-09-14 10:05 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
[2021-09-14 10:05 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Description: ------------ The tests ext/spl/tests/dit_004.phpt and ext/spl/tests/dit_005.phpt fail on Centos running in a VirtualBox VM, but only under certain conditions: * when they are run through "php run-tests.php ext/spl/tests/dit_004.phpt" - both of them fail. * dit_004 fails when run as "valgrind -q --tool=memcheck /usr/bin/php ext/spl/tests/dit_004.php". dit_005.phpt doesn't fail and works fine. Both of the tests run as expected when you just run the underlying PHP code that they are calling. The behaviour is as if the cloned object is jumping to a random entry in the DirectoryIterator Test script: --------------- <?php $a = new DirectoryIterator(__DIR__); $b = clone $a; $bValue = (string)$b; $aValue = (string)$a; if ($aValue != $bValue) { echo "aValue and bValue should be the same".PHP_EOL; echo $aValue.PHP_EOL; echo $bValue.PHP_EOL; } else { echo "Ok"; } Expected result: ---------------- Ok Actual result: -------------- aValue and bValue should be the same . SplObjectStorage_offsetGet_invalid_parameter.phpt