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 481f895 commit ea92b9bCopy full SHA for ea92b9b
ext/ffi/ffi.c
@@ -3826,6 +3826,7 @@ ZEND_METHOD(FFI, cast) /* {{{ */
3826
RETURN_OBJ(&cdata->std);
3827
} else {
3828
zend_wrong_parameter_class_error(2, "FFI\\CData", zv);
3829
+ return;
3830
}
3831
3832
@@ -4069,6 +4070,7 @@ ZEND_METHOD(FFI, addr) /* {{{ */
4069
4070
ZVAL_DEREF(zv);
4071
if (Z_TYPE_P(zv) != IS_OBJECT || Z_OBJCE_P(zv) != zend_ffi_cdata_ce) {
4072
zend_wrong_parameter_class_error(1, "FFI\\CData", zv);
4073
4074
4075
4076
cdata = (zend_ffi_cdata*)Z_OBJ_P(zv);
0 commit comments