mirror of
https://github.com/php/php-src.git
synced 2026-04-05 07:02:33 +02:00
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
20 lines
311 B
PHP
20 lines
311 B
PHP
--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
|