diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-05-02 13:21:55 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-05-02 13:21:55 +0000 |
commit | 688cc5039ac5e63eff514496e0438e13811d4dbd (patch) | |
tree | e52712ae3677fcca9e7718399d76ba535b07c433 /Zend/tests/bug41117_1.phpt | |
parent | c327dec913b3511bf64996c21a38fe9944ccb50d (diff) | |
download | php-git-688cc5039ac5e63eff514496e0438e13811d4dbd.tar.gz |
Fixed altering $this via argument named "this"
Diffstat (limited to 'Zend/tests/bug41117_1.phpt')
-rwxr-xr-x | Zend/tests/bug41117_1.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/bug41117_1.phpt b/Zend/tests/bug41117_1.phpt new file mode 100755 index 0000000000..f555b637ad --- /dev/null +++ b/Zend/tests/bug41117_1.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #41117 (Altering $this via argument) +--FILE-- +<?php +class foo { + function __construct($this) { + echo $this."\n"; + } +} +$obj = new foo("Hello world"); +?> +--EXPECTF-- +Fatal error: Cannot re-assign $this in %sbug41117_1.php on line 3 + |