Hi, $this .= '123';
Should be $this = '123'; or $this = ''; $this .= '123'; must init the variable. Not only the $this but also any one. Regards Cristian Rodriguez 写道:
Hi:
It is still possible to re-asign $this in a number of ways
examples
<?php
$this .= '123';
var_dump($this);
//Notice: Undefined variable: this in this.php on line 3
//string(3) "123"
<?php
$this{1} = '123';
var_dump($this);
/* array(1) {
[1]=>
string(3) "123"
}
*/
or ..
$this['foo'] = '123';
var_dump($this);
In all those cases, I expect a fatal error : cannot re-asign $this.
right ? or Im missing something ?
Thanks..
signature.asc
Description: OpenPGP digital signature
