xref: /PHP-5.6/ext/spl/tests/bug73073.phpt (revision 33a8af05)
1--TEST--
2Bug #73073: CachingIterator null dereference when convert to string
3--FILE--
4<?php
5$it = new CachingIterator(new ArrayIterator(array()), CachingIterator::TOSTRING_USE_KEY);
6var_dump((string)$it);
7?>
8--EXPECT--
9string(0) ""
10