Avoid reference mismatch

Returning the array not by reference is forcing PHP to copy the Zval because the variable is a reference in the method.
Merge pull request #2 from stof/patch-1

Avoid reference mismatch