fix PHP 5.3 syntax on return value dereference

PHP5.3 doesn't allow to dereference a returned array directly without using a temporary variable.