xref: /php-src/ext/opcache/tests/issue0079.phpt (revision e9f783fc)
1--TEST--
2ISSUE #79 (Optimization Problem/Bug)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11class Test {
12    public function run() {
13        $r = $this->my_parse_m();
14        var_dump ($r);
15        return $r;
16    }
17
18    public function my_parse_m() {
19        $test = true;
20        if ($test === true) {
21            $a = 'b';
22        } else {
23            return false;
24        }
25//      flush();
26        return true;
27    }
28}
29
30$t = new Test();
31var_dump ($t->run());
32?>
33--EXPECT--
34bool(true)
35bool(true)
36