mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
36 lines
568 B
PHP
36 lines
568 B
PHP
--TEST--
|
|
ISSUE #79 (Optimization Problem/Bug)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
class Test {
|
|
public function run() {
|
|
$r = $this->my_parse_m();
|
|
var_dump ($r);
|
|
return $r;
|
|
}
|
|
|
|
public function my_parse_m() {
|
|
$test = true;
|
|
if ($test === true) {
|
|
$a = 'b';
|
|
} else {
|
|
return false;
|
|
}
|
|
// flush();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
$t = new Test();
|
|
var_dump ($t->run());
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|