X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_querystring_api.c;h=899715d6ebda9968b932d3ffe5e2724ebe9b7981;hp=c0836857b02b3f861e4e189bc78f8a8c5a1d17fa;hb=8e6cf53b544342e1eaf0ec4f530e32852120294a;hpb=22e85919b89570a1848bcc8f41949a592ae20b48 diff --git a/http_querystring_api.c b/http_querystring_api.c index c083685..899715d 100644 --- a/http_querystring_api.c +++ b/http_querystring_api.c @@ -27,7 +27,7 @@ #include "php_http_querystring_api.h" #ifdef ZEND_ENGINE_2 -#define OBJ_PROP_CE http_querystring_object_ce +#define THIS_CE http_querystring_object_ce extern zend_class_entry *http_querystring_object_ce; #endif @@ -123,7 +123,7 @@ PHP_HTTP_API int _http_querystring_modify(zval *qarray, zval *params TSRMLS_DC) return http_querystring_modify_array(qarray, &temp_array); #ifdef ZEND_ENGINE_2 } - return http_querystring_modify_array(qarray, GET_PROP_EX(params, queryArray)); + return http_querystring_modify_array(qarray, zend_read_property(THIS_CE, params, ZEND_STRS("queryArray")-1, 0 TSRMLS_CC)); #endif } else { int rv;