Fixed bug #48770: when call_user_func() fails to call parent from inheriting class

When using call_user_function() with parent::, self:: or static:: prefix we need to check current class scop, or result well be unexpected.