summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug49972.phpt
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2009-10-23 16:47:35 +0000
committerJohannes Schlüter <johannes@php.net>2009-10-23 16:47:35 +0000
commit0a8fc25b7d58f1f0f1a39793931db8ab1d9b4030 (patch)
tree237eeec0833dab8458164cdb30565826d6fcad0e /ext/spl/tests/bug49972.phpt
parent08db32e0738c2248b2644b6f60dfce62225b368d (diff)
downloadphp-git-0a8fc25b7d58f1f0f1a39793931db8ab1d9b4030.tar.gz
Fix #49972 (AppendIterator undefined function crash)
Diffstat (limited to 'ext/spl/tests/bug49972.phpt')
-rwxr-xr-xext/spl/tests/bug49972.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/spl/tests/bug49972.phpt b/ext/spl/tests/bug49972.phpt
new file mode 100755
index 0000000000..843c2519ba
--- /dev/null
+++ b/ext/spl/tests/bug49972.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Bug #49972 (AppendIterator undefined function crash)
+--FILE--
+<?php
+
+$iterator = new AppendIterator();
+$iterator->undefined();
+
+?>
+--EXPECTF--
+Fatal error: Call to undefined method AppendIterator::undefined() in %s on line %d