xref: /PHP-5.3/ext/spl/tests/bug60082.phpt (revision 610c7fbe)
1--TEST--
2Bug #60082 (100% CPU / when using references with ArrayObject(&$ref))
3--SKIPIF--
4<?php
5if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6if ((stristr(PHP_OS, 'freebsd')))  {
7    die('skip.. this test causes the run-tests.php to hang on Freebsd, see #60186');
8}
9?>
10--INI--
11allow_call_time_pass_reference = Off
12--FILE--
13<?php
14$test = array();
15$test = new ArrayObject(&$test);
16$test['a'] = $test['b'];
17?>
18===DONE===
19<?php exit(0); ?>
20--EXPECTF--
21Deprecated: Call-time pass-by-reference has been deprecated in %sbug60082.php on line %d
22
23Fatal error: main(): Nesting level too deep - recursive dependency? in %sbug60082.php on line %d
24