Browse Source

Fix crash from #7577 (torben@php.net)

PHP-4.0.5
Stanislav Malyshev 26 years ago
parent
commit
41a2b59977
  1. 4
      ext/curl/curl.c

4
ext/curl/curl.c

@ -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…
Cancel
Save