mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
Fix crash from #7577 (torben@php.net)
This commit is contained in:
parent
a6a792ecdd
commit
41a2b59977
@ -534,6 +534,10 @@ PHP_FUNCTION(curl_setopt)
|
||||
SEPARATE_ZVAL(current);
|
||||
convert_to_string_ex(current);
|
||||
|
||||
if (Z_STRLEN_PP(current) < 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
indiv_command = estrndup(Z_STRVAL_PP(current), Z_STRLEN_PP(current));
|
||||
commands = curl_slist_append(commands, indiv_command);
|
||||
if (!commands) {
|
||||
|
Loading…
Reference in New Issue
Block a user