PHP 5.3 compatibility

PHP 5.3 compatibility
Changed function dereferencing.
Changed array simple declaration.