xref: /PHP-7.3/ext/opcache/tests/bug66474.phpt (revision fcd75690)
1--TEST--
2Bug #66474 (Optimizer bug in constant string to boolean conversion)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.file_update_protection=0
8--SKIPIF--
9<?php require_once('skipif.inc'); ?>
10--FILE--
11<?php
12function foo() {
13	$speed = 'slow' || 'fast';
14}
15foo();
16echo "ok\n";
17--EXPECT--
18ok
19