1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 13:01:02 +02:00

Fix JIT segfaults in FFI tests

Conservative fix that just disables this optimization.
This commit is contained in:
Nikita Popov
2020-04-28 15:43:52 +02:00
parent dc1574e0a0
commit 0da38cda6e

View File

@@ -8463,11 +8463,17 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
|1:
if (!RETURN_VALUE_USED(opline)) {
#if 0
/* If an exception is thrown, then the value stored in the return_value slot
* may have a different type. */
zend_class_entry *ce;
zend_bool ce_is_instanceof;
uint32_t func_info = call_info ?
zend_get_func_info(call_info, ssa, &ce, &ce_is_instanceof) :
(MAY_BE_ANY|MAY_BE_REF|MAY_BE_RC1|MAY_BE_RCN);
#else
uint32_t func_info = (MAY_BE_ANY|MAY_BE_REF|MAY_BE_RC1|MAY_BE_RCN);
#endif
if (func_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE|MAY_BE_REF)) {
| ZVAL_PTR_DTOR res_addr, func_info, 1, 1, opline