1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/spl/tests/iterator_035.phpt
T
Dmitry Stogov 7c750656f1 Fixed tests
2007-01-10 16:00:31 +00:00

18 lines
316 B
PHP

--TEST--
SPL: ArrayIterator and values assigned by reference
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$tmp = 1;
$a = new ArrayIterator();
$a[] = $tmp;
$a[] = &$tmp;
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot assign by reference to overloaded object in %s on line %d