diff options
author | Zeev Suraski <zeev@php.net> | 2000-12-22 12:57:09 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-12-22 12:57:09 +0000 |
commit | aa6d2ac5d0ee1d7cd608c6930ad0c57bc2953c47 (patch) | |
tree | 5776ae30d4c8115659935309042b9784ba55d592 /ext/curl/curl.c | |
parent | 36eaad252fc5fe292cd4f071f76e7879ce21130c (diff) | |
download | php-git-aa6d2ac5d0ee1d7cd608c6930ad0c57bc2953c47.tar.gz |
Heads up people!
Updated the get_current_key() API - the relevant authors, please take
a look at the updated code and make sure it's ok...
Diffstat (limited to 'ext/curl/curl.c')
-rw-r--r-- | ext/curl/curl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c index a16aef6f0b..f367ba9bd9 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -433,7 +433,7 @@ PHP_FUNCTION(curl_setopt) SEPARATE_ZVAL(current); convert_to_string_ex(current); - if (zend_hash_get_current_key(u_post, &string_key, &num_key) == HASH_KEY_IS_LONG) { + if (zend_hash_get_current_key(u_post, &string_key, &num_key, 0) == HASH_KEY_IS_LONG) { php_error(E_WARNING, "Array passed to %s() must be an associative array", get_active_function_name()); RETURN_FALSE; } @@ -448,8 +448,7 @@ PHP_FUNCTION(curl_setopt) sprintf(str, "%s=%s", string_key, val_str); ret = curl_formparse(str, &first, &last); - - efree(string_key); + efree(val_str); } |