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/object.h"
  #include "kernel/exception.h"
  #include "kernel/memory.h"
  #include "kernel/fcall.h"
  #include "kernel/operators.h"
  #include "kernel/array.h"
  #include "ext/spl/spl_exceptions.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\Validation\Validator\Identical
   *
   * Checks if a value is identical to other
   *
   *<code>
   *use Phalcon\Validation\Validator\Identical;
   *
   *$validator->add('terms', new Identical(array(
   *   'accepted' => 'yes',
   *   'message' => 'Terms and conditions must be accepted'
   *)));
   *</code>
   *
   */
  ZEPHIR_INIT_CLASS(Phalcon_Validation_Validator_Identical) {
  
  	ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Validation\\Validator, Identical, phalcon, validation_validator_identical, phalcon_validation_validator_ce, phalcon_validation_validator_identical_method_entry, 0);
  
  	zend_class_implements(phalcon_validation_validator_identical_ce TSRMLS_CC, 1, phalcon_validation_validatorinterface_ce);
  	return SUCCESS;
  
  }
  
  /**
   * Executes the validation
   *
   * @param Phalcon\Validation validation
   * @param string             field
   * @return boolean
   */
  PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) {
  
  	zephir_nts_static zephir_fcall_cache_entry *_4 = NULL;
  	int ZEPHIR_LAST_CALL_STATUS;
  	zval *field = NULL;
  	zval *validation, *field_param = NULL, *message = NULL, *label = NULL, *replacePairs, *_0 = NULL, *_1 = NULL, *_2 = NULL, *_3 = NULL, *_5;
  
  	ZEPHIR_MM_GROW();
  	zephir_fetch_params(1, 2, 0, &validation, &field_param);
  
  	if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) {
  		zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC);
  		RETURN_MM_NULL();
  	}
  
  	if (likely(Z_TYPE_P(field_param) == IS_STRING)) {
  		zephir_get_strval(field, field_param);
  	} else {
  		ZEPHIR_INIT_VAR(field);
  		ZVAL_EMPTY_STRING(field);
  	}
  
  
  	if (!(zephir_instance_of_ev(validation, phalcon_validation_ce TSRMLS_CC))) {
  		ZEPHIR_THROW_EXCEPTION_DEBUG_STR(spl_ce_InvalidArgumentException, "Parameter 'validation' must be an instance of 'Phalcon\\Validation'", "", 0);
  		return;
  	}
  	ZEPHIR_CALL_METHOD(&_0, validation, "getvalue", NULL, field);
  	zephir_check_call_status();
  	ZEPHIR_INIT_VAR(_2);
  	ZVAL_STRING(_2, "value", ZEPHIR_TEMP_PARAM_COPY);
  	ZEPHIR_CALL_METHOD(&_1, this_ptr, "getoption", NULL, _2);
  	zephir_check_temp_parameter(_2);
  	zephir_check_call_status();
  	if (!ZEPHIR_IS_EQUAL(_0, _1)) {
  		ZEPHIR_INIT_NVAR(_2);
  		ZVAL_STRING(_2, "label", ZEPHIR_TEMP_PARAM_COPY);
  		ZEPHIR_CALL_METHOD(&label, this_ptr, "getoption", NULL, _2);
  		zephir_check_temp_parameter(_2);
  		zephir_check_call_status();
  		if (ZEPHIR_IS_EMPTY(label)) {
  			ZEPHIR_CALL_METHOD(&label, validation, "getlabel", NULL, field);
  			zephir_check_call_status();
  		}
  		ZEPHIR_INIT_NVAR(_2);
  		ZVAL_STRING(_2, "message", ZEPHIR_TEMP_PARAM_COPY);
  		ZEPHIR_CALL_METHOD(&message, this_ptr, "getoption", NULL, _2);
  		zephir_check_temp_parameter(_2);
  		zephir_check_call_status();
  		ZEPHIR_INIT_VAR(replacePairs);
  		array_init_size(replacePairs, 2);
  		zephir_array_update_string(&replacePairs, SL(":field"), &label, PH_COPY | PH_SEPARATE);
  		if (ZEPHIR_IS_EMPTY(message)) {
  			ZEPHIR_INIT_NVAR(_2);
  			ZVAL_STRING(_2, "Identical", ZEPHIR_TEMP_PARAM_COPY);
  			ZEPHIR_CALL_METHOD(&message, validation, "getdefaultmessage", NULL, _2);
  			zephir_check_temp_parameter(_2);
  			zephir_check_call_status();
  		}
  		ZEPHIR_INIT_NVAR(_2);
  		object_init_ex(_2, phalcon_validation_message_ce);
  		ZEPHIR_CALL_FUNCTION(&_3, "strtr", &_4, message, replacePairs);
  		zephir_check_call_status();
  		ZEPHIR_INIT_VAR(_5);
  		ZVAL_STRING(_5, "Identical", ZEPHIR_TEMP_PARAM_COPY);
  		ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, _3, field, _5);
  		zephir_check_temp_parameter(_5);
  		zephir_check_call_status();
  		ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, _2);
  		zephir_check_call_status();
  		RETURN_MM_BOOL(0);
  	}
  	RETURN_MM_BOOL(1);
  
  }
  
  