summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2002-05-11 03:41:17 +0000
committerZeev Suraski <zeev@php.net>2002-05-11 03:41:17 +0000
commit5af649efbdbb756b4e632ff67d04af9905ad328f (patch)
tree557eb33d245ce60dcd88befda1c000360244b3b4 /sapi/cli/php_cli.c
parentce20564d1e2f8999eb3ff3cf7e593b9da4b5f86e (diff)
downloadphp-git-5af649efbdbb756b4e632ff67d04af9905ad328f.tar.gz
Revert to the old php_ini.c, and reimplement the binary-path searching.
Should now also work under UNIX (CLI/CGI)
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 6f496d23b2..3db7e6dce4 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -361,6 +361,8 @@ int main(int argc, char *argv[])
ap_php_optind = orig_optind;
ap_php_optarg = orig_optarg;
+ cli_sapi_module.executable_location = argv[0];
+
/* startup after we get the above ini override se we get things right */
if (php_module_startup(&cli_sapi_module)==FAILURE) {
return FAILURE;