mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
18 lines
316 B
PHP
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
|