diff options
| author | Zeev Suraski <zeev@php.net> | 2002-05-11 03:41:17 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2002-05-11 03:41:17 +0000 |
| commit | 5af649efbdbb756b4e632ff67d04af9905ad328f (patch) | |
| tree | 557eb33d245ce60dcd88befda1c000360244b3b4 /sapi | |
| parent | ce20564d1e2f8999eb3ff3cf7e593b9da4b5f86e (diff) | |
| download | php-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')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 | ||||
| -rw-r--r-- | sapi/cli/php_cli.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 46b967ba55..3c31a42922 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -565,6 +565,8 @@ int main(int argc, char *argv[]) tsrm_ls = ts_resource(0); #endif + cgi_sapi_module.executable_location = argv[0]; + /* startup after we get the above ini override se we get things right */ if (php_module_startup(&cgi_sapi_module)==FAILURE) { #ifdef ZTS 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; |
