From: Tyson Andre Date: Thu, 28 Nov 2019 14:14:06 +0000 (-0500) Subject: Remove no-op check for 'use strict;' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67adcc5132883164ea988d016ce6ba1d10f82563;p=php Remove no-op check for 'use strict;' This should be checking for ZEND_SYMBOL_CLASS, not T_CLASS. This was first added in 37ac1b96ed1 --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index fbbb5163f4..7e6b32e340 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -6830,11 +6830,6 @@ void zend_compile_use(zend_ast *ast) /* {{{ */ new_name = zend_string_copy(old_name); if (!current_ns) { - if (type == T_CLASS && zend_string_equals_literal(new_name, "strict")) { - zend_error_noreturn(E_COMPILE_ERROR, - "You seem to be trying to use a different language..."); - } - zend_error(E_WARNING, "The use statement with non-compound name '%s' " "has no effect", ZSTR_VAL(new_name)); }