xref: /PHP-8.0/Zend/tests/bug34358.phpt (revision 610c7fbe)
1--TEST--
2Bug #34358 (Fatal error: Cannot re-assign $this(again))
3--FILE--
4<?php
5class foo {
6  function bar() {
7    $ref = &$this;
8  }
9}
10$x = new foo();
11$x->bar();
12echo "ok\n";
13?>
14--EXPECT--
15ok
16