diff options
author | foobar <sniper@php.net> | 2002-07-13 04:43:12 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-07-13 04:43:12 +0000 |
commit | 6a42e635ca2bebb9c147c6bbb0e867a2e5a6113f (patch) | |
tree | 21588c6c735fec6f5f3a60122d5703c709d88039 /sapi/cli/php_cli.c | |
parent | 2f8dc7a47cefd4546ad86697e328fa9c4be52c18 (diff) | |
download | php-git-6a42e635ca2bebb9c147c6bbb0e867a2e5a6113f.tar.gz |
Needed this to be able to test safe-mode stuff on cmd-line
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |