exception.c 457 B

1234567891011121314151617181920
  1. #include <php.h>
  2. #include "zend_exceptions.h"
  3. #include "php_vtiful.h"
  4. #include "exception.h"
  5. zend_class_entry *vtiful_exception_ce;
  6. zend_function_entry exception_methods[] = {
  7. PHP_FE_END
  8. };
  9. VTIFUL_STARTUP_FUNCTION(vtiful_exception) {
  10. zend_class_entry ce;
  11. INIT_NS_CLASS_ENTRY(ce, "Vtiful\\Kernel", "Exception", exception_methods);
  12. vtiful_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
  13. return SUCCESS;
  14. }