mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove old zend_string compatibility aliases (#19034)
This commit is contained in:
parent
d8577d9bfb
commit
64e2832bc8
2 changed files with 7 additions and 9 deletions
|
@ -48,6 +48,13 @@ PHP 8.5 INTERNALS UPGRADE NOTES
|
||||||
directly.
|
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.
|
||||||
|
. The following zend_string-related legacy aliases were removed:
|
||||||
|
* IS_INTERNED() - use ZSTR_IS_INTERNED()
|
||||||
|
* STR_EMPTY_ALLOC() - use ZSTR_EMPTY_ALLOC()
|
||||||
|
* _STR_HEADER_SIZE - use _ZSTR_HEADER_SIZE
|
||||||
|
* STR_ALLOCA_ALLOC() - use ZSTR_ALLOCA_ALLOC()
|
||||||
|
* STR_ALLOCA_INIT() - use ZSTR_ALLOCA_INIT()
|
||||||
|
* STR_ALLOCA_FREE() - use ZSTR_ALLOCA_FREE()
|
||||||
. zend_register_constant() now returns a pointer to the added constant
|
. zend_register_constant() now returns a pointer to the added constant
|
||||||
on success and NULL on failure instead of SUCCESS/FAILURE.
|
on success and NULL on failure instead of SUCCESS/FAILURE.
|
||||||
The specialized registration methods that previously had void returns
|
The specialized registration methods that previously had void returns
|
||||||
|
|
|
@ -70,15 +70,6 @@ END_EXTERN_C()
|
||||||
#define ZSTR_H(zstr) (zstr)->h
|
#define ZSTR_H(zstr) (zstr)->h
|
||||||
#define ZSTR_HASH(zstr) zend_string_hash_val(zstr)
|
#define ZSTR_HASH(zstr) zend_string_hash_val(zstr)
|
||||||
|
|
||||||
/* Compatibility macros */
|
|
||||||
|
|
||||||
#define IS_INTERNED(s) ZSTR_IS_INTERNED(s)
|
|
||||||
#define STR_EMPTY_ALLOC() ZSTR_EMPTY_ALLOC()
|
|
||||||
#define _STR_HEADER_SIZE _ZSTR_HEADER_SIZE
|
|
||||||
#define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap)
|
|
||||||
#define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap)
|
|
||||||
#define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap)
|
|
||||||
|
|
||||||
/*---*/
|
/*---*/
|
||||||
|
|
||||||
#define ZSTR_IS_INTERNED(s) (GC_FLAGS(s) & IS_STR_INTERNED)
|
#define ZSTR_IS_INTERNED(s) (GC_FLAGS(s) & IS_STR_INTERNED)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue