From: Antony Dovgal Date: Fri, 30 Apr 2010 08:20:57 +0000 (+0000) Subject: merge the fix for #51688 X-Git-Tag: php-5.4.0alpha1~191^2~1599 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47aa194a10db11db2593d3635f14335dd53af0fd;p=php merge the fix for #51688 --- diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c index 512d50abc8..f02f93b0e6 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -753,6 +753,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;