Re: Patch for bug #19566

From: Date: Fri, 15 Nov 2002 13:54:10 +0000
Subject: Re: Patch for bug #19566
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-91090@lists.php.net to get a copy of this message
Wasn't this commited a while ago? Andi At 11:58 AM 11/15/2002 +0100, Marcus Börger wrote:
The following patch for bug #19566 is open but should make it into 4.3. cvs -z3 -q diff zend_hash.c (in directory S:\php4-HEAD\Zend\) Index: zend_hash.c =================================================================== RCS file: /repository/ZendEngine2/zend_hash.c,v retrieving revision 1.93 diff -u -r1.93 zend_hash.c
--- zend_hash.c 5 Nov 2002 18:22:02 -0000       1.93
+++ zend_hash.c 15 Nov 2002 10:49:12 -0000 @@ -722,9 +722,9 @@
        HASH_PROTECT_RECURSION(ht);
-       va_start(args, num_args);
        p = ht->pListHead;
        while (p != NULL) {
+               va_start(args, num_args);
                hash_key.arKey = p->arKey;
                hash_key.nKeyLength = p->nKeyLength;
                hash_key.h = p->h;
@@ -733,8 +733,8 @@
                } else {
                        p = p->pListNext;
                }
+               va_end(args);
        }
-       va_end(args);
        HASH_UNPROTECT_RECURSION(ht);
}


« previous php.dev (#91090) next »