mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
c16ad918ba
https://wiki.php.net/rfc/jit_config_defaults Closes GH-12678
25 lines
452 B
PHP
25 lines
452 B
PHP
--TEST--
|
|
Register Alloction 022: Incorrect type assumption
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
$a = $b = $x = 0; $c = null;
|
|
for ($i = 0; $i < 20; $i++) {
|
|
$x .= $b;
|
|
$x = $a ? $b : $c;
|
|
$a &= $x != $a ? $b : $c;
|
|
$x = $a ? $b : $c;
|
|
$a &= $x != $a ? $b : $c;
|
|
$x != $a ?: $c;
|
|
$a--;
|
|
}
|
|
}
|
|
test();
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
DONE
|