[php-src] Issue #9927: Test fails when compiling PHP with `--disable-cgi`
| From: | dwo0 | Date: | Thu, 10 Nov 2022 23:44:52 +0000 |
| Subject: | [php-src] Issue #9927: Test fails when compiling PHP with `--disable-cgi` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242788@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9927
Author: dwo0
### Description
Steps to reproduce:
- Run
./configure with --disable-cgi or --disable-all.
- make and make test
Actual results:
```
================================================================================
/home/dwo/Sources/php-src/sapi/cgi/tests/005.phpt
================================================================================
sh: line 1: -n: command not found
NULL
sh: line 1: -n: command not found
NULL
Done
================================================================================
001+ sh: line 1: -n: command not found
002+ NULL
003+ sh: line 1: -n: command not found
"
string(51) "Interactive mode enabled
No input file specified.
004+ NULL
001- string(51) "Interactive mode enabled
002-
003- No input file specified.
004- "
005- string(51) "Interactive mode enabled
006-
007- No input file specified.
008- "
Done
================================================================================
```
Expected results:
I expected the test to skip.
### PHP Version
PHP 8.3.0-dev
### Operating System
Ubuntu 22.04.1 (GNU/Linux 5.15.0.52/generic x-86_64)