From: Marcus Boerger Date: Sun, 12 Sep 2004 12:43:05 +0000 (+0000) Subject: - Readd check for nested data (but correct this time) X-Git-Tag: PRE_NEW_VM_GEN_PATCH~319 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8564352f59210dad0eaaefb5305e07cb06f6c9af;p=php - Readd check for nested data (but correct this time) --- diff --git a/ext/standard/var_unserializer.re b/ext/standard/var_unserializer.re index d70f957a7e..1f556ade54 100644 --- a/ext/standard/var_unserializer.re +++ b/ext/standard/var_unserializer.re @@ -217,6 +217,11 @@ static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, int zval_dtor(key); FREE_ZVAL(key); + + if (elements && *(*p-1) != ';' && *(*p-1) != '}') { + (*p)--; + return 0; + } } return 1;