Php 1093 refactor cursor logic

`RETVAL_ZVAL()`?