mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Remove old exception class getters (#19043)
This commit is contained in:
parent
d154c7253e
commit
b0aaa31702
3 changed files with 3 additions and 20 deletions
|
@ -43,6 +43,9 @@ PHP 8.5 INTERNALS UPGRADE NOTES
|
||||||
. Added the zend_update_exception_properties() function for instantiating
|
. Added the zend_update_exception_properties() function for instantiating
|
||||||
Exception child classes. It updates the $message, $code, and $previous
|
Exception child classes. It updates the $message, $code, and $previous
|
||||||
properties.
|
properties.
|
||||||
|
. zend_exception_get_default() was removed, use zend_ce_exception directly.
|
||||||
|
. zend_get_error_exception() was removed, use zend_ce_error_exception
|
||||||
|
directly.
|
||||||
. ZEND_IS_XDIGIT() macro was removed because it was unused and its name
|
. ZEND_IS_XDIGIT() macro was removed because it was unused and its name
|
||||||
did not match its actual behavior.
|
did not match its actual behavior.
|
||||||
. zend_register_constant() now returns a pointer to the added constant
|
. zend_register_constant() now returns a pointer to the added constant
|
||||||
|
|
|
@ -846,20 +846,6 @@ void zend_register_default_exception(void) /* {{{ */
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ Deprecated - Use zend_ce_exception directly instead */
|
|
||||||
ZEND_API zend_class_entry *zend_exception_get_default(void)
|
|
||||||
{
|
|
||||||
return zend_ce_exception;
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ Deprecated - Use zend_ce_error_exception directly instead */
|
|
||||||
ZEND_API zend_class_entry *zend_get_error_exception(void)
|
|
||||||
{
|
|
||||||
return zend_ce_error_exception;
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
static zend_object *zend_throw_exception_zstr(zend_class_entry *exception_ce, zend_string *message, zend_long code) /* {{{ */
|
static zend_object *zend_throw_exception_zstr(zend_class_entry *exception_ce, zend_string *message, zend_long code) /* {{{ */
|
||||||
{
|
{
|
||||||
zval ex, tmp;
|
zval ex, tmp;
|
||||||
|
|
|
@ -50,12 +50,6 @@ void zend_register_default_exception(void);
|
||||||
|
|
||||||
ZEND_API zend_class_entry *zend_get_exception_base(zend_object *object);
|
ZEND_API zend_class_entry *zend_get_exception_base(zend_object *object);
|
||||||
|
|
||||||
/* Deprecated - Use zend_ce_exception directly instead */
|
|
||||||
ZEND_API zend_class_entry *zend_exception_get_default(void);
|
|
||||||
|
|
||||||
/* Deprecated - Use zend_ce_error_exception directly instead */
|
|
||||||
ZEND_API zend_class_entry *zend_get_error_exception(void);
|
|
||||||
|
|
||||||
ZEND_API void zend_register_default_classes(void);
|
ZEND_API void zend_register_default_classes(void);
|
||||||
|
|
||||||
/* exception_ce NULL, zend_ce_exception, zend_ce_error, or a derived class
|
/* exception_ce NULL, zend_ce_exception, zend_ce_error, or a derived class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue