mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Stop after exceptions
This commit is contained in:
commit
d40d0faa90
1 changed files with 2 additions and 0 deletions
|
@ -3794,6 +3794,7 @@ ZEND_METHOD(FFI, cast) /* {{{ */
|
|||
RETURN_OBJ(&cdata->std);
|
||||
} else {
|
||||
zend_wrong_parameter_class_error(2, "FFI\\CData", zv);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4037,6 +4038,7 @@ ZEND_METHOD(FFI, addr) /* {{{ */
|
|||
ZVAL_DEREF(zv);
|
||||
if (Z_TYPE_P(zv) != IS_OBJECT || Z_OBJCE_P(zv) != zend_ffi_cdata_ce) {
|
||||
zend_wrong_parameter_class_error(1, "FFI\\CData", zv);
|
||||
return;
|
||||
}
|
||||
|
||||
cdata = (zend_ffi_cdata*)Z_OBJ_P(zv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue