diff --git a/build/php7/32bits/phalcon.zep.c b/build/php7/32bits/phalcon.zep.c index 24340a38fab..889a0b9d1a0 100644 --- a/build/php7/32bits/phalcon.zep.c +++ b/build/php7/32bits/phalcon.zep.c @@ -128842,140 +128842,6 @@ static int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *to -ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Apc) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Apc, phalcon, annotations_adapter_apc, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_apc_method_entry, 0); - - zend_declare_property_string(phalcon_annotations_adapter_apc_ce, SL("_prefix"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_long(phalcon_annotations_adapter_apc_ce, SL("_ttl"), 172800, ZEND_ACC_PROTECTED TSRMLS_CC); - - return SUCCESS; - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, __construct) { - - zval *options_param = NULL, prefix, ttl; - zval options; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&options); - ZVAL_UNDEF(&prefix); - ZVAL_UNDEF(&ttl); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &options_param); - - if (!options_param) { - ZEPHIR_INIT_VAR(&options); - array_init(&options); - } else { - zephir_get_arrval(&options, options_param); - } - - - if (1 == 1) { - if (zephir_array_isset_string_fetch(&prefix, &options, SL("prefix"), 1)) { - zephir_update_property_zval(this_ptr, SL("_prefix"), &prefix); - } - if (zephir_array_isset_string_fetch(&ttl, &options, SL("lifetime"), 1)) { - zephir_update_property_zval(this_ptr, SL("_ttl"), &ttl); - } - } - ZEPHIR_MM_RESTORE(); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, _0, _1, _2; - zval key; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &key_param); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_2); - ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); - zephir_fast_strtolower(&_0, &_2); - ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 81, &_0); - zephir_check_call_status(); - RETURN_MM(); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, *data, data_sub, _0, _1, _2, _3; - zval key; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &key_param, &data); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_2); - ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); - zephir_fast_strtolower(&_0, &_2); - zephir_read_property(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, &_0, data, &_3); - zephir_check_call_status(); - RETURN_MM(); - -} - - - - -#ifdef HAVE_CONFIG_H -#endif - - - - - ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Apcu) { ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Apcu, phalcon, annotations_adapter_apcu, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_apcu_method_entry, 0); @@ -129331,109 +129197,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { -ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Xcache) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Xcache, phalcon, annotations_adapter_xcache, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_xcache_method_entry, 0); - - return SUCCESS; - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, serialized, data, _0; - zval key, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&serialized); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &key_param); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); - zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 85, &_0); - zephir_check_call_status(); - if (Z_TYPE_P(&serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 63, &serialized); - zephir_check_call_status(); - if (Z_TYPE_P(&data) == IS_OBJECT) { - RETURN_CCTOR(&data); - } - } - RETURN_MM_BOOL(0); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, *data, data_sub, _0, _2; - zval key, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &key_param, &data); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); - zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 62, data); - zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 86, &_0, &_2); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - - - - -#ifdef HAVE_CONFIG_H -#endif - - - - - ZEPHIR_INIT_CLASS(Phalcon_Html_Breadcrumbs) { ZEPHIR_REGISTER_CLASS(Phalcon\\Html, Breadcrumbs, phalcon, html_breadcrumbs, phalcon_html_breadcrumbs_method_entry, 0); diff --git a/build/php7/64bits/phalcon.zep.c b/build/php7/64bits/phalcon.zep.c index 24340a38fab..889a0b9d1a0 100644 --- a/build/php7/64bits/phalcon.zep.c +++ b/build/php7/64bits/phalcon.zep.c @@ -128842,140 +128842,6 @@ static int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *to -ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Apc) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Apc, phalcon, annotations_adapter_apc, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_apc_method_entry, 0); - - zend_declare_property_string(phalcon_annotations_adapter_apc_ce, SL("_prefix"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_long(phalcon_annotations_adapter_apc_ce, SL("_ttl"), 172800, ZEND_ACC_PROTECTED TSRMLS_CC); - - return SUCCESS; - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, __construct) { - - zval *options_param = NULL, prefix, ttl; - zval options; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&options); - ZVAL_UNDEF(&prefix); - ZVAL_UNDEF(&ttl); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &options_param); - - if (!options_param) { - ZEPHIR_INIT_VAR(&options); - array_init(&options); - } else { - zephir_get_arrval(&options, options_param); - } - - - if (1 == 1) { - if (zephir_array_isset_string_fetch(&prefix, &options, SL("prefix"), 1)) { - zephir_update_property_zval(this_ptr, SL("_prefix"), &prefix); - } - if (zephir_array_isset_string_fetch(&ttl, &options, SL("lifetime"), 1)) { - zephir_update_property_zval(this_ptr, SL("_ttl"), &ttl); - } - } - ZEPHIR_MM_RESTORE(); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, _0, _1, _2; - zval key; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &key_param); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_2); - ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); - zephir_fast_strtolower(&_0, &_2); - ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 81, &_0); - zephir_check_call_status(); - RETURN_MM(); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, *data, data_sub, _0, _1, _2, _3; - zval key; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &key_param, &data); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_2); - ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); - zephir_fast_strtolower(&_0, &_2); - zephir_read_property(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, &_0, data, &_3); - zephir_check_call_status(); - RETURN_MM(); - -} - - - - -#ifdef HAVE_CONFIG_H -#endif - - - - - ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Apcu) { ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Apcu, phalcon, annotations_adapter_apcu, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_apcu_method_entry, 0); @@ -129331,109 +129197,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { -ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Xcache) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Xcache, phalcon, annotations_adapter_xcache, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_xcache_method_entry, 0); - - return SUCCESS; - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, serialized, data, _0; - zval key, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&serialized); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &key_param); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); - zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 85, &_0); - zephir_check_call_status(); - if (Z_TYPE_P(&serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 63, &serialized); - zephir_check_call_status(); - if (Z_TYPE_P(&data) == IS_OBJECT) { - RETURN_CCTOR(&data); - } - } - RETURN_MM_BOOL(0); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, *data, data_sub, _0, _2; - zval key, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &key_param, &data); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); - zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 62, data); - zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 86, &_0, &_2); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - - - - -#ifdef HAVE_CONFIG_H -#endif - - - - - ZEPHIR_INIT_CLASS(Phalcon_Html_Breadcrumbs) { ZEPHIR_REGISTER_CLASS(Phalcon\\Html, Breadcrumbs, phalcon, html_breadcrumbs, phalcon_html_breadcrumbs_method_entry, 0); diff --git a/build/php7/safe/phalcon.zep.c b/build/php7/safe/phalcon.zep.c index 24340a38fab..889a0b9d1a0 100644 --- a/build/php7/safe/phalcon.zep.c +++ b/build/php7/safe/phalcon.zep.c @@ -128842,140 +128842,6 @@ static int phannot_get_token(phannot_scanner_state *s, phannot_scanner_token *to -ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Apc) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Apc, phalcon, annotations_adapter_apc, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_apc_method_entry, 0); - - zend_declare_property_string(phalcon_annotations_adapter_apc_ce, SL("_prefix"), "", ZEND_ACC_PROTECTED TSRMLS_CC); - - zend_declare_property_long(phalcon_annotations_adapter_apc_ce, SL("_ttl"), 172800, ZEND_ACC_PROTECTED TSRMLS_CC); - - return SUCCESS; - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, __construct) { - - zval *options_param = NULL, prefix, ttl; - zval options; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&options); - ZVAL_UNDEF(&prefix); - ZVAL_UNDEF(&ttl); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, &options_param); - - if (!options_param) { - ZEPHIR_INIT_VAR(&options); - array_init(&options); - } else { - zephir_get_arrval(&options, options_param); - } - - - if (1 == 1) { - if (zephir_array_isset_string_fetch(&prefix, &options, SL("prefix"), 1)) { - zephir_update_property_zval(this_ptr, SL("_prefix"), &prefix); - } - if (zephir_array_isset_string_fetch(&ttl, &options, SL("lifetime"), 1)) { - zephir_update_property_zval(this_ptr, SL("_ttl"), &ttl); - } - } - ZEPHIR_MM_RESTORE(); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, _0, _1, _2; - zval key; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &key_param); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_2); - ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); - zephir_fast_strtolower(&_0, &_2); - ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 81, &_0); - zephir_check_call_status(); - RETURN_MM(); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, *data, data_sub, _0, _1, _2, _3; - zval key; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); - ZVAL_UNDEF(&_3); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &key_param, &data); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_VAR(&_2); - ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); - zephir_fast_strtolower(&_0, &_2); - zephir_read_property(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 82, &_0, data, &_3); - zephir_check_call_status(); - RETURN_MM(); - -} - - - - -#ifdef HAVE_CONFIG_H -#endif - - - - - ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Apcu) { ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Apcu, phalcon, annotations_adapter_apcu, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_apcu_method_entry, 0); @@ -129331,109 +129197,6 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { -ZEPHIR_INIT_CLASS(Phalcon_Annotations_Adapter_Xcache) { - - ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Annotations\\Adapter, Xcache, phalcon, annotations_adapter_xcache, phalcon_annotations_adapter_ce, phalcon_annotations_adapter_xcache_method_entry, 0); - - return SUCCESS; - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, serialized, data, _0; - zval key, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&serialized); - ZVAL_UNDEF(&data); - ZVAL_UNDEF(&_0); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &key_param); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); - zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 85, &_0); - zephir_check_call_status(); - if (Z_TYPE_P(&serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 63, &serialized); - zephir_check_call_status(); - if (Z_TYPE_P(&data) == IS_OBJECT) { - RETURN_CCTOR(&data); - } - } - RETURN_MM_BOOL(0); - -} - -static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { - - zend_long ZEPHIR_LAST_CALL_STATUS; - zval *key_param = NULL, *data, data_sub, _0, _2; - zval key, _1; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&key); - ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&data_sub); - ZVAL_UNDEF(&_0); - ZVAL_UNDEF(&_2); - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 2, 0, &key_param, &data); - - if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { - zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); - RETURN_MM_NULL(); - } - if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { - zephir_get_strval(&key, key_param); - } else { - ZEPHIR_INIT_VAR(&key); - ZVAL_EMPTY_STRING(&key); - } - - - ZEPHIR_INIT_VAR(&_0); - ZEPHIR_INIT_VAR(&_1); - ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); - zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 62, data); - zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 86, &_0, &_2); - zephir_check_call_status(); - ZEPHIR_MM_RESTORE(); - -} - - - - -#ifdef HAVE_CONFIG_H -#endif - - - - - ZEPHIR_INIT_CLASS(Phalcon_Html_Breadcrumbs) { ZEPHIR_REGISTER_CLASS(Phalcon\\Html, Breadcrumbs, phalcon, html_breadcrumbs, phalcon_html_breadcrumbs_method_entry, 0);