mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify router.php)
This commit is contained in:
parent
53de1c2830
commit
0183a9af5a
4
NEWS
4
NEWS
@ -2,6 +2,10 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2016 PHP 7.0.9
|
||||
|
||||
- CLI:
|
||||
. Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify
|
||||
router.php). (Laruence)
|
||||
|
||||
- GD:
|
||||
. Fixed bug #43475 (Thick styled lines have scrambled patterns). (cmb)
|
||||
. Fixed bug #53640 (XBM images require width to be multiple of 8). (cmb)
|
||||
|
@ -660,10 +660,7 @@ static void sapi_cli_server_register_variables(zval *track_vars_array) /* {{{ */
|
||||
if (SG(request_info).path_translated) {
|
||||
sapi_cli_server_register_variable(track_vars_array, "SCRIPT_FILENAME", SG(request_info).path_translated);
|
||||
} else if (client->server->router) {
|
||||
char *temp;
|
||||
spprintf(&temp, 0, "%s/%s", client->server->document_root, client->server->router);
|
||||
sapi_cli_server_register_variable(track_vars_array, "SCRIPT_FILENAME", temp);
|
||||
efree(temp);
|
||||
sapi_cli_server_register_variable(track_vars_array, "SCRIPT_FILENAME", client->server->router);
|
||||
}
|
||||
if (client->request.path_info) {
|
||||
sapi_cli_server_register_variable(track_vars_array, "PATH_INFO", client->request.path_info);
|
||||
|
Loading…
Reference in New Issue
Block a user