summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-07-01 05:47:06 +0000
committerSascha Schumann <sas@php.net>1999-07-01 05:47:06 +0000
commit2e690ac4b5faea66899b5da4e6649e8d610af86d (patch)
tree0cbe52b4ea4af3a25943336bbd0527b754bc7b4c
parent2397e5d4195669fa4762be09435ee3ade2cfd3de (diff)
downloadphp-git-2e690ac4b5faea66899b5da4e6649e8d610af86d.tar.gz
some additional consts
-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;
}