diff options
author | Johannes Schlüter <johannes@php.net> | 2009-10-23 16:47:35 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2009-10-23 16:47:35 +0000 |
commit | 0a8fc25b7d58f1f0f1a39793931db8ab1d9b4030 (patch) | |
tree | 237eeec0833dab8458164cdb30565826d6fcad0e /ext/spl/tests/bug49972.phpt | |
parent | 08db32e0738c2248b2644b6f60dfce62225b368d (diff) | |
download | php-git-0a8fc25b7d58f1f0f1a39793931db8ab1d9b4030.tar.gz |
Fix #49972 (AppendIterator undefined function crash)
Diffstat (limited to 'ext/spl/tests/bug49972.phpt')
-rwxr-xr-x | ext/spl/tests/bug49972.phpt | 11 |
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 |