diff options
author | Marcus Boerger <helly@php.net> | 2003-09-02 13:28:34 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-09-02 13:28:34 +0000 |
commit | 469b746b4d4c678a7fc511dd74160a322b16868a (patch) | |
tree | 1a44c26415d4953963d2f1cdfec1a3c52f1d3784 | |
parent | 0f3374615bd5c7b29212ea5889d7286ead2dc38d (diff) | |
download | php-git-469b746b4d4c678a7fc511dd74160a322b16868a.tar.gz |
Fix error level
-rw-r--r-- | Zend/zend_compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 0e16ed9fb6..4a04d8bd17 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1790,10 +1790,10 @@ void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce) { if ((ce->ce_flags & ZEND_ACC_INTERFACE) && !(parent_ce->ce_flags & ZEND_ACC_INTERFACE)) { - zend_error(E_ERROR, "Interface %s may not inherit from class (%s)", ce->name, parent_ce->name); + zend_error(E_CORE_ERROR, "Interface %s may not inherit from class (%s)", ce->name, parent_ce->name); } if (parent_ce->ce_flags & ZEND_ACC_FINAL_CLASS) { - zend_error(E_ERROR, "Class %s may not inherit from final class (%s)", ce->name, parent_ce->name); + zend_error(E_CORE_ERROR, "Class %s may not inherit from final class (%s)", ce->name, parent_ce->name); } ce->parent = parent_ce; @@ -1831,7 +1831,7 @@ ZEND_API int do_bind_function(zend_op *opline, HashTable *function_table, HashTa zend_hash_find(function_table, opline->op1.u.constant.value.str.val, opline->op1.u.constant.value.str.len, (void *) &function); 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) { - int error_level = compile_time ? E_COMPILE_ERROR : E_ERROR; + int error_level = compile_time ? E_COMPILE_ERROR : E_CORE_ERROR; zend_function *function; if (zend_hash_find(function_table, opline->op2.u.constant.value.str.val, opline->op2.u.constant.value.str.len+1, (void *) &function)==SUCCESS |