mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix cve-2014-3538 test
This commit is contained in:
commit
c1b151020a
2 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ if ($t < 3) {
|
|||
Done
|
||||
--CLEAN--
|
||||
<?php
|
||||
@unlink(__DIR__.'/cve-2014-3538.data');
|
||||
@unlink(__DIR__.'/cve-2014-3538私はガラスを食べられます.data');
|
||||
?>
|
||||
--EXPECTF--
|
||||
string(%d) "%s"
|
||||
|
|
|
@ -13,7 +13,7 @@ if (getenv('SKIP_PERF_SENSITIVE'))
|
|||
pcre.jit=0
|
||||
--FILE--
|
||||
<?php
|
||||
$fd = __DIR__.'/cve-2014-3538.data';
|
||||
$fd = __DIR__.'/cve-2014-3538-nojit.data';
|
||||
|
||||
file_put_contents($fd,
|
||||
'try:' .
|
||||
|
@ -24,7 +24,7 @@ $t = microtime(true);
|
|||
var_dump(finfo_file($fi, $fd));
|
||||
$t = microtime(true) - $t;
|
||||
finfo_close($fi);
|
||||
if ($t < 1) {
|
||||
if ($t < 1.5) {
|
||||
echo "Ok\n";
|
||||
} else {
|
||||
printf("Failed, time=%.2f\n", $t);
|
||||
|
@ -34,7 +34,7 @@ if ($t < 1) {
|
|||
Done
|
||||
--CLEAN--
|
||||
<?php
|
||||
@unlink(__DIR__.'/cve-2014-3538.data');
|
||||
@unlink(__DIR__.'/cve-2014-3538-nojit.data');
|
||||
?>
|
||||
--EXPECTF--
|
||||
string(%d) "%s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue