X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_env_request.c;h=0ee68f464ade730199dc260857d70c221072bc61;hp=355c692b65181d76fd330bd1c6e04d101b7e5714;hb=1f37d09e4c7f55cf6f2c3c10ea3ec2424a482671;hpb=f6600e3e5a683077874e6bbfda11900e6a7613f3 diff --git a/php_http_env_request.c b/php_http_env_request.c index 355c692..0ee68f4 100644 --- a/php_http_env_request.c +++ b/php_http_env_request.c @@ -166,13 +166,14 @@ static PHP_METHOD(HttpEnvRequest, __construct) zval *this_ptr = getThis(); \ zval qs_tmp, *qs = zend_read_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL(prop), 0, &qs_tmp); \ \ + ZVAL_NULL(&rv); \ array_init(&mn); \ Z_TRY_ADDREF_P(qs); \ add_next_index_zval(&mn, qs); \ add_next_index_stringl(&mn, ZEND_STRL("get")); \ zend_fcall_info_init(&mn, 0, &fci, &fcc, NULL, NULL); \ zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args); \ - zend_fcall_info_argp(&fci TSRMLS_CC, ZEND_NUM_ARGS(), args); \ + zend_fcall_info_argp(&fci, ZEND_NUM_ARGS(), args); \ zend_fcall_info_call(&fci, &fcc, &rv, NULL); \ zend_fcall_info_args_clear(&fci, 1); \ efree(args); \