exception.c 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Vtiful Extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2017-2017 The Viest |
  6. +----------------------------------------------------------------------+
  7. | http://www.vtiful.com |
  8. +----------------------------------------------------------------------+
  9. | Author: viest <[email protected]> |
  10. +----------------------------------------------------------------------+
  11. */
  12. #include <php.h>
  13. #include "zend_exceptions.h"
  14. #include "php_vtiful.h"
  15. #include "exception.h"
  16. zend_class_entry *vtiful_exception_ce;
  17. zend_function_entry exception_methods[] = {
  18. PHP_FE_END
  19. };
  20. VTIFUL_STARTUP_FUNCTION(vtiful_exception) {
  21. zend_class_entry ce;
  22. INIT_NS_CLASS_ENTRY(ce, "Vtiful\\Kernel", "Exception", exception_methods);
  23. vtiful_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
  24. return SUCCESS;
  25. }