summaryrefslogtreecommitdiff
path: root/ext/curl/curl_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/curl_file.c')
-rw-r--r--ext/curl/curl_file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/curl/curl_file.c b/ext/curl/curl_file.c
index 9f371df538..f48480593c 100644
--- a/ext/curl/curl_file.c
+++ b/ext/curl/curl_file.c
@@ -77,9 +77,7 @@ static void curlfile_get_property(char *name, INTERNAL_FUNCTION_PARAMETERS)
return;
}
res = zend_read_property(curl_CURLFile_class, getThis(), name, strlen(name), 1 TSRMLS_CC);
- *return_value = *res;
- zval_copy_ctor(return_value);
- INIT_PZVAL(return_value);
+ RETURN_ZVAL(res, 1, 0);
}
static void curlfile_set_property(char *name, INTERNAL_FUNCTION_PARAMETERS)