1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/spl/tests/bug60082.phpt
Xinchen Hui 533d90066e Fix test
2012-03-11 08:30:30 +00:00

22 lines
598 B
PHP
Executable File

--TEST--
Bug #60082 (100% CPU / when using references with ArrayObject(&$ref))
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
if ((stristr(PHP_OS, 'freebsd'))) {
die('skip.. this test causes the run-tests.php to hang on Freebsd, see #60186');
}
?>
--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(): Nesting level too deep - recursive dependency? in %sbug60082.php on line %d