inline_001.phpt 325 B

12345678910111213141516171819202122
  1. --TEST--
  2. Fuction inlining 001: FETCH_THIS is incompatible with unused result
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. --FILE--
  8. <?php
  9. class Foo {
  10. function __construct() {
  11. Some::foo($this);
  12. }
  13. }
  14. class Some {
  15. static function foo() {
  16. }
  17. }
  18. new Foo;
  19. ?>
  20. DONE
  21. --EXPECT--
  22. DONE