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

Test Failure Report for ext/pcre/tests/bug72685.phpt ('Bug #72685: Same string is UTF-8 validated repeatedly')

Script

1: <?php
2:
3: $input_size 
64 1024;
4:
$str str_repeat('a'$input_size);
5:
6:
$start microtime(true);
7:
$pos 0;
8: while (
preg_match('/\G\w/u'$str$m0$pos)) ++$pos;
9:
$end microtime(true);
10:
var_dump(($end $start) < 0.5); // large margin, more like 0.05 in debug build
11:
12:
?>
13:

Expected

bool(true)

Output

bool(false)

Diff

001+ bool(false)
001- bool(true)

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (942 days ago)

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