Skip to content

Commit

Permalink
Improve debug assertion now that conversion is mostly done
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Jul 1, 2024
1 parent 4939424 commit 2855ec5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,17 @@ ZEND_API bool zend_never_inline zend_verify_class_constant_type(zend_class_const
#ifdef ZEND_DEBUG
static zend_never_inline ZEND_COLD bool zend_check_dimension_interfaces_implemented(const zend_object *object, bool has_offset, int type)
{
return true;
/* ext/ffi CData class is currently weird */
if (zend_string_equals_literal_ci(object->ce->name, "FFI\\CData")) {
return true;
}
/* ext/zend_test class is used for debugging and checking behaviour */
if (zend_string_equals_literal_ci(object->ce->name, "DimensionHandlersNoArrayAccess")) {
return true;
}
if (instanceof_function(object->ce, zend_ce_arrayaccess)) {
return true;
}
switch (type) {
case BP_VAR_R:
case BP_VAR_IS:
Expand Down

0 comments on commit 2855ec5

Please sign in to comment.