From 08ddf683fc5d4d6e10590e93a766ce31d45ab7ed Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 23 Jun 2011 21:48:15 +0000 Subject: [PATCH] - Fixed crash in error_log() (strlen(NULL)) reported by: shm, Maksymilian Arciemowicz --- ext/standard/basic_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1