]> granicus.if.org Git - php/commitdiff
Manual commit without invoking re2c
authorStefan Esser <sesser@php.net>
Fri, 27 Oct 2006 08:35:25 +0000 (08:35 +0000)
committerStefan Esser <sesser@php.net>
Fri, 27 Oct 2006 08:35:25 +0000 (08:35 +0000)
ext/standard/var_unserializer.c

index 40f147a7066e7282dc8e09aaad68c1b36f749baf..cefa52bf3565761820bd56351ac3fd1bbffaa6bc 100644 (file)
@@ -958,6 +958,10 @@ yy83:
        
        if (*rval == *rval_ref) return 0;
 
+       if ((*rval_ref)->refcount > 65500) {
+               return 0;
+       }
+
        if (*rval != NULL) {
        zval_ptr_dtor(rval);
        }
@@ -1002,6 +1006,10 @@ yy89:
                return 0;
        }
 
+       if ((*rval_ref)->refcount > 65500) {
+               return 0;
+       }
+
        if (*rval != NULL) {
        zval_ptr_dtor(rval);
        }