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 @@ -16117,6 +16117,7 @@ bw_op:
1611716117 if (!(op1_info & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF)-MAY_BE_LONG)) &&
1611816118 !(op2_info & ((MAY_BE_ANY|MAY_BE_REF|MAY_BE_UNDEF)-MAY_BE_LONG))) {
1611916119 if (opline->op2_type == IS_CONST &&
16120+ opline->op1_type != IS_CONST &&
1612016121 Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) == IS_LONG &&
1612116122 zend_long_is_power_of_two(Z_LVAL_P(RT_CONSTANT(opline, opline->op2))) &&
1612216123 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