Skip to content

Commit ea92b9b

Browse files
committed
Stop after exceptions
1 parent 481f895 commit ea92b9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/ffi/ffi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3826,6 +3826,7 @@ ZEND_METHOD(FFI, cast) /* {{{ */
38263826
RETURN_OBJ(&cdata->std);
38273827
} else {
38283828
zend_wrong_parameter_class_error(2, "FFI\\CData", zv);
3829+
return;
38293830
}
38303831
}
38313832

@@ -4069,6 +4070,7 @@ ZEND_METHOD(FFI, addr) /* {{{ */
40694070
ZVAL_DEREF(zv);
40704071
if (Z_TYPE_P(zv) != IS_OBJECT || Z_OBJCE_P(zv) != zend_ffi_cdata_ce) {
40714072
zend_wrong_parameter_class_error(1, "FFI\\CData", zv);
4073+
return;
40724074
}
40734075

40744076
cdata = (zend_ffi_cdata*)Z_OBJ_P(zv);

0 commit comments

Comments
 (0)