12345678910111213141516171819202122232425262728 |
- --TEST--
- JIT ASSIGN: Assign to of reference with 1 refcount
- --INI--
- opcache.enable=1
- opcache.enable_cli=1
- opcache.file_update_protection=0
- opcache.jit_buffer_size=1M
- opcache.protect_memory=1
- --FILE--
- <?php
- class Test {
- public $prop;
- function __construct() {
- $this->prop = $this->retref();
- }
- function &retref() {
- return str_repeat("a", 5);
- }
- }
- $o = new Test();
- var_dump($o);
- ?>
- --EXPECTF--
- Notice: Only variable references should be returned by reference in %sassign_042.php on line 8
- object(Test)#1 (1) {
- ["prop"]=>
- string(5) "aaaaa"
- }
|