Lines Matching refs:E_COMPILE_ERROR

887 …zend_error(E_COMPILE_ERROR, "%s function %s::%s() cannot be declared private", method_type, CG(act…  in zend_do_abstract_method()
897 …zend_error(E_COMPILE_ERROR, "%s function %s::%s() cannot contain body", method_type, CG(active_cla… in zend_do_abstract_method()
901 …zend_error(E_COMPILE_ERROR, "Non-abstract method %s::%s() must contain body", CG(active_class_entr… in zend_do_abstract_method()
961 zend_error(E_COMPILE_ERROR, "Cannot re-assign $this"); in zend_do_assign()
1007 zend_error(E_COMPILE_ERROR, "Cannot re-assign $this"); in zend_do_assign()
1031 zend_error(E_COMPILE_ERROR, "Cannot re-assign $this"); in zend_do_assign_ref()
1039 zend_error(E_COMPILE_ERROR, "Cannot re-assign $this"); in zend_do_assign_ref()
1281 zend_error(E_COMPILE_ERROR, "Can't use method return value in write context"); in zend_check_writable_variable()
1284 zend_error(E_COMPILE_ERROR, "Can't use function return value in write context"); in zend_check_writable_variable()
1357 zend_error(E_COMPILE_ERROR, "Cannot use [] for reading"); in zend_do_end_variable_parse()
1368 zend_error(E_COMPILE_ERROR, "Cannot use [] for reading"); in zend_do_end_variable_parse()
1378 zend_error(E_COMPILE_ERROR, "Cannot use [] for unsetting"); in zend_do_end_variable_parse()
1506 zend_error(E_COMPILE_ERROR, "Multiple access type modifiers are not allowed"); in zend_do_verify_access_types()
1510 zend_error(E_COMPILE_ERROR, "Multiple abstract modifiers are not allowed"); in zend_do_verify_access_types()
1514 zend_error(E_COMPILE_ERROR, "Multiple static modifiers are not allowed"); in zend_do_verify_access_types()
1518 zend_error(E_COMPILE_ERROR, "Multiple final modifiers are not allowed"); in zend_do_verify_access_types()
1521 zend_error(E_COMPILE_ERROR, "Cannot use the final modifier on an abstract class member"); in zend_do_verify_access_types()
1541 …zend_error(E_COMPILE_ERROR, "Access type for interface method %s::%s() must be omitted", CG(active… in zend_do_begin_function_declaration()
1582 zend_error(E_COMPILE_ERROR, "Cannot redeclare %s::%s()", CG(active_class_entry)->name, name); in zend_do_begin_function_declaration()
1815 …ementation(CG(active_class_entry), (zend_function*)CG(active_op_array), E_COMPILE_ERROR TSRMLS_CC); in zend_do_end_function_declaration()
1823 zend_error(E_COMPILE_ERROR, "%s() must take exactly 1 argument", ZEND_AUTOLOAD_FUNC_NAME); in zend_do_end_function_declaration()
1848 zend_error(E_COMPILE_ERROR, "Cannot use 'namespace' as a class name"); in zend_do_receive_arg()
1853 …zend_error(E_COMPILE_ERROR, "Cannot re-assign auto-global variable %s", Z_STRVAL(varname->u.consta… in zend_do_receive_arg()
1864 zend_error(E_COMPILE_ERROR, "Cannot re-assign $this"); in zend_do_receive_arg()
1901 …zend_error(E_COMPILE_ERROR, "Default value for parameters with array type hint can only be an arra… in zend_do_receive_arg()
1910 …zend_error(E_COMPILE_ERROR, "Default value for parameters with callable type hint can only be NULL… in zend_do_receive_arg()
1925 …zend_error(E_COMPILE_ERROR, "Default value for parameters with a class type hint can only be NULL"… in zend_do_receive_arg()
1986 zend_error(E_COMPILE_ERROR, "Cannot call __clone() method on objects - use 'clone $obj' instead"); in zend_do_begin_method_call()
1994 zend_error(E_COMPILE_ERROR, "Method name must be a string"); in zend_do_begin_method_call()
2141 zend_error(E_COMPILE_ERROR, "Cannot access self::class when no class scope is active"); in zend_do_resolve_class_name()
2157 zend_error(E_COMPILE_ERROR, in zend_do_resolve_class_name()
2163 zend_error(E_COMPILE_ERROR, in zend_do_resolve_class_name()
2203 … zend_error(E_COMPILE_ERROR, "'\\%s' is an invalid class name", Z_STRVAL(class_name->u.constant)); in zend_resolve_class_name()
2267 zend_error(E_COMPILE_ERROR, "Cannot use 'namespace' as a class name"); in zend_do_fetch_class()
2320 zend_error(E_COMPILE_ERROR, "Label '%s' already defined", Z_STRVAL(label->u.constant)); in zend_do_label()
2346 zend_error(E_COMPILE_ERROR, "'goto' to undefined label '%s'", Z_STRVAL_P(label)); in zend_resolve_goto_label()
2367 zend_error(E_COMPILE_ERROR, "'goto' into loop or switch statement is disallowed"); in zend_resolve_goto_label()
2454 zend_error(E_COMPILE_ERROR, "Method name must be a string"); in zend_do_begin_class_member_function_call()
2563 zend_error(E_COMPILE_ERROR, in zend_do_pass_param()
2568 zend_error(E_COMPILE_ERROR, "Call-time pass-by-reference has been removed"); in zend_do_pass_param()
2609 zend_error(E_COMPILE_ERROR, "Only variables can be passed by reference"); in zend_do_pass_param()
2758 zend_error(E_COMPILE_ERROR, "The \"yield\" expression can only be used inside a function"); in zend_do_yield()
2898 zend_error(E_COMPILE_ERROR, "Bad class name in the catch statement"); in zend_do_begin_catch()
2947 zend_error(E_COMPILE_ERROR, "Cannot use try without catch or finally"); in zend_do_end_finally()
3415 …zend_error(E_COMPILE_ERROR, "Can't inherit abstract function %s::%s() (previously declared abstrac… in do_inheritance_check_on_method()
3422 …zend_error(E_COMPILE_ERROR, "Cannot override final method %s::%s()", ZEND_FN_SCOPE_NAME(parent), c… in do_inheritance_check_on_method()
3430 …zend_error(E_COMPILE_ERROR, "Cannot make non static method %s::%s() static in class %s", ZEND_FN_S… in do_inheritance_check_on_method()
3432 …zend_error(E_COMPILE_ERROR, "Cannot make static method %s::%s() non static in class %s", ZEND_FN_S… in do_inheritance_check_on_method()
3438 …zend_error(E_COMPILE_ERROR, "Cannot make non abstract method %s::%s() abstract in class %s", ZEND_… in do_inheritance_check_on_method()
3447 …zend_error(E_COMPILE_ERROR, "Access level to %s::%s() must be %s (as in class %s)%s", ZEND_FN_SCOP… in do_inheritance_check_on_method()
3466 …zend_error(E_COMPILE_ERROR, "Declaration of %s::%s() must be compatible with %s", ZEND_FN_SCOPE_NA… in do_inheritance_check_on_method()
3520 zend_error(E_COMPILE_ERROR, "Cannot redeclare %s%s::$%s as %s%s::$%s", in do_inherit_property_access_check()
3531 …zend_error(E_COMPILE_ERROR, "Access level to %s::$%s must be %s (as in class %s)%s", ce->name, has… in do_inherit_property_access_check()
3616 …zend_error(E_COMPILE_ERROR, "Interface %s may not inherit from class (%s)", ce->name, parent_ce->n… in zend_do_inheritance()
3619 …zend_error(E_COMPILE_ERROR, "Class %s may not inherit from final class (%s)", ce->name, parent_ce-… in zend_do_inheritance()
3741 …zend_error(E_COMPILE_ERROR, "Cannot inherit previously-inherited or override constant %s from inte… in do_inherit_constant_check()
3773 …zend_error(E_COMPILE_ERROR, "Class %s cannot implement previously implemented interface %s", ce->n… in zend_do_implement_interface()
3846 …zend_error(E_COMPILE_ERROR, "%s has colliding constructor definitions coming from traits", ce->nam… in zend_add_magic_methods()
3871 …zend_error(E_COMPILE_ERROR, "%s has colliding constructor definitions coming from traits", ce->nam… in zend_add_magic_methods()
3895 zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", in zend_add_trait_method()
3902 zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", in zend_add_trait_method()
3919 zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", in zend_add_trait_method()
3926 zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", in zend_add_trait_method()
3934 …zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because there are collisions wi… in zend_add_trait_method()
3937 …zend_error(E_COMPILE_ERROR, "Trait method %s::%s has not been applied as %s::%s, because of collis… in zend_add_trait_method()
4062 …zend_error(E_COMPILE_ERROR, "Class %s is not a trait, Only traits may be used in 'as' and 'instead… in zend_check_trait_usage()
4070 zend_error(E_COMPILE_ERROR, "Required Trait %s wasn't added to %s", trait->name, ce->name); in zend_check_trait_usage()
4094 zend_error(E_COMPILE_ERROR, "Could not find trait %s", cur_method_ref->class_name); in zend_traits_init_trait_structures()
4106 zend_error(E_COMPILE_ERROR, in zend_traits_init_trait_structures()
4124 zend_error(E_COMPILE_ERROR, "Could not find trait %s", class_name); in zend_traits_init_trait_structures()
4131 zend_error(E_COMPILE_ERROR, in zend_traits_init_trait_structures()
4155 zend_error(E_COMPILE_ERROR, "Could not find trait %s", cur_method_ref->class_name); in zend_traits_init_trait_structures()
4167 …zend_error(E_COMPILE_ERROR, "An alias was defined for %s::%s but this method does not exist", cur_… in zend_traits_init_trait_structures()
4193 …zend_error(E_COMPILE_ERROR, "Failed to evaluate a trait precedence (%s). Method of trait %s was de… in zend_traits_compile_exclude_table()
4333 zend_error(E_COMPILE_ERROR, in zend_do_traits_property_binding()
4382 zend_error(E_COMPILE_ERROR, in zend_do_check_for_inconsistent_traits_aliasing()
4401 zend_error(E_COMPILE_ERROR, in zend_do_check_for_inconsistent_traits_aliasing()
4406 zend_error(E_COMPILE_ERROR, in zend_do_check_for_inconsistent_traits_aliasing()
4463 int error_level = compile_time ? E_COMPILE_ERROR : E_ERROR; in do_bind_function()
4515 zend_error(E_COMPILE_ERROR, "Cannot use 'static' as method modifier"); in zend_add_trait_alias()
4518 zend_error(E_COMPILE_ERROR, "Cannot use 'abstract' as method modifier"); in zend_add_trait_alias()
4521 zend_error(E_COMPILE_ERROR, "Cannot use 'final' as method modifier"); in zend_add_trait_alias()
4563 …zend_error(E_COMPILE_ERROR, "Internal Zend error - Missing class information for %s", Z_STRVAL_P(o… in do_bind_class()
4577 zend_error(E_COMPILE_ERROR, "Cannot redeclare class %s", ce->name); in do_bind_class()
4612 zend_error(E_COMPILE_ERROR, "Cannot redeclare class %s", Z_STRVAL_P(op2)); in do_bind_inherited_class()
4620 …zend_error(E_COMPILE_ERROR, "Class %s cannot extend from interface %s", ce->name, parent_ce->name); in do_bind_inherited_class()
4622 zend_error(E_COMPILE_ERROR, "Class %s cannot extend from trait %s", ce->name, parent_ce->name); in do_bind_inherited_class()
4631 zend_error(E_COMPILE_ERROR, "Cannot redeclare class %s", ce->name); in do_bind_inherited_class()
4700 zend_error(E_COMPILE_ERROR, "Invalid binding type"); in zend_do_early_binding()
4831 …zend_error(E_COMPILE_ERROR, "'%s' operator with non-constant operand is no longer supported", op =… in zend_do_brk_cont()
4833 …zend_error(E_COMPILE_ERROR, "'%s' operator accepts only positive numbers", op == ZEND_BRK ? "break… in zend_do_brk_cont()
4992 zend_error(E_COMPILE_ERROR, "Class declarations may not be nested"); in zend_do_begin_class_declaration()
5000 …zend_error(E_COMPILE_ERROR, "Cannot use '%s' as class name as it is reserved", Z_STRVAL(class_name… in zend_do_begin_class_declaration()
5027 …zend_error(E_COMPILE_ERROR, "Cannot declare class %s because the name is already in use", Z_STRVAL… in zend_do_begin_class_declaration()
5045 zend_error(E_COMPILE_ERROR, "Cannot use 'self' as class name as it is reserved"); in zend_do_begin_class_declaration()
5048 zend_error(E_COMPILE_ERROR, "Cannot use 'parent' as class name as it is reserved"); in zend_do_begin_class_declaration()
5051 zend_error(E_COMPILE_ERROR, "Cannot use 'static' as class name as it is reserved"); in zend_do_begin_class_declaration()
5070 …zend_error(E_COMPILE_ERROR, "A trait (%s) cannot extend a class. Traits can only be composed from … in zend_do_begin_class_declaration()
5115 …zend_error(E_COMPILE_ERROR, "Constructor %s::%s() cannot be static", ce->name, ce->constructor->co… in zend_do_end_class_declaration()
5121 …zend_error(E_COMPILE_ERROR, "Destructor %s::%s() cannot be static", ce->name, ce->destructor->comm… in zend_do_end_class_declaration()
5127 …zend_error(E_COMPILE_ERROR, "Clone method %s::%s() cannot be static", ce->name, ce->clone->common.… in zend_do_end_class_declaration()
5176 zend_error(E_COMPILE_ERROR, "Cannot use '%s' as interface on '%s' since it is a Trait", in zend_do_implements_interface()
5185 …zend_error(E_COMPILE_ERROR, "Cannot use '%s' as interface name as it is reserved", Z_STRVAL(interf… in zend_do_implements_interface()
5207 zend_error(E_COMPILE_ERROR, in zend_do_use_trait()
5217 …zend_error(E_COMPILE_ERROR, "Cannot use '%s' as trait name as it is reserved", Z_STRVAL(trait_name… in zend_do_use_trait()
5306 zend_error(E_COMPILE_ERROR, "Interfaces may not include member variables"); in zend_do_declare_property()
5310 zend_error(E_COMPILE_ERROR, "Properties cannot be declared abstract"); in zend_do_declare_property()
5314 …zend_error(E_COMPILE_ERROR, "Cannot declare property %s::$%s final, the final modifier is allowed … in zend_do_declare_property()
5319 …zend_error(E_COMPILE_ERROR, "Cannot redeclare %s::$%s", CG(active_class_entry)->name, var_name->u.… in zend_do_declare_property()
5349 zend_error(E_COMPILE_ERROR, "Arrays are not allowed in class constants"); in zend_do_declare_class_constant()
5353 zend_error(E_COMPILE_ERROR, "Traits cannot have constants"); in zend_do_declare_class_constant()
5369 …zend_error(E_COMPILE_ERROR, "Cannot redefine class constant %s::%s", CG(active_class_entry)->name,… in zend_do_declare_class_constant()
5463 zend_error(E_COMPILE_ERROR, "__HALT_COMPILER() can only be used from the outermost scope"); in zend_do_halt_compiler_register()
6039 zend_error(E_COMPILE_ERROR, "Cannot use $this as lexical variable"); in zend_do_fetch_lexical_variable()
6183 …zend_error(E_COMPILE_ERROR, "Cannot use isset() on the result of a function call (you can use \"nu… in zend_do_isset_or_isempty()
6231 zend_error(E_COMPILE_ERROR, "instanceof expects an object instance, constant given"); in zend_do_instanceof()
6331 zend_error(E_COMPILE_ERROR, "Key element cannot be a reference"); in zend_do_foreach_cont()
6334 zend_error(E_COMPILE_ERROR, "Cannot use list as key element"); in zend_do_foreach_cont()
6353 zend_error(E_COMPILE_ERROR, "Cannot use [] for reading"); in zend_do_foreach_cont()
6367 zend_error(E_COMPILE_ERROR, "Cannot use empty list"); in zend_do_foreach_cont()
6435 zend_error(E_COMPILE_ERROR, "Cannot use constants as encoding"); in zend_do_declare_stmt()
6454 …zend_error(E_COMPILE_ERROR, "Encoding declaration pragma must be the very first statement in the s… in zend_do_declare_stmt()
6951 …zend_error(E_COMPILE_ERROR, "Cannot mix bracketed namespace declarations with unbracketed namespac… in zend_do_begin_namespace()
6957 …zend_error(E_COMPILE_ERROR, "Cannot mix bracketed namespace declarations with unbracketed namespac… in zend_do_begin_namespace()
6959 zend_error(E_COMPILE_ERROR, "Namespace declarations cannot be nested"); in zend_do_begin_namespace()
6972 …zend_error(E_COMPILE_ERROR, "Namespace declaration statement has to be the very first statement in… in zend_do_begin_namespace()
6987 zend_error(E_COMPILE_ERROR, "Cannot use '%s' as namespace name", Z_STRVAL(name->u.constant)); in zend_do_begin_namespace()
7057 …zend_error(E_COMPILE_ERROR, "Cannot use %s as %s because '%s' is a special class name", Z_STRVAL_P… in zend_do_use()
7072 …zend_error(E_COMPILE_ERROR, "Cannot use %s as %s because the name is already in use", Z_STRVAL_P(n… in zend_do_use()
7084 …zend_error(E_COMPILE_ERROR, "Cannot use %s as %s because the name is already in use", Z_STRVAL_P(n… in zend_do_use()
7090 …zend_error(E_COMPILE_ERROR, "Cannot use %s as %s because the name is already in use", Z_STRVAL_P(n… in zend_do_use()
7094 zend_error(E_COMPILE_ERROR, "You seem to be trying to use a different language..."); in zend_do_use()
7108 zend_error(E_COMPILE_ERROR, "Arrays are not allowed as constants"); in zend_do_declare_constant()
7112 zend_error(E_COMPILE_ERROR, "Cannot redeclare constant '%s'", Z_STRVAL(name->u.constant)); in zend_do_declare_constant()
7137 zend_error(E_COMPILE_ERROR, "No code may exist outside of namespace {}"); in zend_verify_namespace()