1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00

Fix build

This commit is contained in:
Hannes Magnusson
2006-12-09 14:07:13 +00:00
parent 16e11ad947
commit 815ec53657

View File

@@ -959,7 +959,7 @@ static size_t curl_passwd(void *ctx, char *prompt, char *buf, int buflen)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not call the CURLOPT_PASSWDFUNCTION");
} else if (Z_TYPE_P(retval) == IS_STRING || Z_TYPE_P(retval) == IS_UNICODE) {
if (Z_TYPE_P(retval) == IS_UNICODE) {
convert_to_string_ex(retval);
convert_to_string_ex(&retval);
}
if (Z_STRLEN_P(retval) > buflen) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Returned password is too long for libcurl to handle");