dis-bench / src /php /php-src /ext /opcache /tests /bug66474.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
311 Bytes
--TEST--
Bug #66474 (Optimizer bug in constant string to boolean conversion)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.file_update_protection=0
--EXTENSIONS--
opcache
--FILE--
<?php
function foo() {
$speed = 'slow' || 'fast';
}
foo();
echo "ok\n";
?>
--EXPECT--
ok