cvs: ZendEngine2 / zend_compile.c

From: Date: Tue, 02 Sep 2003 13:28:34 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1791@lists.php.net to get a copy of this message
helly Tue Sep 2 09:28:34 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fix error level Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.470 ZendEngine2/zend_compile.c:1.471 --- ZendEngine2/zend_compile.c:1.470 Tue Sep 2 09:26:25 2003 +++ ZendEngine2/zend_compile.c Tue Sep 2 09:28:34 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.470 2003/09/02 13:26:25 helly Exp $ */ +/* $Id: zend_compile.c,v 1.471 2003/09/02 13:28:34 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1790,10 +1790,10 @@ { 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_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

« previous php.zend-engine.cvs (#1791) next »