A better fix, sorry for previous thoughtlessness commit.

This commit is contained in:
Xinchen Hui 2011-10-24 03:47:42 +00:00
parent d8911efbb6
commit 08d372716c

View file

@ -1292,11 +1292,7 @@ static void php_cli_server_request_translate_vpath(php_cli_server_request *reque
} }
file++; file++;
} }
if (!*file) { if (!*file || is_static_file) {
pefree(buf, 1);
return;
}
if (is_static_file) {
pefree(buf, 1); pefree(buf, 1);
return; return;
} }