We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b152ef commit 87d981bCopy full SHA for 87d981b
Zend/zend_variables.c
@@ -51,6 +51,11 @@ static const zend_rc_dtor_func_t zend_rc_dtor_func[] = {
51
[IS_CONSTANT_AST] = (zend_rc_dtor_func_t)zend_ast_ref_destroy
52
};
53
54
+#if ZEND_GCC_VERSION >= 4006 || defined(__clang__)
55
+_Static_assert(sizeof(zend_rc_dtor_func) / sizeof(zend_rc_dtor_func[0]) == _IS_REGULAR_END,
56
+ "zend_rc_dtor_func has the wrong size");
57
+#endif
58
+
59
ZEND_API void ZEND_FASTCALL rc_dtor_func(zend_refcounted *p)
60
{
61
ZEND_ASSERT(GC_TYPE(p) <= IS_CONSTANT_AST);
0 commit comments