Re: [PHP-DEV] Undefined property notice

2007-08-20 Thread Scott MacVicar
I had always assumed this was down to the use of __set class foo { function __set($var, $value) { } } $o = new foo; $o->b = $o->b + 5; $o->c += 5; Displays the exact same properties. Scott Jakub Vrana wrote: > PHP have the Undefined variable/property notice to inform a programmer > abo

Re: [PHP-DEV] Undefined property notice

2007-08-20 Thread Derick Rethans
On Mon, 20 Aug 2007, Jakub Vrana wrote: > PHP have the Undefined variable/property notice to inform a programmer > about using uninitialized variables/properties. While both $b = $b + 5 > and $c += 5 issues the notice (and also $a["b"] = $a["b"] + 5 and > $a["c"] += 5 in case of arrays), in case o

[PHP-DEV] Undefined property notice

2007-08-20 Thread Jakub Vrana
PHP have the Undefined variable/property notice to inform a programmer about using uninitialized variables/properties. While both $b = $b + 5 and $c += 5 issues the notice (and also $a["b"] = $a["b"] + 5 and $a["c"] += 5 in case of arrays), in case of objects only $o->b = $o->b + 5 issues the notic