From: foobar Date: Sat, 13 Jul 2002 04:43:12 +0000 (+0000) Subject: Needed this to be able to test safe-mode stuff on cmd-line X-Git-Tag: dev~326 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a42e635ca2bebb9c147c6bbb0e867a2e5a6113f;p=php Needed this to be able to test safe-mode stuff on cmd-line --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index a6fb207df5..b9e7fa3c41 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -616,6 +616,7 @@ int main(int argc, char *argv[]) arg_excp = argv+ap_php_optind-1; arg_free = argv[ap_php_optind-1]; if (script_file) { + SG(request_info).path_translated = script_file; argv[ap_php_optind-1] = script_file; } else { argv[ap_php_optind-1] = "-"; /* should be stdin */