]> granicus.if.org Git - php/commitdiff
fix compile
authorSterling Hughes <sterling@php.net>
Sat, 22 Sep 2001 16:56:21 +0000 (16:56 +0000)
committerSterling Hughes <sterling@php.net>
Sat, 22 Sep 2001 16:56:21 +0000 (16:56 +0000)
ext/curl/curl.c
ext/curl/php_curl.h

index efe195f9c7a1e95fa1de2a76dc3c7e364eacc8c9..96bc4cabf96baea226bbb45e7246d136470a0dd4 100644 (file)
@@ -773,7 +773,7 @@ PHP_FUNCTION(curl_setopt)
                                SEPARATE_ZVAL(current);
                                convert_to_string_ex(current);
 
-                               zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0);
+                               zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0, NULL);
 
                                postval = emalloc((string_key_len - 1) + Z_STRLEN_PP(current) + 1);
                                snprintf(postval, (sizeof("%s=%s") - 1) + (string_key_len - 1) + Z_STRLEN_PP(current), 
@@ -810,7 +810,7 @@ PHP_FUNCTION(curl_setopt)
                struct curl_slist  *slist = NULL;
 
                ph = HASH_OF(*zvalue);
-               if (! hash) {
+               if (! ph) {
                        php_error(E_WARNING, 
                                  "You must pass either an object or an array with the CURLOPT_HTTPHEADER,"
                                          "CURLOPT_QUOTE and CURLOPT_POSTQUOTE arguments");
index ef7dc6a1e16b562132dedd2f671c1cddce0bf89f..1b72ed490511060f69413a0a48dc48f261aed93e 100644 (file)
@@ -41,6 +41,7 @@ extern zend_module_entry curl_module_entry;
 #define CURLOPT_BINARYTRANSFER 19914
 
 PHP_MINIT_FUNCTION(curl);
+PHP_MSHUTDOWN_FUNCTION(curl);
 PHP_MINFO_FUNCTION(curl);
 PHP_FUNCTION(curl_version);
 PHP_FUNCTION(curl_init);