1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix cve-2014-3538 test
This commit is contained in:
Ilija Tovilo
2025-01-27 21:49:10 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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"

View File

@@ -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"