Skip to content

Commit d430652

Browse files
committed
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] <9140c90> Closes GH-9061.
1 parent 9af3327 commit d430652

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.1.10
44

5+
- Core:
6+
. Fixed --CGI-- support of run-tests.php. (cmb)
57

68
04 Aug 2022, PHP 8.1.9
79

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3895,7 +3895,7 @@ public function getName(): string
38953895

38963896
public function isCGI(): bool
38973897
{
3898-
return $this->sectionNotEmpty('CGI')
3898+
return $this->hasSection('CGI')
38993899
|| $this->sectionNotEmpty('GET')
39003900
|| $this->sectionNotEmpty('POST')
39013901
|| $this->sectionNotEmpty('GZIP_POST')

0 commit comments

Comments
 (0)