Re: [PHP-DEV] __get() and __set() in PHP 5

2003-07-12 Thread Andi Gutmans
At 08:42 PM 12/7/2003 +0100, Paul Hudson wrote: Andi, Wouldn't it be more useful if they worked for all variables, or is there a design reason why they work as they do currently? The idea is that you can mix regular variables and variable overloading, it is like this by design. If you want it to

Re: [PHP-DEV] __get() and __set() in PHP 5

2003-07-12 Thread Paul Hudson
Andi, Wouldn't it be more useful if they worked for all variables, or is there a design reason why they work as they do currently? --Paul > Yes, you are right. They only work if the variable is not defined. > > Andi > > At 08:03 PM 12/7/2003 +0100, Paul Hudson wrote: > >All, > > > >I've been

Re: [PHP-DEV] __get() and __set() in PHP 5

2003-07-12 Thread Andi Gutmans
Yes, you are right. They only work if the variable is not defined. Andi At 08:03 PM 12/7/2003 +0100, Paul Hudson wrote: All, I've been poking around with these two functions while testing the build from CVS, and am not sure how they're supposed to work. From what I can gather, they are only cal

[PHP-DEV] __get() and __set() in PHP 5

2003-07-12 Thread Paul Hudson
All, I've been poking around with these two functions while testing the build from CVS, and am not sure how they're supposed to work. From what I can gather, they are only called when changing a variable that wasn't in the class definition. I say that because I took the example script from h