Annotation of embedaddon/php/ext/spl/tests/bug60082.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #60082 (100% CPU / when using references with ArrayObject(&$ref))
! 3: --SKIPIF--
! 4: <?php
! 5: if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
! 6: if ((stristr(PHP_OS, 'freebsd'))) {
! 7: die('skip.. this test causes the run-tests.php to hang on Freebsd, see #60186');
! 8: }
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12: $test = array();
! 13: $test = new ArrayObject(&$test);
! 14: $test['a'] = $test['b'];
! 15: ?>
! 16: ===DONE===
! 17: <?php exit(0); ?>
! 18: --EXPECTF--
! 19: Deprecated: Call-time pass-by-reference has been deprecated in %sbug60082.php on line %d
! 20:
! 21: Fatal error: main(): Array was modified outside object and made a recursive object in %sbug60082.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>