text: 
  #ifdef HAVE_CONFIG_H
  #include "../../../ext_config.h"
  #endif
  
  #include <php.h>
  #include "../../../php_ext.h"
  #include "../../../ext.h"
  
  #include <Zend/zend_operators.h>
  #include <Zend/zend_exceptions.h>
  #include <Zend/zend_interfaces.h>
  
  #include "kernel/main.h"
  #include "kernel/array.h"
  #include "kernel/object.h"
  #include "kernel/memory.h"
  #include "kernel/string.h"
  #include "kernel/concat.h"
  #include "kernel/fcall.h"
  #include "ext/spl/spl_exceptions.h"
  #include "kernel/exception.h"
  #include "kernel/operators.h"
  
  
  /*
   +------------------------------------------------------------------------+
   | Phalcon Framework                                                      |
   +------------------------------------------------------------------------+
   | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com)       |
   +------------------------------------------------------------------------+
   | This source file is subject to the New BSD License that is bundled     |
   | with this package in the file docs/LICENSE.txt.                        |
   |                                                                        |
   | If you did not receive a copy of the license and are unable to         |
   | obtain it through the world-wide-web, please send an email             |
   | to license@phalconphp.com so we can send you a copy immediately.       |
   +------------------------------------------------------------------------+
   | Authors: Andres Gutierrez <andres@phalconphp.com>                      |
   |          Eduar Carvajal <eduar@phalconphp.com>                         |
   +------------------------------------------------------------------------+
   */
  /**
   * Phalcon\Annotations\Adapter\Apc
   *
   * Stores the parsed annotations in APC. This adapter is suitable for production
   *
   *<code>
   * $annotations = new \Phalcon\Annotations\Adapter\Apc();
   *</code>
   */
  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);
  
  	zend_class_implements(phalcon_annotations_adapter_apc_ce TSRMLS_CC, 1, phalcon_annotations_adapterinterface_ce);
  	return SUCCESS;
  
  }
  
  /**
   * Phalcon\Annotations\Adapter\Apc constructor
   *
   * @param array options
   */
  PHP_METHOD(Phalcon_Annotations_Adapter_Apc, __construct) {
  
  	zval *options = NULL, *prefix, *ttl;
  
  	zephir_fetch_params(0, 0, 1, &options);
  
  	if (!options) {
  		options = ZEPHIR_GLOBAL(global_null);
  	}
  
  
  	if (Z_TYPE_P(options) == IS_ARRAY) {
  		if (zephir_array_isset_string_fetch(&prefix, options, SS("prefix"), 1 TSRMLS_CC)) {
  			zephir_update_property_this(this_ptr, SL("_prefix"), prefix TSRMLS_CC);
  		}
  		if (zephir_array_isset_string_fetch(&ttl, options, SS("lifetime"), 1 TSRMLS_CC)) {
  			zephir_update_property_this(this_ptr, SL("_ttl"), ttl TSRMLS_CC);
  		}
  	}
  
  }
  
  /**
   * Reads parsed annotations from APC
   *
   * @param string key
   * @return Phalcon\Annotations\Reflection
   */
  PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) {
  
  	int ZEPHIR_LAST_CALL_STATUS;
  	zval *key_param = NULL, *_0, *_1, *_2;
  	zval *key = NULL;
  
  	ZEPHIR_MM_GROW();
  	zephir_fetch_params(1, 1, 0, &key_param);
  
  	if (unlikely(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 (likely(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);
  	_1 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC);
  	ZEPHIR_INIT_VAR(_2);
  	ZEPHIR_CONCAT_SVV(_2, "_PHAN", _1, key);
  	zephir_fast_strtolower(_0, _2);
  	ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, _0);
  	zephir_check_call_status();
  	RETURN_MM();
  
  }
  
  /**
   * Writes parsed annotations to APC
   *
   * @param string key
   * @param Phalcon\Annotations\Reflection data
   */
  PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) {
  
  	int ZEPHIR_LAST_CALL_STATUS;
  	zval *key_param = NULL, *data, *_0, *_1, *_2, *_3;
  	zval *key = NULL;
  
  	ZEPHIR_MM_GROW();
  	zephir_fetch_params(1, 2, 0, &key_param, &data);
  
  	if (unlikely(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 (likely(Z_TYPE_P(key_param) == IS_STRING)) {
  		zephir_get_strval(key, key_param);
  	} else {
  		ZEPHIR_INIT_VAR(key);
  		ZVAL_EMPTY_STRING(key);
  	}
  
  
  	if (!(zephir_instance_of_ev(data, phalcon_annotations_reflection_ce TSRMLS_CC))) {
  		ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Parameter 'data' must be an instance of 'Phalcon\\Annotations\\Reflection'", "", 0);
  		return;
  	}
  	ZEPHIR_INIT_VAR(_0);
  	_1 = zephir_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC);
  	ZEPHIR_INIT_VAR(_2);
  	ZEPHIR_CONCAT_SVV(_2, "_PHAN", _1, key);
  	zephir_fast_strtolower(_0, _2);
  	_3 = zephir_fetch_nproperty_this(this_ptr, SL("_ttl"), PH_NOISY_CC);
  	ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, _0, data, _3);
  	zephir_check_call_status();
  	RETURN_MM();
  
  }
  
  