cvs: php4 /ext/session session.c
| From: | Sascha Schumann | Date: | Fri, 03 Aug 2001 08:51:53 +0000 |
| Subject: | cvs: php4 /ext/session session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6504@lists.php.net to get a copy of this message | ||
sas Fri Aug 3 04:51:53 2001 EDT
Modified files:
/php4/ext/session session.c
Log:
Add some casts
Index: php4/ext/session/session.c
diff -u php4/ext/session/session.c:1.225 php4/ext/session/session.c:1.226
--- php4/ext/session/session.c:1.225 Fri Aug 3 03:25:26 2001
+++ php4/ext/session/session.c Fri Aug 3 04:51:53 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.225 2001/08/03 07:25:26 sas Exp $ */
+/* $Id: session.c,v 1.226 2001/08/03 08:51:53 sas Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -287,13 +287,13 @@
PS_ENCODE_LOOP(
if (key_length > PS_BIN_MAX) continue;
- smart_str_appendc(&buf, key_length);
+ smart_str_appendc(&buf, (unsigned char) key_length);
smart_str_appendl(&buf, key, key_length);
php_var_serialize(&buf, struc, &var_hash);
} else {
if (key_length > PS_BIN_MAX) continue;
- smart_str_appendc(&buf, (key_length & PS_BIN_UNDEF));
+ smart_str_appendc(&buf, (unsigned char) (key_length & PS_BIN_UNDEF));
smart_str_appendl(&buf, key, key_length);
);
@@ -353,7 +353,7 @@
PS_ENCODE_LOOP(
if (key_length + 1 > MAX_STR) continue;
- smart_str_appendl(&buf, key, key_length);
+ smart_str_appendl(&buf, key, (unsigned char) key_length);
smart_str_appendc(&buf, PS_DELIMITER);
php_var_serialize(&buf, struc, &var_hash);