2021-08-31 17:13:49 +00:00
|
|
|
PHP 8.2 INTERNALS UPGRADE NOTES
|
2010-08-30 10:26:31 +00:00
|
|
|
|
|
|
|
1. Internal API changes
|
2010-09-17 08:42:12 +00:00
|
|
|
|
2010-11-18 10:43:01 +00:00
|
|
|
2. Build system changes
|
|
|
|
|
2015-07-03 09:46:30 +00:00
|
|
|
3. Module changes
|
2010-11-18 10:43:01 +00:00
|
|
|
|
2021-12-09 17:15:59 +00:00
|
|
|
4. OpCode changes
|
|
|
|
|
2010-08-30 10:26:31 +00:00
|
|
|
========================
|
|
|
|
1. Internal API changes
|
|
|
|
========================
|
|
|
|
|
2021-09-24 07:38:08 +00:00
|
|
|
* Removed zend_binary_zval_str(n)casecmp() APIs. These were thin wrappers
|
|
|
|
around zend_binary_str(n)casecmp_l() -- rather than
|
|
|
|
zend_binary_str(n)casecmp() as one would expect. Call the appropriate
|
|
|
|
wrapped function directly instead.
|
2021-10-21 21:54:41 +00:00
|
|
|
* Removed the (ZEND_)WRONG_PARAM_COUNT_WITH_RETVAL() macros.
|
2021-12-29 11:51:18 +00:00
|
|
|
* php_stristr() no longer lowercases the haystack and needle as a side effect.
|
|
|
|
Call zend_str_tolower() yourself if necessary. You no longer need to copy
|
|
|
|
the haystack and needle before passing them to php_stristr().
|
2021-09-24 07:38:08 +00:00
|
|
|
|
2010-11-18 10:43:01 +00:00
|
|
|
========================
|
|
|
|
2. Build system changes
|
|
|
|
========================
|
2021-08-31 17:13:49 +00:00
|
|
|
|
2015-01-25 21:14:40 +00:00
|
|
|
========================
|
|
|
|
3. Module changes
|
|
|
|
========================
|
2020-12-13 15:50:22 +00:00
|
|
|
|
2022-03-13 15:15:57 +00:00
|
|
|
a. ext/standard
|
|
|
|
- The PHP APIs string_natural_compare_function_ex(),
|
|
|
|
string_natural_case_compare_function(), and string_natural_compare_function()
|
|
|
|
have been removed. They always returned SUCCESS and were a wrapper around
|
|
|
|
strnatcmp_ex(). Use strnatcmp_ex() directly instead.
|
2022-05-18 14:30:59 +00:00
|
|
|
b. ext/pdo
|
|
|
|
- pdo_raise_impl_error()'s parameter sqlstate has been changed from
|
|
|
|
const char * to pdo_error_type (aka char [6]).
|
2022-03-13 15:15:57 +00:00
|
|
|
|
2021-12-09 17:15:59 +00:00
|
|
|
========================
|
|
|
|
4. OpCode changes
|
|
|
|
========================
|
|
|
|
|
|
|
|
* The ZEND_INIT_FCALL opcode now asserts that the function exists in the symbol
|
|
|
|
table as the function's existence is checked at compile time.
|
|
|
|
For extensions modifying the function symbol table, setting
|
|
|
|
CG(compiler_options) |= ZEND_COMPILE_IGNORE_USER_FUNCTIONS | ZEND_COMPILE_IGNORE_INTERNAL_FUNCTIONS;
|
|
|
|
will produce ZEND_INIT_FCALL_BY_NAME opcodes instead which check for the
|
|
|
|
existence of the function at runtime.
|
|
|
|
|