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 >> /opt/php-7.0.1/ext/reflection/tests/ |
files >> //opt/php-7.0.1/ext/reflection/tests/bug64936.phpt |
--TEST-- ReflectionMethod::getDocComment() uses left over doc comment from previous scanner run --INI-- opcache.save_comments=1 --SKIPIF-- <?php if (!extension_loaded('reflection') || !extension_loaded('tokenizer')) print 'skip missing reflection of tokernizer extension'; ?> --FILE-- <?php function strip_doc_comment($c) { if (!strlen($c) || $c === false) return $c; return trim(substr($c, 3, -2)); } token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comment eval('class A { }'); // Could also be an include of a file containing similar $ra = new ReflectionClass('A'); var_dump(strip_doc_comment($ra->getDocComment())); token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comment include('bug64936.inc'); $rb = new ReflectionClass('B'); var_dump(strip_doc_comment($rb->getDocComment())); ?> ===DONE=== --EXPECT-- bool(false) bool(false) ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`