From 5af649efbdbb756b4e632ff67d04af9905ad328f Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 11 May 2002 03:41:17 +0000 Subject: Revert to the old php_ini.c, and reimplement the binary-path searching. Should now also work under UNIX (CLI/CGI) --- sapi/cli/php_cli.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sapi/cli/php_cli.c') 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; -- cgit v1.2.1