Skip to content

Commit f566312

Browse files
authored
zend_API: Remove ZVAL_IS_NULL() (#19986)
The `ZVAL_*()` macros are setters, the `Z_*()` macros are getters.
1 parent 8982351 commit f566312

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

UPGRADING.INTERNALS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PHP 8.6 INTERNALS UPGRADE NOTES
1717
. ZSTR_INIT_LITERAL(), zend_string_starts_with_literal(), and
1818
zend_string_starts_with_literal_ci() now support strings containing NUL
1919
bytes. Passing non-literal char* is no longer supported.
20+
. The misnamed ZVAL_IS_NULL() has been removed. Use Z_ISNULL() instead.
2021

2122
========================
2223
2. Build system changes

Zend/zend_API.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,6 @@ static zend_always_inline bool zend_char_has_nul_byte(const char *s, size_t know
10661066
#define RETURN_THROWS() do { ZEND_ASSERT(EG(exception)); (void) return_value; return; } while (0)
10671067

10681068
#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)))
1069-
#define ZVAL_IS_NULL(z) (Z_TYPE_P(z) == IS_NULL)
10701069

10711070
/* For compatibility */
10721071
#define ZEND_MINIT ZEND_MODULE_STARTUP_N

0 commit comments

Comments
 (0)