Fix --CGI-- support of run-tests.php

The `--CGI--` section is supposed to be just a marker, and to be empty
as such.  However, a previous refactoring[1] broke that.

[1] <9140c9038a>

Closes GH-9061.
This commit is contained in:
Christoph M. Becker 2022-07-20 13:19:58 +02:00
parent 9af3327176
commit d430652935
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -2,6 +2,8 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.1.10
- Core:
. Fixed --CGI-- support of run-tests.php. (cmb)
04 Aug 2022, PHP 8.1.9

View File

@ -3895,7 +3895,7 @@ class TestFile
public function isCGI(): bool
{
return $this->sectionNotEmpty('CGI')
return $this->hasSection('CGI')
|| $this->sectionNotEmpty('GET')
|| $this->sectionNotEmpty('POST')
|| $this->sectionNotEmpty('GZIP_POST')