Skip to content

Commit 8cdab9b

Browse files
committed
Bail out if JUNIT is not enabled
Otherwise we would try to access an array element of `false`, which issues a notice as of PHP 7.4.0. This would happen, for instance, for bug63447_001.phpt if CGI is not available.
1 parent 81d95c4 commit 8cdab9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run-tests.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3504,6 +3504,8 @@ function junit_path_to_classname($file_name)
35043504
{
35053505
global $JUNIT;
35063506

3507+
if (!junit_enabled()) return '';
3508+
35073509
$ret = $JUNIT['name'];
35083510
$_tmp = array();
35093511

0 commit comments

Comments
 (0)