diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-10-03 08:21:51 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-10-03 08:21:51 +0000 |
commit | 728acc3785ec9ca6b2233ee8071805d139dda2bd (patch) | |
tree | c6e02e4ebb6eae2ee8bc4e2c11d7585beeaa9dcd /Zend/tests/bug34358.phpt | |
parent | 9a0bed9863150dc090d3ff544d1b0c7d50c01a47 (diff) | |
download | php-git-728acc3785ec9ca6b2233ee8071805d139dda2bd.tar.gz |
Fixed bug #34358 (Fatal error: Cannot re-assign $this)
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 |