From: Xinchen Hui Date: Mon, 24 Oct 2011 03:28:59 +0000 (+0000) Subject: Fixed PATH_INFO of /index.php/foo/bar X-Git-Tag: php-5.5.0alpha1~985 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f216bce2ffb73d80c96c00bfb75dff9167ac2b04;p=php Fixed PATH_INFO of /index.php/foo/bar --- diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index aaa17df17e..43ec422a34 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -1296,12 +1296,13 @@ static void php_cli_server_request_translate_vpath(php_cli_server_request *reque pefree(buf, 1); return; } + if (is_static_file) { + pefree(buf, 1); + return; + } } break; /* regular file */ - } else if (is_static_file) { - pefree(buf, 1); - return; - } + } if (prev_patch) { pefree(prev_patch, 1); *q = DEFAULT_SLASH;