]> granicus.if.org Git - php/commitdiff
MFH: fix copy/paste error (patch by Mikko)
authorAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 10:42:44 +0000 (10:42 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 10:42:44 +0000 (10:42 +0000)
ext/curl/interface.c

index 09b8d4173855ddf169a4f7b87247e7db011cf161..7d5037c0467e953e8008221a134f6a3c94fe6070 100644 (file)
@@ -1420,7 +1420,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
                case CURLOPT_READFUNCTION:
                        if (ch->handlers->read->func_name) {
                                zval_ptr_dtor(&ch->handlers->read->func_name);
-                               ch->handlers->write->fci_cache = empty_fcall_info_cache;
+                               ch->handlers->read->fci_cache = empty_fcall_info_cache;
                        }
                        zval_add_ref(zvalue);
                        ch->handlers->read->func_name = *zvalue;
@@ -1429,7 +1429,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
                case CURLOPT_HEADERFUNCTION:
                        if (ch->handlers->write_header->func_name) {
                                zval_ptr_dtor(&ch->handlers->write_header->func_name);
-                               ch->handlers->write->fci_cache = empty_fcall_info_cache;
+                               ch->handlers->write_header->fci_cache = empty_fcall_info_cache;
                        }
                        zval_add_ref(zvalue);
                        ch->handlers->write_header->func_name = *zvalue;