php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61949 Allow cgi test ti run out of build tree
Submitted: 2012-05-05 06:56 UTC Modified: 2021-08-15 04:22 UTC
From: remi@php.net Assigned: cmb (profile)
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.4.2 OS: GNU/Linux (Fedora 16)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2012-05-05 06:56 UTC] 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


Patches

php-cgi-path-detection.patch (last revision 2012-05-05 07:52 UTC by remi@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-05 07:52 UTC] 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
 [2021-08-03 11:53 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-03 11:53 UTC] cmb@php.net
Hmm, is this still relevant, Remi?
 [2021-08-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 10:01:29 2024 UTC