com php-src: Bail out if JUNIT is not enabled: run-tests.php

From: Date: Mon, 07 Oct 2019 11:22:11 +0000
Subject: com php-src: Bail out if JUNIT is not enabled: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108762@lists.php.net to get a copy of this message
Commit: 8cdab9b217fad0fbcf6d658befc66cd5d8a8fc95 Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 7 Oct 2019 13:20:14 +0200 Parents: 81d95c4c3ca4828943bd8169a9b7760b4e54ec98 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8cdab9b217fad0fbcf6d658befc66cd5d8a8fc95 Log: 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. Bugs: https://bugs..php.net/63447 Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index 909a8ea9b7b..5adfcd29915 100755 --- a/run-tests.php +++ b/run-tests.php @@ -3504,6 +3504,8 @@ function junit_path_to_classname($file_name) { global $JUNIT; + if (!junit_enabled()) return ''; + $ret = $JUNIT['name']; $_tmp = array();

« previous php.cvs (#108762) next »