summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug49972.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug49972.phpt')
-rw-r--r--ext/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 100644
index 0000000..843c251
--- /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