Re: getting the path to the php executable

From: Date: Thu, 21 Mar 2002 01:43:01 +0000
Subject: Re: getting the path to the php executable
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-81582@lists.php.net to get a copy of this message
At 22:19 20.03.2002, Jim Winstead wrote:
On Mon, Mar 18, 2002 at 05:56:02AM +0100, Marcus B?rger wrote: At 05:11 18.03.2002, you wrote:
is there a way to get the path of the current php executable for the cli and cgi sapi implementations? this would be nice so that run-tests.php could run its subprocesses with the same executable that it was run with (so you could run the tests with a particular php executable without having to make sure it is the one that the code inside run-tests.php picks up).
In CLI you can pass that information from command line $ /t/php-cvs/php -r 'echo $argv[1];' -- (pwd) /home/marcus this is not what i was looking for. i'm looking for the equivalent to perl's $^X (or $EXECUTABLE_NAME for people that like to 'use English'). (this would be the '/t/php-cvs/php' from your example.) if that is a needed feature we better implement a useful solution. But is it really necessary? i don't expect that would be a widely-used feature, but for the specific case i've outlined (running tests using the same php binary from the run-tests.php script), it would be useful. i'm sure there are more instances in which it would be useful information. jim
So then do a RFC for that feature and if positive i will implement/chnage the CLI behavior in a fashion way. marcus

« previous php.dev (#81582) next »