php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60082
Patch recursion-detection revision 2011-10-20 05:44 UTC by tony2001@php.net
Patch bug60082.phpt revision 2011-10-18 12:51 UTC by laruence@php.net
Patch bug60082.patch revision 2011-10-18 12:46 UTC by laruence@php.net

Patch bug60082.phpt for SPL related Bug #60082

Patch version 2011-10-18 12:51 UTC

Return to Bug #60082 | Download this patch
Patch Revisions:

Developer: laruence@php.net

--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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC