issue0079.phpt 568 B

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