cvs: /php4/ext/standard var.c
| From: | Thies C. Arntzen | Date: | Mon, 18 Oct 1999 17:47:03 +0000 |
| Subject: | cvs: /php4/ext/standard var.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-5551@lists.php.net to get a copy of this message | ||
thies Mon Oct 18 13:47:03 1999 EDT
Modified files:
/php4/ext/standard var.c
Log:
Index: php4/ext/standard/var.c
diff -u php4/ext/standard/var.c:1.30 php4/ext/standard/var.c:1.31
--- php4/ext/standard/var.c:1.30 Mon Oct 18 11:03:29 1999
+++ php4/ext/standard/var.c Mon Oct 18 13:46:33 1999
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: var.c,v 1.30 1999/10/18 15:03:29 thies Exp $ */
+/* $Id: var.c,v 1.31 1999/10/18 17:46:33 thies Exp $ */
/* {{{ includes
@@ -487,11 +487,16 @@
}
if ((*buf)->type == IS_STRING) {
const char *p = (*buf)->value.str.val;
+ const char *q;
+ q = p;
+
if (!php_var_unserialize(&return_value, &p, p + (*buf)->value.str.len)) {
+ php_error(E_NOTICE, "unserialize() failed at offset %d",p-q);
RETURN_FALSE;
}
} else {
+ php_error(E_NOTICE, "argument passed to unserialize() is not an string");
RETURN_FALSE;
}
}