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.
2 parents 396be33 + ea92b9b commit d40d0faCopy full SHA for d40d0fa
ext/ffi/ffi.c
@@ -3794,6 +3794,7 @@ ZEND_METHOD(FFI, cast) /* {{{ */
3794
RETURN_OBJ(&cdata->std);
3795
} else {
3796
zend_wrong_parameter_class_error(2, "FFI\\CData", zv);
3797
+ return;
3798
}
3799
3800
@@ -4037,6 +4038,7 @@ ZEND_METHOD(FFI, addr) /* {{{ */
4037
4038
ZVAL_DEREF(zv);
4039
if (Z_TYPE_P(zv) != IS_OBJECT || Z_OBJCE_P(zv) != zend_ffi_cdata_ce) {
4040
zend_wrong_parameter_class_error(1, "FFI\\CData", zv);
4041
4042
4043
4044
cdata = (zend_ffi_cdata*)Z_OBJ_P(zv);
0 commit comments