mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
- Fix #51688, ini per dir crashes when invalid document root are given
This commit is contained in:
@@ -735,6 +735,9 @@ static void php_cgi_ini_activate_user_config(char *path, int path_len, const cha
|
||||
|
||||
if (!IS_ABSOLUTE_PATH(path, path_len)) {
|
||||
real_path = tsrm_realpath(path, NULL TSRMLS_CC);
|
||||
if (real_path == NULL) {
|
||||
return;
|
||||
}
|
||||
real_path_len = strlen(real_path);
|
||||
path = real_path;
|
||||
path_len = real_path_len;
|
||||
|
||||
Reference in New Issue
Block a user