Req #61949 [Opn->Fbk]: Allow cgi test ti run out of build tree
| From: | cmb@php.net | Date: | Tue, 03 Aug 2021 11:53:05 +0000 |
| Subject: | Req #61949 [Opn->Fbk]: Allow cgi test ti run out of build tree | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235550@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61949&edit=1
ID: 61949
Updated by: cmb@php.net
Reported by: remi@php.net
Summary: Allow cgi test ti run out of build tree
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: CGI/CLI related
Operating System: GNU/Linux (Fedora 16)
PHP Version: 5.4.2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Hmm, is this still relevant, Remi?
Previous Comments:
------------------------------------------------------------------------
[2012-05-05 07:52:03] remi@php.net
The following patch has been added/updated:
Patch Name: php-cgi-path-detection.patch
Revision: 1336204323
URL: https://bugs.php.net/patch-display.php?bug=61949&patch=php-cgi-path-detection.patch&revision=1336204323
------------------------------------------------------------------------
[2012-05-05 06:56:30] remi@php.net
Description:
------------
Tests provided in sapi/cgi/tests need to detect path of php-cgi binary.
This doesn't work when run (pear run-tests) in the source tree out of the build process
The attached patch try to improve this detection.
First change uses PHP_BINARY which requires PHP 5.4
The other change will work on PHP 5.3/5.4 (when TEST_PHP_EXECUTABLE=/usr/bin/php)
Test script:
---------------
$ cd sapi/cgi/tests
$ pear run-tests 010.phpt
Expected result:
----------------
Running 1 tests
PASS Bug #45860 (header() function fails to correctly replace all Status lines)[010.phpt]
TOTAL TIME: 00:01
1 PASSED TESTS
0 SKIPPED TESTS
Actual result:
--------------
Running 1 tests
SKIP Bug #45860 (header() function fails to correctly replace all Status lines)[010.phpt](reason:
CGI not found)
TOTAL TIME: 00:01
0 PASSED TESTS
1 SKIPPED TESTS
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61949&edit=1