Test Failure Report for Zend/tests/concat_003.phpt ('Concatenating many small strings should not slowdown allocations')
Script
1:
<?php 2: 3: $time = microtime(TRUE); 4: 5: /* This might vary on Linux/Windows, so the worst case and also count in slow machines. */ 6: $t_max = 1.0; 7: 8: $datas = array_fill(0, 220000, [ 9: '000.000.000.000', 10: '000.255.255.255', 11: '保留地址', 12: '保留地址', 13: '保留地址', 14: '保留地址', 15: '保留地址', 16: '保留地址', 17: ]); 18: 19: $time = microtime(TRUE); 20: $texts = ''; 21: foreach ($datas AS $data) 22: { 23: $texts .= implode("\t", $data) . "\r\n"; 24: } 25: 26: $t = microtime(TRUE) - $time; 27: var_dump($t < $t_max); 28: 29: ?> 30: +++DONE+++ 31:
Expected
bool(true)
+++DONE+++
Output
** ERROR: process timed out **
Diff
001+ ** ERROR: process timed out **
001- bool(true)
002- +++DONE+++
Generated at Thu, 21 Feb 2019 22:06:51 +0000 (47 hours ago)
|