- Fixed crash in error_log() (strlen(NULL)) reported by: shm, Maksymilian Arciemowicz

This commit is contained in:
Felipe Pena 2011-06-23 21:48:15 +00:00
parent 71a5c3d7ec
commit 08ddf683fc

View 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;
}