diff --git a/build/32bits/phalcon.zep.c b/build/32bits/phalcon.zep.c index b9686e72a6a..f03e012a1f9 100644 --- a/build/32bits/phalcon.zep.c +++ b/build/32bits/phalcon.zep.c @@ -39075,10 +39075,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { @@ -63051,7 +63049,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0, _1; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63096,10 +63094,8 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { if (Z_TYPE_P(put) != IS_ARRAY) { ZEPHIR_INIT_NVAR(put); array_init(put); - ZEPHIR_INIT_VAR(_0); - ZEPHIR_SINIT_VAR(_1); - ZVAL_STRING(&_1, "php://input", 0); - zephir_file_get_contents(_0, &_1 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); + zephir_check_call_status(); Z_SET_ISREF_P(put); ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 218, _0, put); Z_UNSET_ISREF_P(put); diff --git a/build/64bits/phalcon.zep.c b/build/64bits/phalcon.zep.c index b9686e72a6a..f03e012a1f9 100644 --- a/build/64bits/phalcon.zep.c +++ b/build/64bits/phalcon.zep.c @@ -39075,10 +39075,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { @@ -63051,7 +63049,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0, _1; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63096,10 +63094,8 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { if (Z_TYPE_P(put) != IS_ARRAY) { ZEPHIR_INIT_NVAR(put); array_init(put); - ZEPHIR_INIT_VAR(_0); - ZEPHIR_SINIT_VAR(_1); - ZVAL_STRING(&_1, "php://input", 0); - zephir_file_get_contents(_0, &_1 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); + zephir_check_call_status(); Z_SET_ISREF_P(put); ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 218, _0, put); Z_UNSET_ISREF_P(put); diff --git a/build/safe/phalcon.zep.c b/build/safe/phalcon.zep.c index b9686e72a6a..f03e012a1f9 100644 --- a/build/safe/phalcon.zep.c +++ b/build/safe/phalcon.zep.c @@ -39075,10 +39075,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { @@ -63051,7 +63049,7 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0, _1; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -63096,10 +63094,8 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { if (Z_TYPE_P(put) != IS_ARRAY) { ZEPHIR_INIT_NVAR(put); array_init(put); - ZEPHIR_INIT_VAR(_0); - ZEPHIR_SINIT_VAR(_1); - ZVAL_STRING(&_1, "php://input", 0); - zephir_file_get_contents(_0, &_1 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); + zephir_check_call_status(); Z_SET_ISREF_P(put); ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 218, _0, put); Z_UNSET_ISREF_P(put); diff --git a/ext/phalcon/cache/backend/redis.zep.c b/ext/phalcon/cache/backend/redis.zep.c index 1cfaae7e006..3526291484a 100644 --- a/ext/phalcon/cache/backend/redis.zep.c +++ b/ext/phalcon/cache/backend/redis.zep.c @@ -140,10 +140,8 @@ PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - if (zephir_has_constructor(redis TSRMLS_CC)) { - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); - } + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index eb6ba893b2b..2c7c58a6cf1 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -18,10 +18,10 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/operators.h" -#include "kernel/file.h" #include "kernel/array.h" #include "kernel/string.h" #include "kernel/concat.h" +#include "kernel/file.h" #include "kernel/hash.h" @@ -227,7 +227,7 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { int ZEPHIR_LAST_CALL_STATUS; zend_bool notAllowEmpty, noRecursive; - zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0, _1; + zval *name_param = NULL, *filters = NULL, *defaultValue = NULL, *notAllowEmpty_param = NULL, *noRecursive_param = NULL, *put = NULL, *_0 = NULL; zval *name = NULL; ZEPHIR_MM_GROW(); @@ -272,10 +272,8 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { if (Z_TYPE_P(put) != IS_ARRAY) { ZEPHIR_INIT_NVAR(put); array_init(put); - ZEPHIR_INIT_VAR(_0); - ZEPHIR_SINIT_VAR(_1); - ZVAL_STRING(&_1, "php://input", 0); - zephir_file_get_contents(_0, &_1 TSRMLS_CC); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getrawbody", NULL, 0); + zephir_check_call_status(); Z_SET_ISREF_P(put); ZEPHIR_CALL_FUNCTION(NULL, "parse_str", NULL, 218, _0, put); Z_UNSET_ISREF_P(put);