summaryrefslogtreecommitdiff
path: root/ext/spl/tests/array_019.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/spl/tests/array_019.phpt
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/spl/tests/array_019.phpt')
-rwxr-xr-xext/spl/tests/array_019.phpt32
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/spl/tests/array_019.phpt b/ext/spl/tests/array_019.phpt
deleted file mode 100755
index 43d53b1273..0000000000
--- a/ext/spl/tests/array_019.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-SPL: ArrayIterator and foreach by reference
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
---FILE--
-<?php
-
-$ar = new ArrayObject(array(1)); foreach($ar as &$v) var_dump($v);
-$ar = new ArrayIterator(array(2)); foreach($ar as &$v) var_dump($v);
-$ar = new RecursiveArrayIterator(array(3)); foreach($ar as &$v) var_dump($v);
-
-class ArrayIteratorEx extends ArrayIterator
-{
- function current()
- {
- return ArrayIterator::current();
- }
-}
-
-$ar = new ArrayIteratorEx(array(4)); foreach($ar as $v) var_dump($v);
-$ar = new ArrayIteratorEx(array(5)); foreach($ar as &$v) var_dump($v);
-
-?>
-===DONE===
-<?php exit(0); ?>
---EXPECTF--
-int(1)
-int(2)
-int(3)
-int(4)
-
-Fatal error: An iterator cannot be used with foreach by reference in %sarray_019.php on line %d