1
0
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:
Pierre Joye
2010-04-30 08:15:09 +00:00
parent e44d409472
commit 8a197878c8
+3
View File
@@ -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;