Skip to content

Commit d40d0fa

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Stop after exceptions
2 parents 396be33 + ea92b9b commit d40d0fa

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
@@ -3794,6 +3794,7 @@ ZEND_METHOD(FFI, cast) /* {{{ */
37943794
RETURN_OBJ(&cdata->std);
37953795
} else {
37963796
zend_wrong_parameter_class_error(2, "FFI\\CData", zv);
3797+
return;
37973798
}
37983799
}
37993800

@@ -4037,6 +4038,7 @@ ZEND_METHOD(FFI, addr) /* {{{ */
40374038
ZVAL_DEREF(zv);
40384039
if (Z_TYPE_P(zv) != IS_OBJECT || Z_OBJCE_P(zv) != zend_ffi_cdata_ce) {
40394040
zend_wrong_parameter_class_error(1, "FFI\\CData", zv);
4041+
return;
40404042
}
40414043

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

0 commit comments

Comments
 (0)