Skip to content

Commit cab2f05

Browse files
committed
fileinfo: tests: Disable times sensitive tests on debug build
Signed-off-by: Anatol Belski <ab@php.net>
1 parent f368eca commit cab2f05

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ext/fileinfo/tests/cve-2014-3538-mb.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Bug #66731: file: extensive backtracking
44
fileinfo
55
--SKIPIF--
66
<?php
7+
if (defined("PHP_DEBUG") && PHP_DEBUG)
8+
die("skip not suitable for debug build");
79
if (getenv('SKIP_PERF_SENSITIVE'))
810
die("skip performance sensitive test");
911
?>

ext/fileinfo/tests/cve-2014-3538.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Bug #66731: file: extensive backtracking
44
fileinfo
55
--SKIPIF--
66
<?php
7+
if (defined("PHP_DEBUG") && PHP_DEBUG)
8+
die("skip not suitable for debug build");
79
if (getenv('SKIP_PERF_SENSITIVE'))
810
die("skip performance sensitive test");
911
?>

0 commit comments

Comments
 (0)