wrong_inlining_004.phpt 319 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Inlining through call_user_func()
  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. function get_const() {
  12. return 42;
  13. }
  14. function test() {
  15. $x = new stdClass;
  16. var_dump(call_user_func('get_const', $x));
  17. }
  18. test();
  19. ?>
  20. --EXPECT--
  21. int(42)