summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorRowan Collins <rowan.collins@gmail.com>2017-03-04 22:47:19 +0000
committerNikita Popov <nikita.ppv@gmail.com>2017-03-23 18:52:43 +0100
commit1b565f1393f82e0ce0c94806cc7f52c6d9c5e87d (patch)
tree3cd9ea6bfa55549207fb4e4075e1b9d723bf1f8d /Zend/zend_execute_API.c
parentb5b7691ab5b708e29d9dbb5d46dde33aaf534b89 (diff)
downloadphp-git-1b565f1393f82e0ce0c94806cc7f52c6d9c5e87d.tar.gz
Change 'undefined constant' from E_NOTICE to E_WARNING and mention deprecation
Implements RFC "Deprecate and Remove Bareword (Unquoted) Strings" [https://wiki.php.net/rfc/deprecate-bareword-strings]
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 07eb7a8ef3..7a36d23e20 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -611,7 +611,7 @@ ZEND_API int zval_update_constant_ex(zval *p, zend_class_entry *scope) /* {{{ */
actual_len -= (actual - Z_STRVAL_P(p));
}
- zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
+ zend_error(E_WARNING, "Use of undefined constant %s - assumed '%s' (this will throw an Error in a future version of PHP)", actual, actual);
if (EG(exception)) {
RESET_CONSTANT_VISITED(p);
return FAILURE;