@@ -43,10 +43,29 @@ PHP 8.5 INTERNALS UPGRADE NOTES
4343 . Added the zend_update_exception_properties() function for instantiating
4444 Exception child classes. It updates the $message, $code, and $previous
4545 properties.
46+ . zend_exception_get_default() was removed, use zend_ce_exception directly.
47+ . zend_get_error_exception() was removed, use zend_ce_error_exception
48+ directly.
4649 . ZEND_IS_XDIGIT() macro was removed because it was unused and its name
4750 did not match its actual behavior.
51+ . The following zend_string-related legacy aliases were removed:
52+ * IS_INTERNED() - use ZSTR_IS_INTERNED()
53+ * STR_EMPTY_ALLOC() - use ZSTR_EMPTY_ALLOC()
54+ * _STR_HEADER_SIZE - use _ZSTR_HEADER_SIZE
55+ * STR_ALLOCA_ALLOC() - use ZSTR_ALLOCA_ALLOC()
56+ * STR_ALLOCA_INIT() - use ZSTR_ALLOCA_INIT()
57+ * STR_ALLOCA_FREE() - use ZSTR_ALLOCA_FREE()
4858 . zend_register_constant() now returns a pointer to the added constant
4959 on success and NULL on failure instead of SUCCESS/FAILURE.
60+ The specialized registration methods that previously had void returns
61+ also return pointers to the added constants:
62+ * zend_register_bool_constant()
63+ * zend_register_null_constant()
64+ * zend_register_long_constant()
65+ * zend_register_double_constant()
66+ * zend_register_string_constant()
67+ * zend_register_stringl_constant()
68+ . EG(fake_scope) now is a _const_ zend_class_entry*.
5069
5170========================
52712. Build system changes
@@ -72,11 +91,14 @@ PHP 8.5 INTERNALS UPGRADE NOTES
7291 . Autoconf macro PHP_AP_EXTRACT_VERSION has been removed.
7392 . Autoconf macro PHP_BUILD_THREAD_SAFE has been removed (set enable_zts
7493 manually).
94+ . Autoconf macro PHP_CHECK_SIZEOF is obsolete (use AC_CHECK_SIZEOF).
7595 . Autoconf macro PHP_DEF_HAVE has been removed (use AC_DEFINE).
7696 . Autoconf macro PHP_OUTPUT has been removed (use AC_CONFIG_FILES).
7797 . Autoconf macro PHP_TEST_BUILD has been removed (use AC_* macros).
7898 . Preprocessor macro HAVE_PTRDIFF_T has been removed.
7999 . Preprocessor macro HAVE_INTMAX_T has been removed.
100+ . Preprocessor macro HAVE_SSIZE_T has been removed.
101+ . Preprocessor macro SIZEOF_SSIZE_T has been removed.
80102
81103========================
821043. Module changes
0 commit comments