xref: /php-src/ext/opcache/tests/bug78034.phpt (revision e9f783fc)
1--TEST--
2Bug #78034: "pecl" tool fails with abort assertion in zend_ssa.c
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8function &ref() {}
9
10class Test {
11    function method($bool) {
12        if (!$bool) {
13            $this->foo = &ref();
14        }
15
16        $this->foo = &ref();
17    }
18}
19
20?>
21===DONE===
22--EXPECT--
23===DONE===
24