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 >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/ |
files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/concat_003.phpt |
--TEST-- Concatenating many small strings should not slowdown allocations --SKIPIF-- <?php if (PHP_DEBUG) { die ("skip debug version is slow"); } ?> --FILE-- <?php $time = microtime(TRUE); /* This might vary on Linux/Windows, so the worst case and also count in slow machines. */ $t_max = 1.0; $datas = array_fill(0, 220000, [ '000.000.000.000', '000.255.255.255', '保留地址', '保留地址', '保留地址', '保留地址', '保留地址', '保留地址', ]); $time = microtime(TRUE); $texts = ''; foreach ($datas AS $data) { $texts .= implode("\t", $data) . "\r\n"; } $t = microtime(TRUE) - $time; var_dump($t < $t_max); ?> +++DONE+++ --EXPECT-- bool(true) +++DONE+++y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`