Re: [PHP4BETA] crash in zend_compile.c:1913

From: Date: Thu, 20 May 1999 10:15:24 +0000
Subject: Re: [PHP4BETA] crash in zend_compile.c:1913
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-890@lists.php.net to get a copy of this message
OK should be fixed now. Please update libzend. Thanks, Andi At 10:23 20/05/99 +0200, Thies C. Arntzen wrote:
i got a crash the line below: (*ce->refcount)++; where ce is 0x50 (which is not a pointer;-) sorry, cannot give you a short code snippet which does that, but i think there should be a check like:
                if (zend_hash_index_find(class_table, opline->op1.u.constant.value.lval, (void **) &ce) == SUCCESS) {
                    (*ce->refcount)++;
                    if (zend_hash_add(class_table, opline->op2.u.constant.value.str.val, opline->op2.u.constant.value.str.len+1, ce, sizeof(zend_class_entry), NULL)==FAILURE) {
                        zend_error(E_ERROR, "Cannot redeclare class %s", opline->op2.u.constant.value.str.val);
                    }
                } else {
                    zend_error(E_ERROR, "Whatsoever message is right here....");
                } 
regards,
tc
Thies C. Arntzen                 "One Big-Mac, Small Fries and a Coke!"
Digital Collections             Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93                              20097 Hamburg / Germany
-- PHP 4 Beta
--- Andi Gutmans <andi@zend.com> ICQ: 1568297 -- PHP 4 Beta

« previous php.version4 (#890) next »