summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug78034.phpt
blob: b4ef93dff6e2c02dcccd3cc5ecddb673ec0b1c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #78034: "pecl" tool fails with abort assertion in zend_ssa.c
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

function &ref() {}

class Test {
    function method($bool) {
        if (!$bool) {
            $this->foo = &ref();
        }

        $this->foo = &ref();
    }
}

?>
===DONE===
--EXPECT--
===DONE===