summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/php3_var.h2
-rw-r--r--ext/standard/var.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/php3_var.h b/ext/standard/php3_var.h
index 42cdac3d3e..781992f6df 100644
--- a/ext/standard/php3_var.h
+++ b/ext/standard/php3_var.h
@@ -37,6 +37,6 @@ PHP_FUNCTION(unserialize);
void php3api_var_dump(pval **struc, int level);
void php3api_var_serialize(pval *buf, pval **struc);
-int php3api_var_unserialize(pval **rval, char **p, char *max);
+int php3api_var_unserialize(pval **rval, const char **p, const char *max);
#endif /* _PHPVAR_H */
diff --git a/ext/standard/var.c b/ext/standard/var.c
index 53d4b8b0f0..09d6e837f3 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -288,9 +288,9 @@ void php3api_var_serialize(pval *buf, pval **struc)
/* }}} */
/* {{{ php3api_var_dump */
-int php3api_var_unserialize(pval **rval, char **p, char *max)
+int php3api_var_unserialize(pval **rval, const char **p, const char *max)
{
- char *q;
+ const char *q;
char *str;
int i;
@@ -482,7 +482,7 @@ PHP_FUNCTION(unserialize)
WRONG_PARAM_COUNT;
}
if (buf->type == IS_STRING) {
- char *p = buf->value.str.val;
+ const char *p = buf->value.str.val;
if (!php3api_var_unserialize(&return_value, &p, p + buf->value.str.len)) {
RETURN_FALSE;
}