Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Chris
the question is what is __set() doing, if it's throwing an exception for undefined properties then obviously it with 'blow up'. But why should __set() even be called if I'm accessing the property directly? This seems stupid. $this->oraclecustomerid = 1122; should NOT be the same as $this

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Daevid Vincent
On Tue, 2009-02-03 at 08:30 +0100, Edmund Hertle wrote: > 2009/2/3 Daevid Vincent > > > Is there a way to create a new property via PHP 5.2.4? > > > > I get a hash back from an authentication server. I'm not guaranteed that > > someone in another department won't add new key/values to the return

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Daevid Vincent
On Tue, 2009-02-03 at 12:51 +0100, Jochem Maas wrote: > Edmund Hertle schreef: > > 2009/2/3 Daevid Vincent > > > >> Is there a way to create a new property via PHP 5.2.4? > >> > >> I get a hash back from an authentication server. I'm not guaranteed that > >> someone in another department won't a

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Jochem Maas
Edmund Hertle schreef: > 2009/2/3 Daevid Vincent > >> Is there a way to create a new property via PHP 5.2.4? >> >> I get a hash back from an authentication server. I'm not guaranteed that >> someone in another department won't add new key/values to the returned >> hash/array. I'm trying to work a

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-02 Thread Edmund Hertle
2009/2/3 Daevid Vincent > Is there a way to create a new property via PHP 5.2.4? > > I get a hash back from an authentication server. I'm not guaranteed that > someone in another department won't add new key/values to the returned > hash/array. I'm trying to work around that part gracefully so th

[PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-02 Thread Daevid Vincent
Is there a way to create a new property via PHP 5.2.4? I get a hash back from an authentication server. I'm not guaranteed that someone in another department won't add new key/values to the returned hash/array. I'm trying to work around that part gracefully so that the code doesn't blow up on a cu