php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/spl/tests/ |
files >> //php-7.1.11/ext/spl/tests/iterator_068.phpt |
--TEST-- SPL: Iterator: Overloaded object and destruction --FILE-- <?php class Test implements Iterator { function foo() { echo __METHOD__ . "()\n"; } function rewind() {} function valid() {} function current() {} function key() {} function next() {} } class TestIteratorIterator extends IteratorIterator { function __destruct() { echo __METHOD__ . "()\n"; $this->foo(); } } $obj = new TestIteratorIterator(new Test); $obj->foo(); unset($obj); ?> ===DONE=== --EXPECT-- Test::foo() TestIteratorIterator::__destruct() Test::foo() ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`