php-src/Zend/tests/bug41117_1.phpt
2007-05-02 13:21:55 +00:00

15 lines
249 B
PHP
Executable File

--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