mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
zend_API: Remove ZVAL_IS_NULL() (#19986)
The `ZVAL_*()` macros are setters, the `Z_*()` macros are getters.
This commit is contained in:
@@ -17,6 +17,7 @@ PHP 8.6 INTERNALS UPGRADE NOTES
|
||||
. ZSTR_INIT_LITERAL(), zend_string_starts_with_literal(), and
|
||||
zend_string_starts_with_literal_ci() now support strings containing NUL
|
||||
bytes. Passing non-literal char* is no longer supported.
|
||||
. The misnamed ZVAL_IS_NULL() has been removed. Use Z_ISNULL() instead.
|
||||
|
||||
========================
|
||||
2. Build system changes
|
||||
|
||||
@@ -1066,7 +1066,6 @@ static zend_always_inline bool zend_char_has_nul_byte(const char *s, size_t know
|
||||
#define RETURN_THROWS() do { ZEND_ASSERT(EG(exception)); (void) return_value; return; } while (0)
|
||||
|
||||
#define HASH_OF(p) (Z_TYPE_P(p)==IS_ARRAY ? Z_ARRVAL_P(p) : ((Z_TYPE_P(p)==IS_OBJECT ? Z_OBJ_HT_P(p)->get_properties(Z_OBJ_P(p)) : NULL)))
|
||||
#define ZVAL_IS_NULL(z) (Z_TYPE_P(z) == IS_NULL)
|
||||
|
||||
/* For compatibility */
|
||||
#define ZEND_MINIT ZEND_MODULE_STARTUP_N
|
||||
|
||||
Reference in New Issue
Block a user