source: src/router/php7/ext/opcache/tests/ssa_bug_006.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 209 bytes
Line 
1--TEST--
2Incorrect optimization of $i = $i++
3--FILE--
4<?php
5
6function test() {
7    $i = 1;
8    $i = $i++;
9    var_dump($i);
10
11    $i = 1;
12    $i = $i--;
13    var_dump($i);
14}
15test();
16
17?>
18--EXPECT--
19int(1)
20int(1)
Note: See TracBrowser for help on using the repository browser.