mod_005.phpt 356 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. JIT MOD: 005
  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. class Test{
  12. public $prop = 32;
  13. }
  14. function test2($test) {
  15. $test->prop %= 3;
  16. return $test;
  17. }
  18. var_dump(test2(new Test));
  19. ?>
  20. --EXPECT--
  21. object(Test)#1 (1) {
  22. ["prop"]=>
  23. int(2)
  24. }