]> granicus.if.org Git - php/commitdiff
- Fixed crash in error_log() (strlen(NULL)) reported by: shm, Maksymilian Arciemowicz
authorFelipe Pena <felipe@php.net>
Thu, 23 Jun 2011 21:48:15 +0000 (21:48 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 23 Jun 2011 21:48:15 +0000 (21:48 +0000)
ext/standard/basic_functions.c

index cc16a33c2c94f513cf1dff30f166dc60e5ee05fb..92fe1d77b88de63526b4db0f04df14b93f1a9be0 100644 (file)
@@ -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;
                }