xref: /PHP-7.3/ext/spl/tests/bug49972.phpt (revision e97d5fab)
1--TEST--
2Bug #49972 (AppendIterator undefined function crash)
3--FILE--
4<?php
5
6$iterator = new AppendIterator();
7$iterator->undefined();
8
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Call to undefined method AppendIterator::undefined() in %s:%d
12Stack trace:
13#0 {main}
14  thrown in %s on line %d
15