]> granicus.if.org Git - php/commitdiff
- Readd check for nested data (but correct this time)
authorMarcus Boerger <helly@php.net>
Sun, 12 Sep 2004 12:43:05 +0000 (12:43 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 12 Sep 2004 12:43:05 +0000 (12:43 +0000)
ext/standard/var_unserializer.re

index d70f957a7e3380de11ab30815a627af5092a85c1..1f556ade54d141ab92785042100fb3da547cda5f 100644 (file)
@@ -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;