PHP Classes

File: ext/phady/exception.zep.c

Recommend this page to a friend!
  Classes of Alien Fernandez   Phady Framework   ext/phady/exception.zep.c   Download  
File: ext/phady/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: 8 years ago
Size: 1,015 bytes
 

Contents

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\Exception * * Exceptions thrown in Phady will use this class * */ ZEPHIR_INIT_CLASS(Phady_Exception) { ZEPHIR_REGISTER_CLASS_EX(Phady, Exception, phady, exception, zend_exception_get_default(TSRMLS_C), phady_exception_method_entry, 0); return SUCCESS; } /** * Rewrite the error message * @return string */ PHP_METHOD(Phady_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 Error] %s", 0); ZEPHIR_RETURN_CALL_FUNCTION("sprintf", NULL, 8, &_1, _0); zephir_check_call_status(); RETURN_MM(); }