File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -16179,6 +16179,7 @@ bw_op:
1617916179 if (!(op1_info & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF)-MAY_BE_LONG)) &&
1618016180 !(op2_info & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF)-MAY_BE_LONG))) {
1618116181 if (opline->op2_type == IS_CONST &&
16182+ opline->op1_type != IS_CONST &&
1618216183 Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) == IS_LONG &&
1618316184 zend_long_is_power_of_two(Z_LVAL_P(RT_CONSTANT(opline, opline->op2))) &&
1618416185 OP1_HAS_RANGE() &&
Original file line number Diff line number Diff line change 1+ --TEST--
2+ Register Alloction 013: Division by zero
3+ --INI--
4+ opcache.enable=1
5+ opcache.enable_cli=1
6+ opcache.file_update_protection=0
7+ opcache.jit_buffer_size=1M
8+ --FILE--
9+ <?php
10+ function foo () {
11+ $ j ++;
12+ $ j ++ % $ j -= $ a % $ a = $ j ;
13+ }
14+ foo ();
15+ ?>
16+ DONE
17+ --EXPECTF--
18+ Warning: Undefined variable $j in %sreg_alloc_013.php on line 3
19+ DONE
You can’t perform that action at this time.
0 commit comments