PHP Classes

File: ext/phady/security/exception.zep.c

Recommend this page to a friend!
  Classes of Alien Fernandez  >  Phady Framework  >  ext/phady/security/exception.zep.c  >  Download  
File: ext/phady/security/exception.zep.c
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Phady Framework
Web application MVC framework based on Phalcon
Author: By
Last change:
Date: 6 years ago
Size: 1,097 bytes


Class file image Download
#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/memory.h" #include "kernel/fcall.h" /** * @class Phady\Security\Exception * * Exceptions thrown in Phady\Security will use this class * */ ZEPHIR_INIT_CLASS(Phady_Security_Exception) { ZEPHIR_REGISTER_CLASS_EX(Phady\\Security, Exception, phady, security_exception, zend_exception_get_default(TSRMLS_C), phady_security_exception_method_entry, 0); return SUCCESS; } /** * Rewrite the error message * @return string */ PHP_METHOD(Phady_Security_Exception, __toString) { int ZEPHIR_LAST_CALL_STATUS; zval *_0 = NULL, _1; ZEPHIR_MM_GROW(); ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmessage", NULL, 0); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); ZVAL_STRING(&_1, "[Phady Security Error] %s", 0); ZEPHIR_RETURN_CALL_FUNCTION("sprintf", NULL, 8, &_1, _0); zephir_check_call_status(); RETURN_MM(); }