cvs: php-src(PHP_4_3) /ext/standard var_unserializer.re
| From: | Stefan Esser | Date: | Mon, 28 Feb 2005 16:33:23 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/standard var_unserializer.re | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30642@lists.php.net to get a copy of this message | ||
sesser Mon Feb 28 11:33:23 2005 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard var_unserializer.re
Log:
MFH
http://cvs.php.net/diff.php/php-src/ext/standard/var_unserializer.re?r1=1.11.4.14&r2=1.11.4.15&ty=u
Index: php-src/ext/standard/var_unserializer.re
diff -u php-src/ext/standard/var_unserializer.re:1.11.4.14
php-src/ext/standard/var_unserializer.re:1.11.4.15
--- php-src/ext/standard/var_unserializer.re:1.11.4.14 Tue Feb 15 03:08:55 2005
+++ php-src/ext/standard/var_unserializer.re Mon Feb 28 11:33:23 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: var_unserializer.re,v 1.11.4.14 2005/02/15 08:08:55 helly Exp $ */
+/* $Id: var_unserializer.re,v 1.11.4.15 2005/02/28 16:33:23 sesser Exp $ */
#include "php.h"
#include "ext/standard/php_var.h"
@@ -463,6 +463,10 @@
*p = YYCURSOR;
+ if (elements < 0) {
+ return 0;
+ }
+
INIT_PZVAL(*rval);
Z_TYPE_PP(rval) = IS_ARRAY;
ALLOC_HASHTABLE(Z_ARRVAL_PP(rval));