Disabling dynamic properties
Posted: Wed Oct 14, 2009 10:25 am
Hi All,
Is there a way to disable in PHP dynamic properties,
except for overwriting the __set magic method and throwing an exception from there?
I'm looking for a general solution which wouldn't require repetition in each and every class..
Perhaps some kind of config?
Thanks!
Vitaliy
Is there a way to disable in PHP dynamic properties,
except for overwriting the __set magic method and throwing an exception from there?
I'm looking for a general solution which wouldn't require repetition in each and every class..
Perhaps some kind of config?
Thanks!
Vitaliy