laruence Wed, 19 Oct 2011 02:28:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=318204
Log: Test for #60082 Bug: https://bugs.php.net/60082 (Assigned) 100% CPU / when using references with ArrayObject(&$ref). Changed paths: A php/php-src/branches/PHP_5_3/ext/spl/tests/bug60082.phpt Added: php/php-src/branches/PHP_5_3/ext/spl/tests/bug60082.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/spl/tests/bug60082.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/spl/tests/bug60082.phpt 2011-10-19 02:28:53 UTC (rev 318204) @@ -0,0 +1,14 @@ +--TEST-- +Bug #60082 (100% CPU / when using references with ArrayObject(&$ref)) +--FILE-- +<?php +$test = array(); +$test = new ArrayObject(&$test); +$test['a'] = $test['b']; +?> +===DONE=== +<?php exit(0); ?> +--EXPECTF-- +Deprecated: Call-time pass-by-reference has been deprecated in %sbug60082.php on line %d + +Fatal error: main(): Array was modified outside object and made a recursive object in %sbug60082.php on line %d Property changes on: php/php-src/branches/PHP_5_3/ext/spl/tests/bug60082.phpt ___________________________________________________________________ Added: svn:executable + *
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php