php-src/ext/opcache/tests/ssa_bug_006.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

23 lines
232 B
PHP

--TEST--
Incorrect optimization of $i = $i++
--EXTENSIONS--
opcache
--FILE--
<?php
function test() {
$i = 1;
$i = $i++;
var_dump($i);
$i = 1;
$i = $i--;
var_dump($i);
}
test();
?>
--EXPECT--
int(1)
int(1)