mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
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:
parent
9af3327176
commit
d430652935
2
NEWS
2
NEWS
@ -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
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user