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

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.
This commit is contained in:
Christoph M. Becker
2019-10-07 13:20:14 +02:00
parent 81d95c4c3c
commit 8cdab9b217

View File

@@ -3504,6 +3504,8 @@ function junit_path_to_classname($file_name)
{
global $JUNIT;
if (!junit_enabled()) return '';
$ret = $JUNIT['name'];
$_tmp = array();