zendframework/zend-db

AbstractResultSet::current() change breaks BC

Closed this issue · 1 comments

The change in #56, to check if the result is an array breaks BC. I'm extending some of the result classes to allow for simple value objects being returned, and this change break my code, unfortunately.

Also, as far as I can see, the result is still buffered, and can be returned on consecutive calls.

Maybe it would be better explicitly to check if $data === false?

Nevermind, I'm going to use the HydratingResultSet instead. Maybe there's an issue with the buffering of non-valid data, but it's not an issue for me.