1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00

fix 5 years old copy/paste error (patch by Mikko)

This commit is contained in:
Antony Dovgal
2008-07-29 10:42:15 +00:00
parent 21008970aa
commit 2eeae6909e

View File

@@ -1427,7 +1427,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;
@@ -1436,7 +1436,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;