summaryrefslogtreecommitdiff
path: root/ext/standard/php_var.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/php_var.h')
-rw-r--r--ext/standard/php_var.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/php_var.h b/ext/standard/php_var.h
index fd77d92045..aceeb34e7a 100644
--- a/ext/standard/php_var.h
+++ b/ext/standard/php_var.h
@@ -21,6 +21,8 @@
#ifndef PHP_VAR_H
#define PHP_VAR_H
+#include "ext/standard/php_smart_str_public.h"
+
PHP_FUNCTION(var_dump);
PHP_FUNCTION(serialize);
PHP_FUNCTION(unserialize);
@@ -30,7 +32,7 @@ void php_var_dump(zval **struc, int level);
/* typdef HashTable php_serialize_data_t; */
#define php_serialize_data_t HashTable
-PHPAPI void php_var_serialize(zval *buf, zval **struc, php_serialize_data_t *var_hash);
+PHPAPI void php_var_serialize(smart_str *buf, zval **struc, php_serialize_data_t *var_hash);
PHPAPI int php_var_unserialize(zval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
#define PHP_VAR_SERIALIZE_INIT(var_hash) \