php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42701 php4-cgi under fastcgi does not respect -d argument
Submitted: 2007-09-18 14:23 UTC Modified: 2007-10-02 11:52 UTC
From: apex_php at xepa dot nl Assigned:
Status: Wont fix Package: CGI/CLI related
PHP Version: 4CVS-2007-09-18 (snap) OS: debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
31 + 28 = ?
Subscribe to this entry?

 
 [2007-09-18 14:23 UTC] apex_php at xepa dot nl
Description:
------------
when running php4-cgi via fastcgi using a bash script that
exec's the php4-cgi binary the -d (define) argument is not respected.


Reproduce code:
---------------
-- start script --
exec /usr/bin/php4-cgi -d include_path='.:/tmp/:/usr/share/php'


Expected result:
----------------
include_path to be changed for the php4-cgi process


Actual result:
--------------
include_path not changed, and is still the same as the php.ini file used
-- other tests --
when running the same binary on the commandline (ie not via fastcgi) include_path is changed
when running php5-cgi in above configuration include_path is changed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-02 11:52 UTC] tony2001@php.net
This was added to 5_2 and won't be backported to 4_4.
Upgrade to the supported branch.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 14:01:26 2019 UTC