Remove old exception class getters (#19043)

This commit is contained in:
DanielEScherzer 2025-07-07 11:43:07 -07:00 committed by GitHub
parent d154c7253e
commit b0aaa31702
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 20 deletions

View file

@ -43,6 +43,9 @@ PHP 8.5 INTERNALS UPGRADE NOTES
. Added the zend_update_exception_properties() function for instantiating
Exception child classes. It updates the $message, $code, and $previous
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
did not match its actual behavior.
. zend_register_constant() now returns a pointer to the added constant

View file

@ -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) /* {{{ */
{
zval ex, tmp;

View file

@ -50,12 +50,6 @@ void zend_register_default_exception(void);
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);
/* exception_ce NULL, zend_ce_exception, zend_ce_error, or a derived class