mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
21 lines
209 B
Plaintext
21 lines
209 B
Plaintext
|
--TEST--
|
||
|
Incorrect optimization of $i = $i++
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function test() {
|
||
|
$i = 1;
|
||
|
$i = $i++;
|
||
|
var_dump($i);
|
||
|
|
||
|
$i = 1;
|
||
|
$i = $i--;
|
||
|
var_dump($i);
|
||
|
}
|
||
|
test();
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(1)
|
||
|
int(1)
|