diff options
author | Etienne Kneuss <colder@php.net> | 2008-08-24 18:22:33 +0000 |
---|---|---|
committer | Etienne Kneuss <colder@php.net> | 2008-08-24 18:22:33 +0000 |
commit | cc9a8ee528a4d25240a1d3971a34431358c57119 (patch) | |
tree | 60520fe9045839ab9f534732e1a96c86ab5b2549 /Zend/zend_interfaces.h | |
parent | ce2f9bb0cf96fbb2aad317d8c9b6d947165ab02c (diff) | |
download | php-git-cc9a8ee528a4d25240a1d3971a34431358c57119.tar.gz |
MFH:
- Copy custom callback to the child class if any
- Prevent overwriting valid parent callbacks when implementing Serializable
- Export zend_user_(un)serialize to be available for custom callbacks
Diffstat (limited to 'Zend/zend_interfaces.h')
-rwxr-xr-x | Zend/zend_interfaces.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_interfaces.h b/Zend/zend_interfaces.h index c498666d7a..4d9e417791 100755 --- a/Zend/zend_interfaces.h +++ b/Zend/zend_interfaces.h @@ -61,6 +61,9 @@ 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, zend_uint *buf_len, zend_serialize_data *data TSRMLS_DC); +ZEND_API int zend_user_unserialize(zval **object, zend_class_entry *ce, const unsigned char *buf, zend_uint buf_len, zend_unserialize_data *data TSRMLS_DC); + END_EXTERN_C() #endif /* ZEND_INTERFACES_H */ |