summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug60082.phpt
blob: 346bee79740c7a3541d78a15ed7738c019ab7e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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');
}
?>
--INI--
allow_call_time_pass_reference = Off
--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