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

Test Failure Report for ext/pcre/tests/cache_limit.phpt ('Compiled regex cache limit')

Script

1: <?php
2: define
('PREG_CACHE_SIZE'4096+1);
3:
4:
$re '';
5:
$str str_repeat('x'PREG_CACHE_SIZE);
6:
7: for (
$i=0$i PREG_CACHE_SIZE; ++$i) {
8:     
$re .= '.';
9:     if (!
preg_match("/$re/"$str)) {
10:         die(
'non match. error');
11:     }
12: }
13:
14:
var_dump(preg_match('/./'$str));   // this one was already deleted from the cache
15:
var_dump(preg_match("/$re/"$str)); // but not this one
16:
17:
echo "done\n";
18:
?>
19:

Expected

int(1)
int(1)
done

Output

** ERROR: process timed out **

Diff

001+ ** ERROR: process timed out **
001- int(1)
002- int(1)
003- done

 

Generated at Mon, 18 Sep 2017 10:30:53 +0000 (5 days ago)

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