mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Test for #60082
This commit is contained in:
parent
6da5dfd0ac
commit
d2c8d30bb9
1 changed files with 14 additions and 0 deletions
14
ext/spl/tests/bug60082.phpt
Executable file
14
ext/spl/tests/bug60082.phpt
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue