Re: cvs: Zend / zend_API.c

From: Date: Fri, 01 Mar 2002 17:38:41 +0000
Subject: Re: cvs: Zend / zend_API.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9557@lists.php.net to get a copy of this message
Yuck :) Andi At 05:34 PM 3/1/2002 +0000, Andrei Zmievski wrote:
andrei          Fri Mar  1 12:34:16 2002 EDT
Modified files:
    /Zend       zend_API.c
Log: THIS IS AN UGLY HACK SUGGESTED BY ANDI. Index: Zend/zend_API.c diff -u Zend/zend_API.c:1.108 Zend/zend_API.c:1.109
--- Zend/zend_API.c:1.108       Fri Mar  1 12:24:23 2002
+++ Zend/zend_API.c     Fri Mar  1 12:34:16 2002
@@ -207,7 +207,10 @@
        }
        for (ce = Z_OBJCE_P(obj); ce != NULL; ce = ce->parent) {
-               if (!strncmp(ce->name, expected_ce->name, MIN(ce->name_length, expected_ce->name_length))) {
+               /*
+               * C'est une UGLY HACK.
+               */
+               if (ce->refcount == expected_ce->refcount) {
                        return 1;
                }
        }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.cvs (#9557) next »