summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2015-03-26 01:44:23 +0100
committerKalle Sommer Nielsen <kalle@php.net>2015-03-26 01:44:23 +0100
commit67b907f05901e972649be17c511536e1fca5aa2e (patch)
tree317c076d22d91ae7f0e1e0fdc57973c003115150 /Zend/zend_builtin_functions.c
parent2cd07c377d5753637a7d12dffb24a9ced06bd242 (diff)
downloadphp-git-67b907f05901e972649be17c511536e1fca5aa2e.tar.gz
Change the error message for colliding class/interface/trait names to be a little more clearer.
C:\> php -r "interface stdClass { }" Error: Cannot declare interface stdClass, because the name is already in use in Command Line Code on line 1
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index ecb9078db0..b378f93f09 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1536,7 +1536,7 @@ ZEND_FUNCTION(class_alias)
if (zend_register_class_alias_ex(alias_name, alias_name_len, ce) == SUCCESS) {
RETURN_TRUE;
} else {
- zend_error(E_WARNING, "Cannot redeclare %s %s", zend_get_object_type(ce), alias_name);
+ zend_error(E_WARNING, "Cannot declare %s %s, because the name is already in use", zend_get_object_type(ce), alias_name);
RETURN_FALSE;
}
} else {