mirror of
https://github.com/php/php-src.git
synced 2026-04-09 00:53:30 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix type inference
This commit is contained in:
@@ -2680,9 +2680,6 @@ static zend_always_inline int _zend_update_type_info(
|
||||
tmp |= MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING;
|
||||
}
|
||||
}
|
||||
if (t1 & MAY_BE_OBJECT) {
|
||||
tmp |= MAY_BE_REF;
|
||||
}
|
||||
tmp |= MAY_BE_RC1 | MAY_BE_RCN;
|
||||
UPDATE_SSA_TYPE(tmp, ssa_op->result_def);
|
||||
}
|
||||
|
||||
18
ext/opcache/tests/jit/assign_dim_008.phpt
Normal file
18
ext/opcache/tests/jit/assign_dim_008.phpt
Normal file
@@ -0,0 +1,18 @@
|
||||
--TEST--
|
||||
JIT ASSIGN_DIM: 008
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.file_update_protection=0
|
||||
opcache.jit_buffer_size=1M
|
||||
--FILE--
|
||||
<?php
|
||||
function(int $a) {
|
||||
$arr = $a[] = (y);
|
||||
$arr = y;
|
||||
$c = $y = $arr[] = y($c);
|
||||
}
|
||||
?>
|
||||
DONE
|
||||
--EXPECT--
|
||||
DONE
|
||||
Reference in New Issue
Block a user