Page 1 of 1

zend resources vs object properties

Posted: Wed Apr 22, 2009 1:50 pm
by witheredOldMale
If only a known number and types of member variables need to be stored in a php object, can they be be declared as object properties with get and set functions, instead of as resources? In our php extension code everywhere objects are registered as resources but there is a need them as expose public members so I’m thinking of making them properties instead of resources. Isn’t that the right approach?

Thanks
witheredOldMale