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/standard/tests/strings/ |
files >> //opt/php-7.0.1/ext/standard/tests/strings/bug24281.phpt |
--TEST-- Bug #24281 (str_replace count not returned if variable wasn't initialized) --SKIPIF-- <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('SKIP PHP5 functionality'); ?> --FILE-- <?php $string = "He had had to have had it"; $newstring = str_replace("had", "foo", $string, $count); print "$count changes were made.\n"; $count = "foo"; $newstring = str_replace("had", "foo", $string, $count); print "$count changes were made.\n"; ?> --EXPECT-- 3 changes were made. 3 changes were made.y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`