summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_035.phpt
blob: eebc7f22a43a804f11610280c3b3dd17fdbef4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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: Objects used as arrays in post/pre increment/decrement must return values by reference in %s on line %d