From 1b565f1393f82e0ce0c94806cc7f52c6d9c5e87d Mon Sep 17 00:00:00 2001 From: Rowan Collins Date: Sat, 4 Mar 2017 22:47:19 +0000 Subject: 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] --- Zend/zend_execute_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_execute_API.c') 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; -- cgit v1.2.1