Lines Matching defs:scope

288 static void _function_string(smart_str *str, zend_function *fptr, zend_class_entry *scope, char* indent);
419 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
433 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
491 && ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) == 0 || mptr->common.scope == ce))
634 if (UNEXPECTED(zval_update_constant_ex(&zv, fptr->common.scope) == FAILURE)) {
721 static void _function_string(smart_str *str, zend_function *fptr, zend_class_entry *scope, char* indent)
736 smart_str_append_printf(str, fptr->common.fn_flags & ZEND_ACC_CLOSURE ? "Closure [ " : (fptr->common.scope ? "Method [ " : "Function [ "));
745 if (scope && fptr->common.scope) {
746 if (fptr->common.scope != scope) {
747 smart_str_append_printf(str, ", inherits %s", ZSTR_VAL(fptr->common.scope->name));
748 } else if (fptr->common.scope->parent) {
750 if ((overwrites = zend_hash_find_ptr(&fptr->common.scope->parent->function_table, lc_name)) != NULL) {
751 if (fptr->common.scope != overwrites->common.scope) {
752 smart_str_append_printf(str, ", overwrites %s", ZSTR_VAL(overwrites->common.scope->name));
758 if (fptr->common.prototype && fptr->common.prototype->common.scope) {
759 smart_str_append_printf(str, ", prototype %s", ZSTR_VAL(fptr->common.prototype->common.scope->name));
779 if (fptr->common.scope) {
1138 intern->ce = fptr->common.scope;
1212 (method->common.scope && method->common.scope->trait_aliases)
1214 ZVAL_STR_COPY(reflection_prop_class(object), method->common.scope->name);
1619 Returns the scope associated to the closure */
1631 if (closure_func && closure_func->common.scope) {
1632 zend_reflection_class_factory(closure_func->common.scope, return_value);
1799 if (UNEXPECTED(zval_update_constant_ex(val, fptr->common.scope) != SUCCESS)) {
2182 } else if (ex->func->op_array.scope) {
2183 reflection_method_factory(ex->func->op_array.scope, ex->func, NULL, return_value);
2274 ce = fptr->common.scope;
2476 if (!param->fptr->common.scope) {
2479 reflection_method_factory(param->fptr->common.scope, _copy_function(param->fptr), Z_ISUNDEF(intern->obj)? NULL : &intern->obj, return_value);
2496 if (param->fptr->common.scope) {
2497 zend_reflection_class_factory(param->fptr->common.scope, return_value);
2517 * - For "self", simply use the function scope. If scope is NULL then
2520 * - For "parent", use the function scope's parent. If scope is NULL then
2532 ce = param->fptr->common.scope;
2539 ce = param->fptr->common.scope;
2761 zval_update_constant_ex(return_value, param->fptr->common.scope);
3012 ZVAL_STR_COPY(reflection_prop_class(object), mptr->common.scope->name);
3047 zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL);
3053 if (!instanceof_function(Z_OBJCE_P(obj), mptr->common.scope)) {
3065 zend_create_fake_closure(return_value, mptr, mptr->common.scope, Z_OBJCE_P(obj), obj);
3089 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name));
3095 "Trying to invoke %s method %s::%s() from scope %s",
3097 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name),
3129 obj_ce = mptr->common.scope;
3134 ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name));
3140 if (!instanceof_function(obj_ce, mptr->common.scope)) {
3179 "Invocation of method %s::%s() failed", ZSTR_VAL(mptr->common.scope->name), ZSTR_VAL(mptr->common.function_name));
3401 RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_CTOR && intern->ce->constructor && intern->ce->constructor->common.scope == mptr->common.scope);
3451 zend_reflection_class_factory(mptr->common.scope, return_value);
3474 reflection_method_factory(mptr->common.prototype->common.scope, mptr->common.prototype, NULL, return_value);