xref: /PHP-8.0/ext/opcache/tests/bug78034.phpt (revision ff4b0ce0)
1--TEST--
2Bug #78034: "pecl" tool fails with abort assertion in zend_ssa.c
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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