summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70179.phpt
blob: a5bdb9880593424fef5b2e1c1461d575bb696821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #70179 ($this refcount issue)
--FILE--
<?php

class X {
	function __invoke() {
		var_dump($this);
	}
}
(new X)();

?>
--EXPECT--
object(X)#1 (0) {
}