Disabling dynamic properties

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zz_vf_zz
Forum Newbie
Posts: 3
Joined: Wed Oct 14, 2009 10:22 am

Disabling dynamic properties

Post by zz_vf_zz »

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
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: Disabling dynamic properties

Post by markusn00b »

Nope.

Mark.
Post Reply