Skip to content

Commit c5e63f8

Browse files
committed
Refactoring ext/curl (only compilable now)
1 parent b57d558 commit c5e63f8

File tree

5 files changed

+438
-580
lines changed

5 files changed

+438
-580
lines changed

ext/curl/curl_file.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ static void curlfile_get_property(char *name, INTERNAL_FUNCTION_PARAMETERS)
7777
return;
7878
}
7979
res = zend_read_property(curl_CURLFile_class, getThis(), name, strlen(name), 1 TSRMLS_CC);
80-
*return_value = *res;
81-
zval_copy_ctor(return_value);
82-
INIT_PZVAL(return_value);
80+
RETURN_ZVAL(res, 1, 0);
8381
}
8482

8583
static void curlfile_set_property(char *name, INTERNAL_FUNCTION_PARAMETERS)

0 commit comments

Comments
 (0)