mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
add an accessor for the default exception
This commit is contained in:
parent
cb1976cb13
commit
6f32f79cae
@ -121,6 +121,11 @@ static void zend_register_default_exception(TSRMLS_D)
|
||||
default_exception_ptr = zend_register_internal_class(&default_exception TSRMLS_CC);
|
||||
}
|
||||
|
||||
ZEND_API zend_class_entry *zend_exception_get_default(void)
|
||||
{
|
||||
return default_exception_ptr;
|
||||
}
|
||||
|
||||
ZEND_API void zend_register_default_classes(TSRMLS_D)
|
||||
{
|
||||
zend_register_default_exception(TSRMLS_C);
|
||||
|
@ -121,6 +121,11 @@ static void zend_register_default_exception(TSRMLS_D)
|
||||
default_exception_ptr = zend_register_internal_class(&default_exception TSRMLS_CC);
|
||||
}
|
||||
|
||||
ZEND_API zend_class_entry *zend_exception_get_default(void)
|
||||
{
|
||||
return default_exception_ptr;
|
||||
}
|
||||
|
||||
ZEND_API void zend_register_default_classes(TSRMLS_D)
|
||||
{
|
||||
zend_register_default_exception(TSRMLS_C);
|
||||
|
Loading…
Reference in New Issue
Block a user