diff options
Diffstat (limited to 'Zend/tests/bug34358.phpt')
-rwxr-xr-x | Zend/tests/bug34358.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/bug34358.phpt b/Zend/tests/bug34358.phpt new file mode 100755 index 0000000000..b9c6565f51 --- /dev/null +++ b/Zend/tests/bug34358.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #34358 (Fatal error: Cannot re-assign $this(again)) +--FILE-- +<?php +class foo { + function bar() { + $ref = &$this; + } +} +$x = new foo(); +$x->bar(); +echo "ok\n"; +?> +--EXPECT-- +ok |