Re: [PHP-DEV] having fun with $this

2008-03-08 Thread 邢兴
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 string(3) "123" } */ or .. $this['foo'] =

[PHP-DEV] having fun with $this

2008-03-06 Thread Cristian Rodriguez
Hi: It is still possible to re-asign $this in a number of ways examples 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.. -- "If debugging is the proces