summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 10:25:21 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 10:25:21 +0100
commit3bb0e31416994b0a36b784c8278b1c5f33999b1d (patch)
tree994c27d37b4580457fad429590f012b009e364ac /include
parent9df186180f25313d2182ef7a0bb807875888892c (diff)
finalized implementation of serialize/unserialize methods
Diffstat (limited to 'include')
-rw-r--r--include/classbase.h4
-rw-r--r--include/serializable.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/classbase.h b/include/classbase.h
index cc69a91..b4312dd 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -442,8 +442,8 @@ private:
* @param data Structure describing the serialize/unserialize data
* @return int
*/
- static int serialize(struct _zval_struct *object, unsigned char **buffer, zend_uint *buf_len, struct _zend_serialize_data *data);
- static int unserialize(struct _zval_struct **object, struct _zend_class_entry *entry, const unsigned char *buffer, zend_uint buf_len, struct _zend_unserialize_data *data);
+ static int serialize(struct _zval_struct *object, unsigned char **buffer, unsigned int *buf_len, struct _zend_serialize_data *data);
+ static int unserialize(struct _zval_struct **object, struct _zend_class_entry *entry, const unsigned char *buffer, unsigned int buf_len, struct _zend_unserialize_data *data);
/**
* Name of the class
diff --git a/include/serializable.h b/include/serializable.h
index 67934a9..ce60d91 100644
--- a/include/serializable.h
+++ b/include/serializable.h
@@ -25,9 +25,9 @@ public:
* This method should return a string representation of the object that
* can be passed to the serialize() method and that will revive the object
*
- * @return Php::Value
+ * @return std::string
*/
- virtual Php::Value serialize() = 0;
+ virtual std::string serialize() = 0;
/**
* Unserialize the object