From: Zeev Suraski Date: Fri, 11 Jun 1999 13:40:18 +0000 (+0000) Subject: E_ERROR -> E_COMPILE_ERROR in the compiler X-Git-Tag: BEFORE_REMOVING_GC_STEP1~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d47d83511a0f48577b7287998fae6a54d508fd2d;p=php E_ERROR -> E_COMPILE_ERROR in the compiler --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 11071a879c..ec43dcdbdc 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -855,7 +855,7 @@ ZEND_API void do_bind_function_or_class(zend_op *opline, HashTable *function_tab zend_hash_index_find(function_table, opline->op1.u.constant.value.lval, (void **) &function); (*function->op_array.refcount)++; if (zend_hash_add(function_table, opline->op2.u.constant.value.str.val, opline->op2.u.constant.value.str.len+1, function, sizeof(zend_function), NULL)==FAILURE) { - zend_error(E_ERROR, "Cannot redeclare %s()", opline->op2.u.constant.value.str.val); + zend_error(E_COMPILE_ERROR, "Cannot redeclare %s()", opline->op2.u.constant.value.str.val); } } break; @@ -865,7 +865,7 @@ ZEND_API void do_bind_function_or_class(zend_op *opline, HashTable *function_tab zend_hash_index_find(class_table, opline->op1.u.constant.value.lval, (void **) &ce); (*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); + zend_error(E_COMPILE_ERROR, "Cannot redeclare class %s", opline->op2.u.constant.value.str.val); } } break;