xref: /PHP-8.0/Zend/tests/bug70179.phpt (revision f8d79582)
1--TEST--
2Bug #70179 ($this refcount issue)
3--FILE--
4<?php
5
6class X {
7    function __invoke() {
8        var_dump($this);
9    }
10}
11(new X)();
12
13?>
14--EXPECT--
15object(X)#1 (0) {
16}
17