diff options
author | Anatol Belski <ab@php.net> | 2014-09-15 16:32:18 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-15 19:46:28 +0200 |
commit | e591c78d090f2c175b02f648f6b191ecc2f6d506 (patch) | |
tree | 2086e60e359b2a72361ceb1c4d500e2eb7902065 /Zend/zend_interfaces.h | |
parent | 0799459e761308c70e47e3f3376315991fe3ed50 (diff) | |
download | php-git-e591c78d090f2c175b02f648f6b191ecc2f6d506.tar.gz |
revamp serialization to work with size_t for Serializable
Diffstat (limited to 'Zend/zend_interfaces.h')
-rw-r--r-- | Zend/zend_interfaces.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_interfaces.h b/Zend/zend_interfaces.h index 88e1dfe05b..9bfef0990d 100644 --- a/Zend/zend_interfaces.h +++ b/Zend/zend_interfaces.h @@ -61,11 +61,11 @@ ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *c ZEND_API void zend_register_interfaces(TSRMLS_D); -ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC); -ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC); +ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data TSRMLS_DC); +ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data TSRMLS_DC); -ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, uint32_t *buf_len, zend_serialize_data *data TSRMLS_DC); -ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, uint32_t buf_len, zend_unserialize_data *data TSRMLS_DC); +ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data TSRMLS_DC); +ZEND_API int zend_class_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data TSRMLS_DC); END_EXTERN_C() |