summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-10-20 02:44:26 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-10-20 02:44:26 +0000
commit3b1e2992643b6d249eb86bdd70340b08e1833e33 (patch)
tree52acd80422d8f699bc108f2558dbeade82d8c8af /Zend/zend_compile.c
parent304238654949375e1b63366a421350236260f8f6 (diff)
downloadphp-git-3b1e2992643b6d249eb86bdd70340b08e1833e33.tar.gz
Make use of abstract methods be E_STRICT rather then E_ERROR
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 86b0013816..3cad82915a 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1080,7 +1080,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
fn_flags = 0;
}
if ((fn_flags & ZEND_ACC_STATIC) && (fn_flags & ZEND_ACC_ABSTRACT) && !(CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE)) {
- zend_error(E_COMPILE_ERROR, "Static function %s%s%s() cannot be abstract", is_method ? CG(active_class_entry)->name : "", is_method ? "::" : "", Z_STRVAL(function_name->u.constant));
+ zend_error(E_STRICT, "Static function %s%s%s() should not be abstract", is_method ? CG(active_class_entry)->name : "", is_method ? "::" : "", Z_STRVAL(function_name->u.constant));
}
function_token->u.op_array = CG(active_op_array);