Lines Matching refs:ce

72 	zend_class_entry *ce = Z_OBJCE_P(object);  in zend_std_call_getter()  local
82 zend_call_method_with_1_params(&object, ce, &ce->__get, ZEND_GET_FUNC_NAME, &retval, member); in zend_std_call_getter()
98 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_call_setter() local
109 …zend_call_method_with_2_params(&object, ce, &ce->__set, ZEND_SET_FUNC_NAME, &retval, member, value… in zend_std_call_setter()
126 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_call_unsetter() local
134 zend_call_method_with_1_params(&object, ce, &ce->__unset, ZEND_UNSET_FUNC_NAME, NULL, member); in zend_std_call_unsetter()
143 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_call_issetter() local
153 zend_call_method_with_1_params(&object, ce, &ce->__isset, ZEND_ISSET_FUNC_NAME, &retval, member); in zend_std_call_issetter()
161 static int zend_verify_property_access(zend_property_info *property_info, zend_class_entry *ce TSRM… in zend_verify_property_access()
167 return zend_check_protected(property_info->ce, EG(scope)); in zend_verify_property_access()
169 if ((ce==EG(scope) || property_info->ce == EG(scope)) && EG(scope)) { in zend_verify_property_access()
194 ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce, zval *member, int… in zend_get_property_info() argument
212 …if (zend_hash_quick_find(&ce->properties_info, Z_STRVAL_P(member), Z_STRLEN_P(member)+1, h, (void … in zend_get_property_info()
217 if (zend_verify_property_access(property_info, ce TSRMLS_CC)) { in zend_get_property_info()
226 …zend_error(E_STRICT, "Accessing static property %s::$%s as non static", ce->name, Z_STRVAL_P(membe… in zend_get_property_info()
236 if (EG(scope) != ce in zend_get_property_info()
237 && is_derived_class(ce, EG(scope)) in zend_get_property_info()
248 …access %s property %s::$%s", zend_visibility_string(property_info->flags), ce->name, Z_STRVAL_P(me… in zend_get_property_info()
257 EG(std_property_info).ce = ce; in zend_get_property_info()
272 property_info = zend_get_property_info(zobj->ce, &member, 1 TSRMLS_CC); in zend_check_property_access()
285 return zend_verify_property_access(property_info, zobj->ce TSRMLS_CC) ? SUCCESS : FAILURE; in zend_check_property_access()
350 property_info = zend_get_property_info(zobj->ce, member, (zobj->ce->__get != NULL) TSRMLS_CC); in zend_std_read_property()
355 if (zobj->ce->__get && in zend_std_read_property()
381 …Indirect modification of overloaded property %s::$%s has no effect", zobj->ce->name, Z_STRVAL_P(me… in zend_std_read_property()
393 if (zobj->ce->__get && guard && guard->in_get == 1) { in zend_std_read_property()
403 zend_error(E_NOTICE,"Undefined property: %s::$%s", zobj->ce->name, Z_STRVAL_P(member)); in zend_std_read_property()
435 property_info = zend_get_property_info(zobj->ce, member, (zobj->ce->__set != NULL) TSRMLS_CC); in zend_std_write_property()
469 if (zobj->ce->__set && in zend_std_write_property()
491 } else if (zobj->ce->__set && guard && guard->in_set == 1) { in zend_std_write_property()
510 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_read_dimension() local
513 if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) { in zend_std_read_dimension()
520 zend_call_method_with_1_params(&object, ce, NULL, "offsetget", &retval, offset); in zend_std_read_dimension()
526 zend_error(E_ERROR, "Undefined offset for object of type %s used as array", ce->name); in zend_std_read_dimension()
536 zend_error(E_ERROR, "Cannot use object of type %s as array", ce->name); in zend_std_read_dimension()
544 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_write_dimension() local
546 if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) { in zend_std_write_dimension()
552 zend_call_method_with_2_params(&object, ce, NULL, "offsetset", NULL, offset, value); in zend_std_write_dimension()
555 zend_error(E_ERROR, "Cannot use object of type %s as array", ce->name); in zend_std_write_dimension()
562 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_has_dimension() local
566 if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) { in zend_std_has_dimension()
568 zend_call_method_with_1_params(&object, ce, NULL, "offsetexists", &retval, offset); in zend_std_has_dimension()
573 zend_call_method_with_1_params(&object, ce, NULL, "offsetget", &retval, offset); in zend_std_has_dimension()
584 zend_error(E_ERROR, "Cannot use object of type %s as array", ce->name); in zend_std_has_dimension()
611 property_info = zend_get_property_info(zobj->ce, member, (zobj->ce->__get != NULL) TSRMLS_CC); in zend_std_get_property_ptr_ptr()
617 if (!zobj->ce->__get || in zend_std_get_property_ptr_ptr()
655 property_info = zend_get_property_info(zobj->ce, member, (zobj->ce->__unset != NULL) TSRMLS_CC); in zend_std_unset_property()
660 if (zobj->ce->__unset && in zend_std_unset_property()
672 } else if (zobj->ce->__unset && guard && guard->in_unset == 1) { in zend_std_unset_property()
691 zend_class_entry *ce = Z_OBJCE_P(object); in zend_std_unset_dimension() local
693 if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) { in zend_std_unset_dimension()
695 zend_call_method_with_1_params(&object, ce, NULL, "offsetunset", NULL, offset); in zend_std_unset_dimension()
698 zend_error(E_ERROR, "Cannot use object of type %s as array", ce->name); in zend_std_unset_dimension()
708 zend_class_entry *ce = Z_OBJCE_P(this_ptr); in zend_std_call_user_call() local
729 …zend_call_method_with_2_params(&this_ptr, ce, &ce->__call, ZEND_CALL_FUNC_NAME, &method_result_ptr… in zend_std_call_user_call()
752 static inline zend_function *zend_check_private_int(zend_function *fbc, zend_class_entry *ce, char … in zend_check_private_int() argument
754 if (!ce) { in zend_check_private_int()
764 if (fbc->common.scope == ce && EG(scope) == ce) { in zend_check_private_int()
771 ce = ce->parent; in zend_check_private_int()
772 while (ce) { in zend_check_private_int()
773 if (ce == EG(scope)) { in zend_check_private_int()
774 …if (zend_hash_find(&ce->function_table, function_name_strval, function_name_strlen+1, (void **) &f… in zend_check_private_int()
781 ce = ce->parent; in zend_check_private_int()
787 ZEND_API int zend_check_private(zend_function *fbc, zend_class_entry *ce, char *function_name_strva… in zend_check_private() argument
789 …return zend_check_private_int(fbc, ce, function_name_strval, function_name_strlen TSRMLS_CC) != NU… in zend_check_private()
795 ZEND_API int zend_check_protected(zend_class_entry *ce, zend_class_entry *scope) /* {{{ */ in zend_check_protected() argument
797 zend_class_entry *fbc_scope = ce; in zend_check_protected()
813 if (scope==ce) { in zend_check_protected()
828 static inline union _zend_function *zend_get_user_call_function(zend_class_entry *ce, const char *m… in zend_get_user_call_function() argument
832 call_user_call->module = ce->module; in zend_get_user_call_function()
836 call_user_call->scope = ce; in zend_get_user_call_function()
859 …if (zend_hash_find(&zobj->ce->function_table, lc_method_name, method_len+1, (void **)&fbc) == FAIL… in zend_std_get_method()
861 if (zobj->ce->__call) { in zend_std_get_method()
862 return zend_get_user_call_function(zobj->ce, method_name, method_len); in zend_std_get_method()
879 if (zobj->ce->__call) { in zend_std_get_method()
880 fbc = zend_get_user_call_function(zobj->ce, method_name, method_len); in zend_std_get_method()
905 if (zobj->ce->__call) { in zend_std_get_method()
906 fbc = zend_get_user_call_function(zobj->ce, method_name, method_len); in zend_std_get_method()
924 zend_class_entry *ce = EG(scope); in zend_std_callstatic_user_call() local
944 …zend_call_method_with_2_params(NULL, ce, &ce->__callstatic, ZEND_CALLSTATIC_FUNC_NAME, &method_res… in zend_std_callstatic_user_call()
963 static inline union _zend_function *zend_get_user_callstatic_function(zend_class_entry *ce, const c… in zend_get_user_callstatic_function() argument
967 callstatic_user_call->module = ce->module; in zend_get_user_callstatic_function()
971 callstatic_user_call->scope = ce; in zend_get_user_callstatic_function()
983 ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, char *function_name_strval… in zend_std_get_static_method() argument
990 if (function_name_strlen == ce->name_length && ce->constructor) { in zend_std_get_static_method()
991 lc_class_name = zend_str_tolower_dup(ce->name, ce->name_length); in zend_std_get_static_method()
995 …if (!memcmp(lc_class_name, lc_function_name, function_name_strlen) && memcmp(ce->constructor->comm… in zend_std_get_static_method()
996 fbc = ce->constructor; in zend_std_get_static_method()
1000 …if (!fbc && zend_hash_find(&ce->function_table, lc_function_name, function_name_strlen+1, (void **… in zend_std_get_static_method()
1003 if (ce->__call && in zend_std_get_static_method()
1006 instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) { in zend_std_get_static_method()
1007 return zend_get_user_call_function(ce, function_name_strval, function_name_strlen); in zend_std_get_static_method()
1008 } else if (ce->__callstatic) { in zend_std_get_static_method()
1009 return zend_get_user_callstatic_function(ce, function_name_strval, function_name_strlen); in zend_std_get_static_method()
1034 if (ce->__callstatic) { in zend_std_get_static_method()
1035 return zend_get_user_callstatic_function(ce, function_name_strval, function_name_strlen); in zend_std_get_static_method()
1043 if (ce->__callstatic) { in zend_std_get_static_method()
1044 return zend_get_user_callstatic_function(ce, function_name_strval, function_name_strlen); in zend_std_get_static_method()
1054 ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, char *property_name, int propert… in zend_std_get_static_property() argument
1057 zend_class_entry *tmp_ce = ce; in zend_std_get_static_property()
1061 …if (zend_hash_find(&ce->properties_info, property_name, property_name_len+1, (void **) &property_i… in zend_std_get_static_property()
1066 std_property_info.ce = ce; in zend_std_get_static_property()
1071 …zend_printf("Access type for %s::%s is %s\n", ce->name, property_name, zend_visibility_string(prop… in zend_std_get_static_property()
1074 if (!zend_verify_property_access(property_info, ce TSRMLS_CC)) { in zend_std_get_static_property()
1076 …access %s property %s::$%s", zend_visibility_string(property_info->flags), ce->name, property_name… in zend_std_get_static_property()
1089 zend_error(E_ERROR, "Access to undeclared static property: %s::$%s", ce->name, property_name); in zend_std_get_static_property()
1097 ZEND_API zend_bool zend_std_unset_static_property(zend_class_entry *ce, char *property_name, int pr… in zend_std_unset_static_property() argument
1099 zend_error(E_ERROR, "Attempt to unset static property %s::$%s", ce->name, property_name); in zend_std_unset_static_property()
1107 zend_function *constructor = zobj->ce->constructor; in zend_std_get_constructor()
1150 if (zobj1->ce != zobj2->ce) { in zend_std_compare_objects()
1180 property_info = zend_get_property_info(zobj->ce, member, 1 TSRMLS_CC); in zend_std_has_property()
1187 zobj->ce->__isset && in zend_std_has_property()
1203 if (!EG(exception) && zobj->ce->__get && !guard->in_get) { in zend_std_has_property()
1248 return zobj->ce; in zend_std_object_get_class()
1255 zend_class_entry *ce; in zend_std_object_get_class_name() local
1259 if (!zobj->ce->parent) { in zend_std_object_get_class_name()
1262 ce = zobj->ce->parent; in zend_std_object_get_class_name()
1264 ce = zobj->ce; in zend_std_object_get_class_name()
1267 *class_name_len = ce->name_length; in zend_std_object_get_class_name()
1268 *class_name = estrndup(ce->name, ce->name_length); in zend_std_object_get_class_name()
1276 zend_class_entry *ce; in zend_std_cast_object_tostring() local
1280 ce = Z_OBJCE_P(readobj); in zend_std_cast_object_tostring()
1281 if (ce->__tostring && in zend_std_cast_object_tostring()
1282 …(zend_call_method_with_0_params(&readobj, ce, &ce->__tostring, "__tostring", &retval) || EG(except… in zend_std_cast_object_tostring()
1288 zend_error(E_ERROR, "Method %s::__toString() must not throw an exception", ce->name); in zend_std_cast_object_tostring()
1308 … zend_error(E_RECOVERABLE_ERROR, "Method %s::__toString() must return a string value", ce->name); in zend_std_cast_object_tostring()
1318 ce = Z_OBJCE_P(readobj); in zend_std_cast_object_tostring()
1319 zend_error(E_NOTICE, "Object of class %s could not be converted to int", ce->name); in zend_std_cast_object_tostring()
1327 ce = Z_OBJCE_P(readobj); in zend_std_cast_object_tostring()
1328 zend_error(E_NOTICE, "Object of class %s could not be converted to double", ce->name); in zend_std_cast_object_tostring()
1346 zend_class_entry *ce; in zend_std_get_closure() local
1351 ce = Z_OBJCE_P(obj); in zend_std_get_closure()
1353 …if (zend_hash_find(&ce->function_table, ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME), (voi… in zend_std_get_closure()
1357 *ce_ptr = ce; in zend_std_get_closure()