PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

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(0220000, [
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 Wed, 08 Nov 2017 19:36:35 +0000 (10 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.