1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

zend_operators: Remove _zval_get_*() PHP 7.2 compatibility macros (#20152)

These have been unused for long enough and just pollute the symbol namespace.
This commit is contained in:
Tim Düsterhus
2025-10-14 10:20:16 +02:00
committed by GitHub
parent 2dba2aabad
commit e1240f25df
2 changed files with 4 additions and 8 deletions

View File

@@ -22,6 +22,10 @@ PHP 8.6 INTERNALS UPGRADE NOTES
added, given the primary flags were running out of bits.
. The zval_is_true() alias of zend_is_true() has been removed. Call
zend_is_true() directly instead.
. The _zval_get_*() compatibility macros for PHP 7.2 have been removed
call the variant without the leading underscore instead.
Affected: _zval_get_long, _zval_get_double, _zval_get_string,
_zval_get_long_func, _zval_get_double_func, _zval_get_string_func
========================
2. Build system changes

View File

@@ -390,14 +390,6 @@ static zend_always_inline bool try_convert_to_string(zval *op) {
return _try_convert_to_string(op);
}
/* Compatibility macros for 7.2 and below */
#define _zval_get_long(op) zval_get_long(op)
#define _zval_get_double(op) zval_get_double(op)
#define _zval_get_string(op) zval_get_string(op)
#define _zval_get_long_func(op) zval_get_long_func(op)
#define _zval_get_double_func(op) zval_get_double_func(op)
#define _zval_get_string_func(op) zval_get_string_func(op)
#define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); }