@@ -1410,7 +1410,7 @@ static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx)
1410
1410
static int curl_fnmatch (void * ctx , const char * pattern , const char * string )
1411
1411
{
1412
1412
php_curl * ch = (php_curl * ) ctx ;
1413
- php_curl_fnmatch * t = ch -> handlers -> fnmatch ;
1413
+ php_curl_callback * t = ch -> handlers -> fnmatch ;
1414
1414
int rval = CURL_FNMATCHFUNC_FAIL ;
1415
1415
switch (t -> method ) {
1416
1416
case PHP_CURL_USER : {
@@ -1455,7 +1455,7 @@ static int curl_fnmatch(void *ctx, const char *pattern, const char *string)
1455
1455
static size_t curl_progress (void * clientp , double dltotal , double dlnow , double ultotal , double ulnow )
1456
1456
{
1457
1457
php_curl * ch = (php_curl * )clientp ;
1458
- php_curl_progress * t = ch -> handlers -> progress ;
1458
+ php_curl_callback * t = ch -> handlers -> progress ;
1459
1459
size_t rval = 0 ;
1460
1460
1461
1461
#if PHP_CURL_DEBUG
@@ -1923,7 +1923,7 @@ void _php_setup_easy_copy_handlers(php_curl *ch, php_curl *source)
1923
1923
curl_easy_setopt (ch -> cp , CURLOPT_WRITEHEADER , (void * ) ch );
1924
1924
1925
1925
if (source -> handlers -> progress ) {
1926
- ch -> handlers -> progress = ecalloc (1 , sizeof (php_curl_progress ));
1926
+ ch -> handlers -> progress = ecalloc (1 , sizeof (php_curl_callback ));
1927
1927
if (!Z_ISUNDEF (source -> handlers -> progress -> func_name )) {
1928
1928
ZVAL_COPY (& ch -> handlers -> progress -> func_name , & source -> handlers -> progress -> func_name );
1929
1929
}
@@ -1932,7 +1932,7 @@ void _php_setup_easy_copy_handlers(php_curl *ch, php_curl *source)
1932
1932
}
1933
1933
1934
1934
if (source -> handlers -> fnmatch ) {
1935
- ch -> handlers -> fnmatch = ecalloc (1 , sizeof (php_curl_fnmatch ));
1935
+ ch -> handlers -> fnmatch = ecalloc (1 , sizeof (php_curl_callback ));
1936
1936
if (!Z_ISUNDEF (source -> handlers -> fnmatch -> func_name )) {
1937
1937
ZVAL_COPY (& ch -> handlers -> fnmatch -> func_name , & source -> handlers -> fnmatch -> func_name );
1938
1938
}
@@ -2737,7 +2737,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
2737
2737
curl_easy_setopt (ch -> cp , CURLOPT_PROGRESSFUNCTION , curl_progress );
2738
2738
curl_easy_setopt (ch -> cp , CURLOPT_PROGRESSDATA , ch );
2739
2739
if (ch -> handlers -> progress == NULL ) {
2740
- ch -> handlers -> progress = ecalloc (1 , sizeof (php_curl_progress ));
2740
+ ch -> handlers -> progress = ecalloc (1 , sizeof (php_curl_callback ));
2741
2741
} else if (!Z_ISUNDEF (ch -> handlers -> progress -> func_name )) {
2742
2742
zval_ptr_dtor (& ch -> handlers -> progress -> func_name );
2743
2743
ch -> handlers -> progress -> fci_cache = empty_fcall_info_cache ;
@@ -2846,7 +2846,7 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue, bool i
2846
2846
curl_easy_setopt (ch -> cp , CURLOPT_FNMATCH_FUNCTION , curl_fnmatch );
2847
2847
curl_easy_setopt (ch -> cp , CURLOPT_FNMATCH_DATA , ch );
2848
2848
if (ch -> handlers -> fnmatch == NULL ) {
2849
- ch -> handlers -> fnmatch = ecalloc (1 , sizeof (php_curl_fnmatch ));
2849
+ ch -> handlers -> fnmatch = ecalloc (1 , sizeof (php_curl_callback ));
2850
2850
} else if (!Z_ISUNDEF (ch -> handlers -> fnmatch -> func_name )) {
2851
2851
zval_ptr_dtor (& ch -> handlers -> fnmatch -> func_name );
2852
2852
ch -> handlers -> fnmatch -> fci_cache = empty_fcall_info_cache ;
0 commit comments