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