CVS update: php4/ext/standard

From: Date: Thu, 01 Jul 1999 05:47:06 +0000
Subject: CVS update: php4/ext/standard
Groups: php.version4 
Request: Send a blank email to php-version4+get-1771@lists.php.net to get a copy of this message
Date: Thursday July 1, 1999 @ 1:47 Author: sas Update of /repository/php4/ext/standard In directory php:/tmp/cvs-serv22929 Modified Files: php3_var.h var.c Log Message: some additional consts Index: php4/ext/standard/php3_var.h diff -u php4/ext/standard/php3_var.h:1.3 php4/ext/standard/php3_var.h:1.4 --- php4/ext/standard/php3_var.h:1.3 Sun Apr 25 08:41:18 1999 +++ php4/ext/standard/php3_var.h Thu Jul 1 01:47:06 1999 @@ -37,6 +37,6 @@ 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 */ Index: php4/ext/standard/var.c diff -u php4/ext/standard/var.c:1.13 php4/ext/standard/var.c:1.14 --- php4/ext/standard/var.c:1.13 Tue Jun 15 13:06:22 1999 +++ php4/ext/standard/var.c Thu Jul 1 01:47:06 1999 @@ -288,9 +288,9 @@ /* }}} */ /* {{{ 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 @@ 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; }

« previous php.version4 (#1771) next »