diff options
author | Pierre Joye <pajoye@php.net> | 2010-04-30 08:15:09 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-04-30 08:15:09 +0000 |
commit | 8a197878c8c263a3455ff55ad5c170b3331dceeb (patch) | |
tree | 88b6017e6249a6d974d86752c315d7684582040c /sapi | |
parent | e44d409472b6ad16d2e3ef6dd1efb9441479379d (diff) | |
download | php-git-8a197878c8c263a3455ff55ad5c170b3331dceeb.tar.gz |
- Fix #51688, ini per dir crashes when invalid document root are given
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 90158fb616..8b71faa08b 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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; |