|
|
|
@ -22,6 +22,7 @@ |
|
|
|
* - optimize current() to pass return_value to the handler so that it fills it |
|
|
|
* in directly instead of creating a new zval |
|
|
|
* - return code units as binary strings? integers? or leave as unicode strings? |
|
|
|
* - implement Countable (or count_elements handler) and Seekable interfaces |
|
|
|
*/ |
|
|
|
|
|
|
|
#include "php.h" |
|
|
|
@ -43,8 +44,8 @@ typedef struct { |
|
|
|
zval* current; |
|
|
|
union { |
|
|
|
struct { |
|
|
|
int32_t offset; |
|
|
|
int32_t index; |
|
|
|
int32_t offset; |
|
|
|
} cp; |
|
|
|
struct { |
|
|
|
int32_t index; |
|
|
|
|