The requirements are similar to the following PHP code:
Class foo{ protected $bar = [];}
Note that it is not initialized in the constructor.
Let's play a little bit ... If you use Zend_declare_property directly to initialize a property to an empty array, you get the following error:
Fatal error:internal zval ' s can ' t be arrays, objects or resources in Unknown on line 0
Reply content:
The requirements are similar to the following PHP code:
Class foo{ protected $bar = [];}
Note that it is not initialized in the constructor.
Let's play a little bit ... If you use Zend_declare_property directly to initialize a property to an empty array, you get the following error:
Fatal error:internal zval ' s can ' t be arrays, objects or resources in Unknown on line 0
constructor, or create handler to initialize,,, is this a problem or?
Class foo{ protected $bar = Array ();}