Searched refs:class_name (Results 1 - 25 of 53) 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 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(class_name->len, 0);
327 zend_str_tolower_copy(lc_name->val, class_name->val, class_name->len);
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, func_name->val, func_name->len, 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);
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...]
/PHP_TRUNK/Zend/
H A Dzend.c159 const char *prop_name, *class_name; local
161 int mangled = zend_unmangle_property_name_ex(string_key, &class_name, &prop_name, &prop_len);
164 if (class_name && mangled == SUCCESS) {
165 if (class_name[0]=='*') {
169 ZEND_PUTS_EX(class_name);
267 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); local
268 zend_printf("%s Object (", class_name->val);
269 zend_string_release(class_name);
321 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); local
322 ZEND_PUTS_EX(class_name
[all...]
H A Dzend_execute_API.c1272 zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type) /* {{{ */
1301 fetch_type = zend_get_class_fetch_type(class_name);
1309 if ((ce = zend_lookup_class_ex(class_name, NULL, use_autoload)) == NULL) {
1313 zend_error(E_ERROR, "Interface '%s' not found", class_name->val);
1315 zend_error(E_ERROR, "Trait '%s' not found", class_name->val);
1317 zend_error(E_ERROR, "Class '%s' not found", class_name->val);
1327 zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, const zval *key, int fetch_type) /* {{{ */
1332 if ((ce = zend_lookup_class_ex(class_name, key, use_autoload)) == NULL) {
1336 zend_error(E_ERROR, "Interface '%s' not found", class_name->val);
1338 zend_error(E_ERROR, "Trait '%s' not found", class_name
[all...]
H A Dzend_interfaces.c548 #define REGISTER_ITERATOR_INTERFACE(class_name, class_name_str) \
551 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \
552 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\
553 zend_ce_ ## class_name->interface_gets_implemented = zend_implement_ ## class_name;\
556 #define REGISTER_ITERATOR_IMPLEMENT(class_name, interface_name) \
557 zend_class_implements(zend_ce_ ## class_name, 1, zend_ce_ ## interface_name)
H A Dzend_language_parser.y237 %type <ast> new_expr class_name class_name_reference simple_variable internal_functions_in_yacc
894 | class_name T_PAAMAYIM_NEKUDOTAYIM member_name argument_list
902 class_name: label
910 class_name { $$ = $1; }
962 | class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING
1029 class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable
1044 | class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable
1155 class_name T_PAAMAYIM_NEKUDOTAYIM T_CLASS
H A Dzend_list.c114 const char *class_name; local
119 class_name = get_active_class_name(&space);
120 zend_error(E_WARNING, "%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name(), resource_type_name);
125 class_name = get_active_class_name(&space);
126 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);
134 class_name = get_active_class_name(&space);
135 zend_error(E_WARNING, "%s%s%s(): %d is not a valid %s resource", class_name, space, get_active_function_name(), default_id, resource_type_name);
156 class_name = get_active_class_name(&space);
157 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);
H A Dzend_API.h165 #define INIT_CLASS_ENTRY(class_container, class_name, functions) \
166 INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
168 #define INIT_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions) \
169 INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, NULL, NULL, NULL, NULL, NULL)
171 #define INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
174 cl_name = zend_string_init(class_name, class_name_len, 1); \
214 #define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
215 INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, sizeof(class_name)-1, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
217 #define INIT_NS_CLASS_ENTRY(class_container, ns, class_name, function
[all...]
H A Dzend_closures.c148 zend_string *class_name = zval_get_string(scope_arg); local
149 if (zend_string_equals_literal(class_name, "static")) {
151 } else if ((ce = zend_lookup_class_ex(class_name, NULL, 1)) == NULL) {
152 zend_error(E_WARNING, "Class '%s' not found", class_name->val);
153 zend_string_release(class_name);
156 zend_string_release(class_name);
H A Dzend_execute.h50 ZEND_API char * zend_verify_internal_arg_class_kind(const zend_internal_arg_info *cur_arg_info, char **class_name, zend_class_entry **pce);
51 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, char **class_name, zend_class_entry **pce);
231 ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type);
232 ZEND_API zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, const zval *key, int fetch_type);
H A Dzend_inheritance.c284 if (ZEND_LOG_XOR(fe_arg_info->class_name, proto_arg_info->class_name)) {
289 if (fe_arg_info->class_name) {
291 const char *class_name; local
295 class_name = ((zend_internal_arg_info*)fe_arg_info)->class_name;
297 fe_class_name = fe_arg_info->class_name;
298 class_name = fe_arg_info->class_name->val;
300 if (!strcasecmp(class_name, "paren
398 const char *class_name; local
1265 zend_string* class_name = cur_precedence->exclude_from_classes[j].class_name; local
[all...]
H A Dzend_execute.c532 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
537 STR_ALLOCA_INIT(key, cur_arg_info->class_name, strlen(cur_arg_info->class_name), use_heap);
541 *class_name = (*pce) ? (*pce)->name->val : (char*)cur_arg_info->class_name;
549 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, char **class_name, zend_class_entry **pce) argument
551 *pce = zend_fetch_class(cur_arg_info->class_name, (ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD));
553 *class_name = (*pce) ? (*pce)->name->val : cur_arg_info->class_name->val;
626 if (cur_arg_info->class_name) {
627 char *class_name; local
672 char *class_name; local
717 char *class_name; local
741 const char *class_name = EX(func)->common.scope ? EX(func)->common.scope->name->val : ""; local
[all...]
H A Dzend_builtin_functions.c146 ZEND_ARG_INFO(0, class_name)
151 ZEND_ARG_INFO(0, class_name)
942 zend_string *class_name; local
949 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zS|b", &obj, &class_name, &allow_string) == FAILURE) {
955 Z_PARAM_STR(class_name)
978 ce = zend_lookup_class_ex(class_name, NULL, 0);
993 /* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string=true])
1001 /* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string=false])
1054 /* {{{ proto array get_class_vars(string class_name)
1058 zend_string *class_name; local
1122 const char *prop_name, *class_name; local
1317 zend_string *class_name; local
1487 zend_string *class_name; local
2183 zend_string *class_name = NULL; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c404 zval *class_name = &op_array->literals[(info[i].u.num < i) ? map[info[i].u.num] : info[i].u.num]; local
405 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i]);
407 memcpy(key->val, Z_STRVAL_P(class_name), Z_STRLEN_P(class_name));
408 memcpy(key->val + Z_STRLEN_P(class_name), "::", sizeof("::") - 1);
409 memcpy(key->val + Z_STRLEN_P(class_name) + sizeof("::") - 1,
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c519 zend_string *class_name; local
525 class_name = zend_string_alloc(class_name_len, 0);
526 zend_str_tolower_copy(class_name->val, text, class_name_len);
527 if ((ce = zend_lookup_class(class_name)) == NULL) {
528 zend_string_release(class_name);
559 zend_string_release(class_name);
/PHP_TRUNK/ext/standard/
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, class_name->val);
45 zend_string_release(class_name);
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 Dvar.c72 const char *prop_name, *class_name; local
77 int unmangle = zend_unmangle_property_name(key, &class_name, &prop_name);
80 if (class_name && unmangle == SUCCESS) {
81 if (class_name[0] == '*') {
84 php_printf("\"%s\":\"%s\":private", prop_name, class_name);
100 zend_string *class_name; local
166 class_name = Z_OBJ_HANDLER_P(struc, get_class_name)(Z_OBJ_P(struc));
167 php_printf("%sobject(%s)#%d (%d) {\n", COMMON, class_name->val, Z_OBJ_HANDLE_P(struc), myht ? zend_obj_num_elements(myht) : 0);
168 zend_string_release(class_name);
242 const char *prop_name, *class_name; local
268 zend_string *class_name; local
430 const char *class_name, *prop_name; local
[all...]
H A Dvar_unserializer.c235 static inline int unserialize_allowed_class(zend_string *class_name, HashTable *classes) argument
248 STR_ALLOCA_ALLOC(lcname, class_name->len, use_heap);
249 zend_str_tolower_copy(lcname->val, class_name->val, class_name->len);
671 zend_string *class_name; local
713 class_name = zend_string_init(str, len, 0);
716 if(!unserialize_allowed_class(class_name, classes)) {
724 ce = zend_lookup_class(class_name);
728 zend_string_release(class_name);
736 zend_string_release(class_name);
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c71 efree((char*)bp->class_name);
84 if (bp->class_name) {
85 efree((char*)bp->class_name);
147 ((phpdbg_breakmethod_t*)brake)->class_name,
154 ((phpdbg_breakopline_t*)brake)->class_name,
169 ((phpdbg_breakopline_t*)brake)->class_name,
383 PHPDBG_API void phpdbg_set_breakpoint_method(const char *class_name, const char *func_name) /* {{{ */ argument
386 size_t class_len = strlen(class_name);
390 if (!(class_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_name, class_len))) {
392 class_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_name, class_le
[all...]
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_utils.c554 const char *prop_name, *class_name; local
555 int unmangle = zend_unmangle_property_name(key, &class_name, &prop_name);
557 if (class_name && unmangle == SUCCESS) {
559 if (class_name[0] == '*') {
562 phpdbg_xml(" class=\"%s\" protection=\"private\"", class_name);
588 zend_string *class_name, *key; local
638 class_name = Z_OBJ_HANDLER_P(zv, get_class_name)(Z_OBJ_P(zv));
639 phpdbg_xml("<object refstatus=\"%s\" class=\"%.*s\" id=\"%d\" num=\"%d\">", COMMON, class_name->len, class_name->val, Z_OBJ_HANDLE_P(zv), myht ? zend_hash_num_elements(myht) : 0);
640 zend_string_release(class_name);
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c208 if (op_array->arg_info[i].class_name) {
209 ADD_INTERNED_STRING(op_array->arg_info[i].class_name, 1);
296 if (ce->trait_aliases[i]->trait_method->class_name) {
297 ADD_INTERNED_STRING(ce->trait_aliases[i]->trait_method->class_name, 0);
316 ADD_INTERNED_STRING(ce->trait_precedences[i]->trait_method->class_name, 0);
322 while (ce->trait_precedences[i]->exclude_from_classes[j].class_name) {
323 ADD_INTERNED_STRING(ce->trait_precedences[i]->exclude_from_classes[j].class_name, 0);

Completed in 33 milliseconds

123