Searched refs:class_name (Results 1 - 25 of 55) sorted by relevance

123

/PHP_TRUNK/ext/spl/
H A Dspl.php174 * @param class_name name of class to load
177 function spl_autoload(string $class_name, string $file_extensions = NULL) {/**/};
183 * @param class_name name of class to load
185 function spl_autoload_call(string $class_name) {/**/};
870 * @param class_name name of class to instantiate
873 function getFileInfo(string class_name = NULL) {/**/}
880 * @param class_name name of class to instantiate
883 function getPathInfo(string class_name = NULL) {/**/}
972 /** @param class_name name of class used with openFile(). Must be derived
975 function setFileClass(string class_name
[all...]
H A Dspl_functions.h28 #define REGISTER_SPL_STD_CLASS(class_name, obj_ctor) \
29 spl_register_std_class(&spl_ce_ ## class_name, # class_name, obj_ctor, NULL);
31 #define REGISTER_SPL_STD_CLASS_EX(class_name, obj_ctor, funcs) \
32 spl_register_std_class(&spl_ce_ ## class_name, # class_name, obj_ctor, funcs);
34 #define REGISTER_SPL_SUB_CLASS_EX(class_name, parent_class_name, obj_ctor, funcs) \
35 spl_register_sub_class(&spl_ce_ ## class_name, spl_ce_ ## parent_class_name, # class_name, obj_ctor, funcs);
37 #define REGISTER_SPL_INTERFACE(class_name) \
[all...]
H A Dphp_spl.c177 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \
178 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags)
248 static int spl_autoload(zend_string *class_name, zend_string *lc_name, const char *ext, int ext_len) /* {{{ */ argument
306 /* {{{ proto void spl_autoload(string class_name [, string file_extensions])
312 zend_string *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions); local
314 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|S", &class_name, &file_exts) == FAILURE) {
326 lc_name = zend_string_alloc(ZSTR_LEN(class_name), 0);
327 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(class_name), ZSTR_LEN(class_name));
335 if (spl_autoload(class_name, lc_nam
411 zval *class_name, *retval = NULL; local
425 zend_call_method(Z_ISUNDEF(alfi->obj)? NULL : &alfi->obj, alfi->ce, &alfi->func_ptr, ZSTR_VAL(func_name), ZSTR_LEN(func_name), retval, 1, class_name, NULL); local
[all...]
H A Dspl_functions.c31 void spl_register_interface(zend_class_entry ** ppce, char * class_name, const zend_function_entry * functions) argument
35 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), functions);
41 PHPAPI void spl_register_std_class(zend_class_entry ** ppce, char * class_name, void * obj_ctor, const zend_function_entry * function_list) argument
45 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list);
56 PHPAPI void spl_register_sub_class(zend_class_entry ** ppce, zend_class_entry * parent_ce, char * class_name, void *obj_ctor, const zend_function_entry * function_list) argument
60 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list);
/PHP_TRUNK/ext/standard/
H A Dphp_incomplete_class.h32 class_name = php_lookup_class_name(struc); \
33 if (!class_name) { \
34 class_name = zend_string_init(INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1, 0); \
38 class_name = zend_string_copy(Z_OBJCE_P(struc)->name); \
42 zend_string_release(class_name)
45 zend_string *class_name; \
H A Dincomplete_class.c39 zend_string *class_name; local
41 class_name = php_lookup_class_name(object);
43 if (class_name) {
44 php_error_docref(NULL, error_type, INCOMPLETE_CLASS_MSG, ZSTR_VAL(class_name));
45 zend_string_release(class_name);
H A Dvar_unserializer.c235 static inline int unserialize_allowed_class(zend_string *class_name, HashTable *classes) argument
248 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(class_name), use_heap);
249 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(class_name), ZSTR_LEN(class_name));
673 zend_string *class_name; local
715 class_name = zend_string_init(str, len, 0);
718 if(!unserialize_allowed_class(class_name, classes)) {
726 ce = zend_lookup_class(class_name);
730 zend_string_release(class_name);
738 zend_string_release(class_name);
[all...]
H A Dvar.c73 const char *prop_name, *class_name; local
78 int unmangle = zend_unmangle_property_name(key, &class_name, &prop_name);
81 if (class_name && unmangle == SUCCESS) {
82 if (class_name[0] == '*') {
85 php_printf("\"%s\":\"%s\":private", prop_name, class_name);
101 zend_string *class_name; local
167 class_name = Z_OBJ_HANDLER_P(struc, get_class_name)(Z_OBJ_P(struc));
168 php_printf("%sobject(%s)#%d (%d) {\n", COMMON, ZSTR_VAL(class_name), Z_OBJ_HANDLE_P(struc), myht ? zend_obj_num_elements(myht) : 0);
169 zend_string_release(class_name);
243 const char *prop_name, *class_name; local
269 zend_string *class_name; local
431 const char *class_name, *prop_name; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h73 phpdbg_breakbase(class_name);
85 const char *class_name; member in struct:_phpdbg_breakopline_t
130 PHPDBG_API void phpdbg_set_breakpoint_method(const char* class_name, const char* func_name);
H A Dphpdbg_bp.c73 efree((char*)bp->class_name);
88 if (bp->class_name) {
89 efree((char*)bp->class_name);
153 ((phpdbg_breakmethod_t*)brake)->class_name,
160 ((phpdbg_breakopline_t*)brake)->class_name,
175 ((phpdbg_breakopline_t*)brake)->class_name,
409 PHPDBG_API void phpdbg_set_breakpoint_method(const char *class_name, const char *func_name) /* {{{ */ argument
412 size_t class_len = strlen(class_name);
416 if (*class_name == '\\') {
417 class_name
[all...]
H A Dphpdbg_utils.c600 const char *prop_name, *class_name; local
601 int unmangle = zend_unmangle_property_name(key, &class_name, &prop_name);
603 if (class_name && unmangle == SUCCESS) {
605 if (class_name[0] == '*') {
608 phpdbg_xml(" class=\"%s\" protection=\"private\"", class_name);
634 zend_string *class_name, *key; local
684 class_name = Z_OBJ_HANDLER_P(zv, get_class_name)(Z_OBJ_P(zv));
685 phpdbg_xml("<object refstatus=\"%s\" class=\"%.*s\" id=\"%d\" num=\"%d\">", COMMON, ZSTR_LEN(class_name), ZSTR_VAL(class_name), Z_OBJ_HANDLE_P(zv), myht ? zend_hash_num_elements(myht) : 0);
686 zend_string_release(class_name);
[all...]
/PHP_TRUNK/Zend/
H A Dzend_interfaces.h52 #define REGISTER_MAGIC_INTERFACE(class_name, class_name_str) \
55 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \
56 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\
57 zend_ce_ ## class_name->interface_gets_implemented = zend_implement_ ## class_name;\
60 #define REGISTER_MAGIC_IMPLEMENT(class_name, interface_name) \
61 zend_class_implements(zend_ce_ ## class_name, 1, zend_ce_ ## interface_name)
H A Dzend_builtin_functions.c148 ZEND_ARG_INFO(0, class_name)
153 ZEND_ARG_INFO(0, class_name)
974 zend_string *class_name; local
981 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zS|b", &obj, &class_name, &allow_string) == FAILURE) {
987 Z_PARAM_STR(class_name)
1010 if (!only_subclass && EXPECTED(zend_string_equals(instance_ce->name, class_name))) {
1013 ce = zend_lookup_class_ex(class_name, NULL, 0);
1029 /* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string])
1037 /* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string])
1094 /* {{{ proto array get_class_vars(string class_name)
1098 zend_string *class_name; local
1171 const char *prop_name, *class_name; local
1371 zend_string *class_name; local
1538 zend_string *class_name; local
2261 zend_string *class_name = NULL; local
[all...]
H A Dzend_closures.c170 zend_string *class_name = zval_get_string(scope_arg); local
171 if (zend_string_equals_literal(class_name, "static")) {
173 } else if ((ce = zend_lookup_class_ex(class_name, NULL, 1)) == NULL) {
174 zend_error(E_WARNING, "Class '%s' not found", ZSTR_VAL(class_name));
175 zend_string_release(class_name);
178 zend_string_release(class_name);
H A Dzend_constants.c302 zend_string *class_name; local
322 class_name = zend_string_init(name, class_name_len, 0);
359 ce = zend_fetch_class(class_name, flags);
366 zend_throw_error(NULL, "Undefined class constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(constant_name));
367 zend_string_release(class_name);
375 zend_string_release(class_name);
H A Dzend_inheritance.c172 if (ZEND_LOG_XOR(fe_arg_info->class_name, proto_arg_info->class_name)) {
177 if (fe_arg_info->class_name) {
179 const char *class_name; local
183 class_name = ((zend_internal_arg_info*)fe_arg_info)->class_name;
185 fe_class_name = fe_arg_info->class_name;
186 class_name = ZSTR_VAL(fe_arg_info->class_name);
188 if (!strcasecmp(class_name, "paren
351 const char *class_name; local
1297 zend_string* class_name = cur_precedence->exclude_from_classes[j].class_name; local
[all...]
H A Dzend_list.c117 const char *class_name = get_active_class_name(&space); local
118 zend_error(E_WARNING, "%s%s%s(): supplied resource is not a valid %s resource", class_name, space, get_active_function_name(), resource_type_name);
132 const char *class_name = get_active_class_name(&space); local
133 zend_error(E_WARNING, "%s%s%s(): supplied resource is not a valid %s resource", class_name, space, get_active_function_name(), resource_type_name);
141 const char *space, *class_name; local
144 class_name = get_active_class_name(&space);
145 zend_error(E_WARNING, "%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name(), resource_type_name);
151 class_name = get_active_class_name(&space);
152 zend_error(E_WARNING, "%s%s%s(): supplied argument is not a valid %s resource", class_name, space, get_active_function_name(), resource_type_name);
162 const char *space, *class_name; local
[all...]
H A Dzend_execute.c570 ZEND_API char * zend_verify_internal_arg_class_kind(const zend_internal_arg_info *cur_arg_info, char **class_name, zend_class_entry **pce) argument
575 ZSTR_ALLOCA_INIT(key, cur_arg_info->class_name, strlen(cur_arg_info->class_name), use_heap);
579 *class_name = (*pce) ? ZSTR_VAL((*pce)->name) : (char*)cur_arg_info->class_name;
589 return zend_fetch_class(cur_arg_info->class_name, (ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD));
701 char *need_msg, *class_name; local
715 if (cur_arg_info->class_name) {
716 need_msg = zend_verify_internal_arg_class_kind((zend_internal_arg_info*)cur_arg_info, &class_name, &ce);
718 zend_verify_arg_error(zf, arg_num, need_msg, class_name, "instanc
857 const char *class_name = EX(func)->common.scope ? ZSTR_VAL(EX(func)->common.scope->name) : ""; local
918 char *need_msg, *class_name; local
[all...]
H A Dzend_API.c155 const char *class_name = get_active_class_name(&space); local
157 zend_internal_type_error(ZEND_ARG_USES_STRICT_TYPES(), "Wrong parameter count for %s%s%s()", class_name, space, get_active_function_name()); local
202 const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->name) : ""; local
205 class_name, \ local
206 class_name[0] ? "::" : "", \
218 const char *class_name = get_active_class_name(&space); local
225 class_name, space, get_active_function_name(), num, expected_error[expected_type], zend_zval_type_name(arg)); local
232 const char *class_name = get_active_class_name(&space); local
235 class_name, space, get_active_function_name(), num, name, zend_zval_type_name(arg)); local
242 const char *class_name local
246 class_name, space, get_active_function_name(), num, error); local
271 const char *class_name = get_active_class_name(&space); local
274 class_name, space, get_active_function_name(), num, local
282 const char *class_name = get_active_class_name(&space); local
285 class_name, space, get_active_function_name(), num, local
757 const char *class_name = get_active_class_name(&space); local
795 const char *class_name = active_function->common.scope local
875 const char *class_name = active_function->common.scope ? ZSTR_VAL(active_function->common.scope->name) : ""; local
2813 zend_disable_class(char *class_name, size_t class_name_length) argument
2819 zend_str_tolower_copy(ZSTR_VAL(key), class_name, class_name_length); local
[all...]
H A Dzend_API.h110 #define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, class_name, allow_null) \
112 { (const char*)(zend_uintptr_t)(required_num_args), class_name, type, return_reference, allow_null, 0 },
113 #define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(name, type, class_name, allow_null) \
114 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, 0, -1, type, class_name, allow_null)
177 #define INIT_CLASS_ENTRY(class_container, class_name, functions) \
178 INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
180 #define INIT_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions) \
181 INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, NULL, NULL, NULL, NULL, NULL)
183 #define INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
186 cl_name = zend_string_init(class_name, class_name_le
[all...]
H A Dzend.c187 const char *prop_name, *class_name; local
189 int mangled = zend_unmangle_property_name_ex(string_key, &class_name, &prop_name, &prop_len);
192 if (class_name && mangled == SUCCESS) {
193 if (class_name[0]=='*') {
197 ZEND_PUTS_EX(class_name);
295 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); local
296 zend_printf("%s Object (", ZSTR_VAL(class_name));
297 zend_string_release(class_name);
350 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); local
351 ZEND_PUTS_EX(ZSTR_VAL(class_name));
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c226 if (arg_info[i].class_name) {
227 ADD_INTERNED_STRING(arg_info[i].class_name, 1);
330 if (ce->trait_aliases[i]->trait_method->class_name) {
331 ADD_INTERNED_STRING(ce->trait_aliases[i]->trait_method->class_name, 0);
350 ADD_INTERNED_STRING(ce->trait_precedences[i]->trait_method->class_name, 0);
356 while (ce->trait_precedences[i]->exclude_from_classes[j].class_name) {
357 ADD_INTERNED_STRING(ce->trait_precedences[i]->exclude_from_classes[j].class_name, 0);
H A Dzend_file_cache.c437 if (!IS_SERIALIZED(p->class_name)) {
438 SERIALIZE_STR(p->class_name);
570 if (m->class_name) {
571 SERIALIZE_STR(m->class_name);
604 if (m->class_name) {
605 SERIALIZE_STR(m->class_name);
985 if (!IS_UNSERIALIZED(p->class_name)) {
986 UNSERIALIZE_STR(p->class_name);
1106 if (m->class_name) {
1107 UNSERIALIZE_STR(m->class_name);
[all...]
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c518 zend_string *class_name; local
524 class_name = zend_string_alloc(class_name_len, 0);
525 zend_str_tolower_copy(ZSTR_VAL(class_name), text, class_name_len);
526 if ((ce = zend_lookup_class(class_name)) == NULL) {
527 zend_string_release(class_name);
558 zend_string_release(class_name);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c429 zval *class_name = &op_array->literals[(info[i].u.num < i) ? map[info[i].u.num] : info[i].u.num]; local
430 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i]);
432 memcpy(ZSTR_VAL(key), Z_STRVAL_P(class_name), Z_STRLEN_P(class_name));
433 memcpy(ZSTR_VAL(key) + Z_STRLEN_P(class_name), "::", sizeof("::") - 1);
434 memcpy(ZSTR_VAL(key) + Z_STRLEN_P(class_name) + sizeof("::") - 1,

Completed in 35 milliseconds

123