Skip to content

Commit 71c721e

Browse files
committed
inference
1 parent 27a29d7 commit 71c721e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/Optimizer/zend_inference.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3299,8 +3299,8 @@ static zend_always_inline zend_result _zend_update_type_info(
32993299
case ZEND_ROPE_END:
33003300
UPDATE_SSA_TYPE(MAY_BE_STRING|MAY_BE_RC1|MAY_BE_RCN, ssa_op->result_def);
33013301
break;
3302-
// TODO: ZEND_RECV_CE
33033302
case ZEND_RECV:
3303+
case ZEND_RECV_CE:
33043304
case ZEND_RECV_INIT:
33053305
case ZEND_RECV_VARIADIC:
33063306
{

ext/opcache/tests/opt/prop_types.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ noScope:
5858
BB0:
5959
; start exit lines=[0-9]
6060
; level=0
61-
0000 #1.CV0($test) [object (instanceof Test)] = RECV 1
61+
0000 #1.CV0($test) [object (instanceof Test)] = RECV_CE 1 string("Test")
6262
0001 INIT_FCALL 3 %d string("var_dump")
6363
0002 #2.T1 [bool] = FETCH_OBJ_R #1.CV0($test) [object (instanceof Test)] string("public")
6464
0003 SEND_VAL #2.T1 [bool] 1
@@ -96,7 +96,7 @@ Test::inTestWithTest2:
9696
BB0:
9797
; start exit lines=[0-9]
9898
; level=0
99-
0000 #1.CV0($test2) [object (instanceof Test2)] = RECV 1
99+
0000 #1.CV0($test2) [object (instanceof Test2)] = RECV_CE 1 string("Test2")
100100
0001 INIT_FCALL 3 %d string("var_dump")
101101
0002 #2.T1 [bool] = FETCH_OBJ_R #1.CV0($test2) [object (instanceof Test2)] string("public")
102102
0003 SEND_VAL #2.T1 [bool] 1

0 commit comments

Comments
 (0)