mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- Fixed crash in error_log() (strlen(NULL)) reported by: shm, Maksymilian Arciemowicz
This commit is contained in:
parent
71a5c3d7ec
commit
08ddf683fc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user