]> 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:59 +0000 (10:42 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 10:42:59 +0000 (10:42 +0000)
ext/curl/interface.c

index e5e5d122ecfa3bbe852bb7bb61e6b19d9b8c6e5f..d68f85bf43af3a86ab571d33f834e73be24c2396 100644 (file)
@@ -1421,7 +1421,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;
@@ -1430,7 +1430,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;