From: Felipe Pena Date: Thu, 23 Jun 2011 21:48:15 +0000 (+0000) Subject: - Fixed crash in error_log() (strlen(NULL)) reported by: shm, Maksymilian Arciemowicz X-Git-Tag: php-5.3.7RC2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08ddf683fc5d4d6e10590e93a766ce31d45ab7ed;p=php - Fixed crash in error_log() (strlen(NULL)) reported by: shm, Maksymilian Arciemowicz --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cc16a33c2c..92fe1d77b8 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4678,7 +4678,7 @@ PHP_FUNCTION(error_log) opt_err = erropt; } - if (opt_err == 3) { + if (opt_err == 3 && opt) { if (strlen(opt) != opt_len) { RETURN_FALSE; }