X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_querystring_api.c;h=899715d6ebda9968b932d3ffe5e2724ebe9b7981;hp=09a767f5ca67e4ae5312209958a823ae73734188;hb=85f5451a3e9fad7cb9728ba5408b433fca22b44b;hpb=0e0def98a4ea4463bf8c21c6f161b2b37aa8c49d diff --git a/http_querystring_api.c b/http_querystring_api.c index 09a767f..899715d 100644 --- a/http_querystring_api.c +++ b/http_querystring_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2006, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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;