File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / spl / tests / bug60082.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:01 2012 UTC (12 years, 6 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--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(): Array was modified outside object and made a recursive object in %sbug60082.php on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>