zend_error(E_COMPILE_ERROR,"Cannot make non static method %s::%s() static in class %s",FN_SCOPE_NAME(parent),child->common.function_name,FN_SCOPE_NAME(child));
zend_error(E_COMPILE_ERROR,"Cannot make non static method %s::%s() static in class %s",ZEND_FN_SCOPE_NAME(parent),child->common.function_name,ZEND_FN_SCOPE_NAME(child));
}else{
zend_error(E_COMPILE_ERROR,"Cannot make static method %s::%s() non static in class %s",FN_SCOPE_NAME(parent),child->common.function_name,FN_SCOPE_NAME(child));
zend_error(E_COMPILE_ERROR,"Cannot make static method %s::%s() non static in class %s",ZEND_FN_SCOPE_NAME(parent),child->common.function_name,ZEND_FN_SCOPE_NAME(child));
zend_error(E_COMPILE_ERROR,"Cannot redeclare %s::%s() abstract in class %s",ZEND_FN_SCOPE_NAME(parent),child->common.function_name,ZEND_FN_SCOPE_NAME(child));
zend_error(E_ERROR,"Call to %s method %s::%s() from context '%s'",zend_visibility_string(EX(fbc)->common.fn_flags),ZEND_FN_SCOPE_NAME(EX(fbc)),function_name_strval,EG(scope)?EG(scope)->name:"");
zend_error(E_ERROR,"Call to %s method %s::%s() from context '%s'",zend_visibility_string(EX(fbc)->common.fn_flags),ZEND_FN_SCOPE_NAME(EX(fbc)),function_name_strval,EG(scope)?EG(scope)->name:"");
}
}
}else{
zend_error(E_ERROR,"Call to a member function %s() on a non-object",function_name_strval);
}
if(EX(fbc)->common.fn_flags&FN_STATIC){
if(EX(fbc)->common.fn_flags&ZEND_ACC_STATIC){
EX(object)=NULL;
}else{
if(!PZVAL_IS_REF(EX(object))){
@ -2305,7 +2372,6 @@ int zend_init_method_call_handler(ZEND_OPCODE_HANDLER_ARGS)
zend_error(E_ERROR,"Call to %s method %s::%s() from context '%s'",zend_visibility_string(EX(fbc)->common.fn_flags),ZEND_FN_SCOPE_NAME(EX(fbc)),function_name_strval,EG(scope)?EG(scope)->name:"");
zend_error(E_ERROR,"Call to %s method %s::%s() from context '%s'",zend_visibility_string(EX(fbc)->common.fn_flags),ZEND_FN_SCOPE_NAME(EX(fbc)),function_name_strval,EG(scope)?EG(scope)->name:"");
}
}
if(!is_const){
@ -2344,9 +2427,7 @@ int zend_init_static_method_call_handler(ZEND_OPCODE_HANDLER_ARGS)
FREE_OP(EX(Ts),&EX(opline)->op2,EG(free_op2));
}
EX(fbc)=function;
if(function->common.fn_flags&FN_STATIC){
if(EX(fbc)->common.fn_flags&ZEND_ACC_STATIC){
EX(object)=NULL;
}else{
if((EX(object)=EG(This))){
@ -2916,6 +2997,9 @@ int zend_switch_free_handler(ZEND_OPCODE_HANDLER_ARGS)