assign_049.phpt 398 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. JIT ASSIGN: register allocation on x86
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. opcache.protect_memory=1
  9. --FILE--
  10. <?php
  11. function &a($i) {
  12. $a = "str". $i;
  13. return $a;
  14. }
  15. class A {
  16. public $a;
  17. public function test() {
  18. $this->a = a(1);
  19. }
  20. }
  21. $a = new A;
  22. $a->test();
  23. $a->test();
  24. ?>
  25. DONE
  26. --EXPECT--
  27. DONE