[PHP4BETA] crash in zend_compile.c:1913

From: Date: Thu, 20 May 1999 08:23:17 +0000
Subject: [PHP4BETA] crash in zend_compile.c:1913
Groups: php.version4 
Request: Send a blank email to php-version4+get-889@lists.php.net to get a copy of this message
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

« previous php.version4 (#889) next »