From d47d83511a0f48577b7287998fae6a54d508fd2d Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Fri, 11 Jun 1999 13:40:18 +0000 Subject: [PATCH] E_ERROR -> E_COMPILE_ERROR in the compiler --- Zend/zend_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1