zend_error(E_COMPILE_ERROR,"Access type for interface method %s::%s() must be omitted",CG(active_class_entry)->name,function_name->u.constant.value.str.val);
}
fn_flags_znode->u.constant.value.lval|=ZEND_ACC_ABSTRACT;/* propagates to the rest of the parser */
Z_LVAL(fn_flags_znode->u.constant)|=ZEND_ACC_ABSTRACT;/* propagates to the rest of the parser */
}
fn_flags=fn_flags_znode->u.constant.value.lval;/* must be done *after* the above check */
fn_flags=Z_LVAL(fn_flags_znode->u.constant);/* must be done *after* the above check */
zend_error(E_COMPILE_ERROR,"Static function %s%s%s() cannot be abstract",is_method?CG(active_class_entry)->name:"",is_method?"::":"",Z_STRVAL(function_name->u.constant));
zend_error(E_COMPILE_ERROR,"Declaration of %s::%s() must be compatible with that of %s::%s()",ZEND_FN_SCOPE_NAME(child),child->common.function_name,ZEND_FN_SCOPE_NAME(child->common.prototype),child->common.prototype->common.function_name);
zend_error_va(E_WARNING,file?Z_STRVAL_P(file):NULL,line?Z_LVAL_P(line):0,"Uncaught %s in exception handling during call to %s::__tostring()",Z_OBJCE_P(EG(exception))->name,ce_exception->name);
zend_error_va(E_WARNING,file?Z_STRVAL_P(file):NULL,line?Z_LVAL_P(line):0,"Uncaught %v in exception handling during call to %v::__tostring()",Z_OBJCE_P(EG(exception))->name,ce_exception->name);
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s, called in %s on line %d and defined",arg_num,fclass,fsep,fname,cur_arg_info->class_name,ptr->op_array->filename,ptr->opline->lineno);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s, called in %s on line %d and defined",arg_num,fclass,fsep,fname,cur_arg_info->class_name,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s",arg_num,fclass,fsep,fname,cur_arg_info->class_name);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s",arg_num,fclass,fsep,fname,cur_arg_info->class_name);
}
return0;
}
switch(Z_TYPE_P(arg)){
caseIS_NULL:
if(!cur_arg_info->allow_null){
if(ptr&&ptr->op_array){
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must not be null, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must not be null, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must not be null",arg_num,fclass,fsep,fname);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must not be null",arg_num,fclass,fsep,fname);
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must %s %s, called in %s on line %d and defined",arg_num,fclass,fsep,fname,error_msg,ce->name,ptr->op_array->filename,ptr->opline->lineno);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must %s %s, called in %s on line %d and defined",arg_num,fclass,fsep,fname,error_msg,ce->name,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must %s %s",arg_num,fclass,fsep,fname,error_msg,ce->name);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must %s %s",arg_num,fclass,fsep,fname,error_msg,ce->name);
}
return0;
}
}
break;
default:
if(ptr&&ptr->op_array){
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s, called in %s on line %d and defined",arg_num,fclass,fsep,fname,cur_arg_info->class_name,ptr->op_array->filename,ptr->opline->lineno);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s, called in %s on line %d and defined",arg_num,fclass,fsep,fname,cur_arg_info->class_name,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s",arg_num,fclass,fsep,fname,cur_arg_info->class_name);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an object of class %s",arg_num,fclass,fsep,fname,cur_arg_info->class_name);
}
break;
return0;
}
}elseif(cur_arg_info->array_type_hint){
if(!arg){
if(ptr&&ptr->op_array){
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an array, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
if(ptr&&ptr->op_array){
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an array, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an array",arg_num,fclass,fsep,fname);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an array",arg_num,fclass,fsep,fname);
}
return0;
}
switch(Z_TYPE_P(arg)){
caseIS_NULL:
if(!cur_arg_info->allow_null){
if(ptr&&ptr->op_array){
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must not be null, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must not be null, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must not be null",arg_num,fclass,fsep,fname);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must not be null",arg_num,fclass,fsep,fname);
}
return0;
}
break;
caseIS_ARRAY:
break;
default:
default:
if(ptr&&ptr->op_array){
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an array, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an array, called in %s on line %d and defined",arg_num,fclass,fsep,fname,ptr->op_array->filename,ptr->opline->lineno);
}else{
zend_error_noreturn(E_ERROR,"Argument %d passed to %s%s%s() must be an array",arg_num,fclass,fsep,fname);
zend_error(E_RECOVERABLE_ERROR,"Argument %d passed to %s%s%s() must be an array",arg_num,fclass,fsep,fname);
zend_error(E_ERROR,"Class %s contains %d abstract method%s and must therefore be declared abstract or implement the remaining methods ("MAX_ABSTRACT_INFO_FMTMAX_ABSTRACT_INFO_FMTMAX_ABSTRACT_INFO_FMT")",
ce->name,ai.cnt,
if(ai.cnt){
zend_error(E_ERROR,"Class %s contains %d abstract method%s and must therefore be declared abstract or implement the remaining methods ("MAX_ABSTRACT_INFO_FMTMAX_ABSTRACT_INFO_FMTMAX_ABSTRACT_INFO_FMT")",
zend_throw_exception_ex(NULL,0TSRMLS_CC,"Objects returned by %s::getIterator() must be traversable or implement interface Iterator",ce?ce->name:Z_OBJCE_P(object)->name);
zend_error(E_ERROR,"Call to %s method %s::%s() from context '%s'",zend_visibility_string(fbc->common.fn_flags),ZEND_FN_SCOPE_NAME(fbc),method_name,EG(scope)?EG(scope)->name:"");
zend_error(E_ERROR,"Call to %s method %s::%s() from context '%s'",zend_visibility_string(fbc->common.fn_flags),ZEND_FN_SCOPE_NAME(fbc),function_name_strval,EG(scope)?EG(scope)->name:"");
zend_error(E_ERROR,"Call to private %s::%s() from context '%s'",constructor->common.scope->name,constructor->common.function_name,EG(scope)?EG(scope)->name:"");