Skip to content

Commit a582013

Browse files
committed
Remove impossible cases from string offset error handling
As far as I can see, these cases should not be reachable.
1 parent 3ce472d commit a582013

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Zend/zend_execute.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,10 +1537,7 @@ ZEND_API ZEND_COLD void zend_wrong_string_offset_error(void)
15371537
}
15381538

15391539
switch (opline->opcode) {
1540-
case ZEND_ASSIGN_OP:
15411540
case ZEND_ASSIGN_DIM_OP:
1542-
case ZEND_ASSIGN_OBJ_OP:
1543-
case ZEND_ASSIGN_STATIC_PROP_OP:
15441541
msg = "Cannot use assign-op operators with string offsets";
15451542
break;
15461543
case ZEND_FETCH_DIM_W:
@@ -1578,10 +1575,6 @@ ZEND_API ZEND_COLD void zend_wrong_string_offset_error(void)
15781575
case ZEND_ASSIGN_DIM_OP:
15791576
msg = "Cannot use string offset as an array";
15801577
break;
1581-
case ZEND_ASSIGN_STATIC_PROP_OP:
1582-
case ZEND_ASSIGN_OP:
1583-
msg = "Cannot use assign-op operators with string offsets";
1584-
break;
15851578
case ZEND_PRE_INC:
15861579
case ZEND_PRE_DEC:
15871580
case ZEND_POST_INC:

0 commit comments

Comments
 (0)