Searched refs:class_name (Results 1 - 25 of 52) 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.c31 void spl_register_interface(zend_class_entry ** ppce, char * class_name, const zend_function_entry * functions TSRMLS_DC) 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 TSRMLS_DC) 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 TSRMLS_DC) argument
60 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list);
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 TSRMLS_CC)
248 static int spl_autoload(zend_string *class_name, zend_string *lc_name, const char *ext, int ext_len TSRMLS_DC) /* {{{ */ 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() TSRMLS_CC, "S|S", &class_name, &file_exts) == FAILURE) {
326 lc_name = STR_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
409 zval *class_name, *retval = NULL; local
423 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 TSRMLS_CC); local
[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 TSRMLS_CC);
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 TSRMLS_CC);
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 TSRMLS_CC);
37 #define REGISTER_SPL_INTERFACE(class_name) \
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h59 phpdbg_breakbase(class_name);
71 const char *class_name; member in struct:_phpdbg_breakopline_t
114 PHPDBG_API void phpdbg_set_breakpoint_method(const char* class_name, const char* func_name TSRMLS_DC);
H A Dphpdbg_bp.c72 efree((char*)bp->class_name);
85 if (bp->class_name) {
86 efree((char*)bp->class_name);
152 ((phpdbg_breakmethod_t*)brake)->class_name,
159 ((phpdbg_breakopline_t*)brake)->class_name,
174 ((phpdbg_breakopline_t*)brake)->class_name,
297 PHPDBG_API void phpdbg_set_breakpoint_method(const char *class_name, const char *func_name TSRMLS_DC) /* {{{ */ argument
300 size_t class_len = strlen(class_name);
304 if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_name,
309 class_name, class_le
1372 char *class_name = NULL; local
1451 char *class_name = NULL, *method_name = NULL; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_closures.c93 zend_string *class_name = zval_get_string(scope_arg); local
94 if ((class_name->len == sizeof("static") - 1) &&
95 (memcmp("static", class_name->val, sizeof("static") - 1) == 0)) {
97 } else if ((ce = zend_lookup_class_ex(class_name, NULL, 1 TSRMLS_CC)) == NULL) {
98 zend_error(E_WARNING, "Class '%s' not found", class_name->val);
99 STR_RELEASE(class_name);
102 STR_RELEASE(class_name);
H A Dzend_list.c114 const char *class_name; local
119 class_name = get_active_class_name(&space TSRMLS_CC);
120 zend_error(E_WARNING, "%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name(TSRMLS_C), resource_type_name);
125 class_name = get_active_class_name(&space TSRMLS_CC);
126 zend_error(E_WARNING, "%s%s%s(): supplied argument is not a valid %s resource", class_name, space, get_active_function_name(TSRMLS_C), resource_type_name);
134 class_name = get_active_class_name(&space TSRMLS_CC);
135 zend_error(E_WARNING, "%s%s%s(): %d is not a valid %s resource", class_name, space, get_active_function_name(TSRMLS_C), default_id, resource_type_name);
156 class_name = get_active_class_name(&space TSRMLS_CC);
157 zend_error(E_WARNING, "%s%s%s(): supplied resource is not a valid %s resource", class_name, space, get_active_function_name(TSRMLS_C), 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 = STR_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_builtin_functions.c146 ZEND_ARG_INFO(0, class_name)
151 ZEND_ARG_INFO(0, class_name)
889 zend_string *class_name; local
896 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zS|b", &obj, &class_name, &allow_string) == FAILURE) {
902 Z_PARAM_STR(class_name)
925 ce = zend_lookup_class_ex(class_name, NULL, 0 TSRMLS_CC);
940 /* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string=true])
949 /* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string=false])
1006 /* {{{ proto array get_class_vars(string class_name)
1010 zend_string *class_name; local
1038 const char *prop_name, *class_name; local
1270 zend_string *class_name; local
1441 zend_string *class_name; local
2163 zend_string *class_name = NULL; local
2351 zend_string *class_name; local
[all...]
H A Dzend_compile.c707 void zend_do_fetch_static_member(znode *result, znode *class_name TSRMLS_DC) /* {{{ */
715 if (class_name->op_type == IS_CONST &&
716 ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type(Z_STRVAL(class_name->u.constant), Z_STRSIZE(class_name->u.constant))) {
717 zend_resolve_class_name(class_name TSRMLS_CC);
718 class_node = *class_name;
720 zend_do_fetch_class(&class_node, class_name TSRMLS_CC);
1895 cur_arg_info->class_name = NULL;
1931 cur_arg_info->class_name = estrndup(Z_STRVAL(class_type->u.constant), Z_STRSIZE(class_type->u.constant));
1935 cur_arg_info->class_name
2180 zend_do_resolve_class_name(znode *result, znode *class_name, int is_static TSRMLS_DC) argument
2484 zend_do_begin_class_member_function_call(znode *class_name, znode *method_name TSRMLS_DC) argument
3338 zend_do_begin_catch(znode *catch_token, znode *class_name, znode *catch_var, znode *first_catch TSRMLS_DC) argument
3763 const char *class_name; local
4648 zend_string* class_name = cur_precedence->exclude_from_classes[j].class_name; local
5012 zend_prepare_reference(znode *result, znode *class_name, znode *method_name TSRMLS_DC) argument
5494 zend_do_begin_class_declaration(const znode *class_token, znode *class_name, const znode *parent_class_name TSRMLS_DC) argument
5764 zend_unmangle_property_name_ex(const char *mangled_property, int len, const char **class_name, const char **prop_name, int *prop_len) argument
7447 zend_get_class_fetch_type(const char *class_name, uint class_name_len) argument
[all...]
H A Dzend_compile.h226 const char *class_name; // TODO: convert into zend_string ??? member in struct:_zend_arg_info
437 void zend_resolve_class_name(znode *class_name TSRMLS_DC);
504 void zend_do_fetch_class(znode *result, znode *class_name TSRMLS_DC);
506 int zend_do_begin_class_member_function_call(znode *class_name, znode *method_name TSRMLS_DC);
532 void zend_prepare_reference(znode *result, znode *class_name, znode *method_name TSRMLS_DC);
560 void zend_do_begin_class_declaration(const znode *class_token, znode *class_name, const znode *parent_class_name TSRMLS_DC);
642 void zend_do_resolve_class_name(znode *result, znode *class_name, int is_static TSRMLS_DC);
675 #define zend_unmangle_property_name(mangled_property, mangled_property_len, class_name, prop_name) \
676 zend_unmangle_property_name_ex(mangled_property, mangled_property_len, class_name, prop_name, NULL)
677 ZEND_API int zend_unmangle_property_name_ex(const char *mangled_property, int mangled_property_len, const char **class_name, cons
[all...]
H A Dzend_constants.c331 zend_string *class_name; local
351 class_name = STR_INIT(name, class_name_len, 0);
386 ce = zend_fetch_class(class_name, flags TSRMLS_CC);
393 zend_error(E_ERROR, "Undefined class constant '%s::%s'", class_name->val, constant_name->val);
399 STR_RELEASE(class_name);
H A Dzend_execute.h51 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, zend_uint_t fetch_type, char **class_name, zend_class_entry **pce TSRMLS_DC);
285 ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type TSRMLS_DC);
286 ZEND_API zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, const zval *key, int fetch_type TSRMLS_DC);
H A Dzend_execute_API.c1442 zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type TSRMLS_DC) /* {{{ */
1471 fetch_type = zend_get_class_fetch_type(class_name->val, class_name->len);
1479 if ((ce = zend_lookup_class_ex(class_name, NULL, use_autoload TSRMLS_CC)) == NULL) {
1483 zend_error(E_ERROR, "Interface '%s' not found", class_name->val);
1485 zend_error(E_ERROR, "Trait '%s' not found", class_name->val);
1487 zend_error(E_ERROR, "Class '%s' not found", class_name->val);
1497 zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, const zval *key, int fetch_type TSRMLS_DC) /* {{{ */
1502 if ((ce = zend_lookup_class_ex(class_name, key, use_autoload TSRMLS_CC)) == NULL) {
1506 zend_error(E_ERROR, "Interface '%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 TSRMLS_CC);\
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 TSRMLS_CC, 1, zend_ce_ ## interface_name)
H A Dzend.c158 const char *prop_name, *class_name; local
160 int mangled = zend_unmangle_property_name_ex(string_key->val, string_key->len, &class_name, &prop_name, &prop_len);
163 if (class_name && mangled == SUCCESS) {
164 if (class_name[0]=='*') {
168 ZEND_PUTS_EX(class_name);
335 zend_string *class_name = NULL; local
338 class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr), 0 TSRMLS_CC);
340 if (class_name) {
341 zend_printf("%s Object (", class_name->val);
345 if (class_name) {
396 zend_string *class_name = NULL; local
[all...]
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c527 zend_string *class_name; local
533 class_name = STR_ALLOC(class_name_len, 0);
534 zend_str_tolower_copy(class_name->val, text, class_name_len);
535 if ((ce = zend_lookup_class(class_name TSRMLS_CC)) == NULL) {
536 STR_RELEASE(class_name);
567 STR_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 TSRMLS_CC, error_type, INCOMPLETE_CLASS_MSG, class_name->val);
45 STR_RELEASE(class_name);
H A Dphp_incomplete_class.h33 class_name = php_lookup_class_name(struc); \
34 if (!class_name) { \
35 class_name = STR_INIT(INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1, 0); \
39 class_name = zend_get_object_classname(Z_OBJ_P(struc) TSRMLS_CC); \
43 STR_RELEASE(class_name)
46 zend_string *class_name; \
H A Dvar.c72 const char *prop_name, *class_name; local
77 int unmangle = zend_unmangle_property_name(key->val, key->len, &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
167 class_name = Z_OBJ_HANDLER_P(struc, get_class_name)(Z_OBJ_P(struc), 0 TSRMLS_CC);
168 php_printf("%sobject(%s)#%d (%d) {\n", COMMON, class_name->val, Z_OBJ_HANDLE_P(struc), myht ? zend_obj_num_elements(myht) : 0);
169 STR_RELEASE(class_name);
245 const char *prop_name, *class_name; local
271 zend_string *class_name; local
433 const char *class_name; /* ignored, but must be passed to unmangle */ local
460 zend_string *class_name; local
[all...]
H A Dvar_unserializer.c622 zend_string *class_name; local
664 class_name = STR_INIT(str, len, 0);
669 ce = zend_lookup_class(class_name TSRMLS_CC);
673 STR_RELEASE(class_name);
681 STR_RELEASE(class_name);
695 ZVAL_STR(&args[0], STR_COPY(class_name));
700 STR_RELEASE(class_name);
715 STR_RELEASE(class_name);
722 if ((ce = zend_lookup_class(class_name TSRMLS_CC)) == NULL) {
741 php_store_class_name(rval, class_name
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c205 if (op_array->arg_info[i].class_name) {
206 //??? ADD_INTERNED_STRING(op_array->arg_info[i].class_name, op_array->arg_info[i].class_name_len + 1);
301 if (ce->trait_aliases[i]->trait_method->class_name) {
302 ADD_INTERNED_STRING(ce->trait_aliases[i]->trait_method->class_name, 0);
321 ADD_INTERNED_STRING(ce->trait_precedences[i]->trait_method->class_name, 0);
327 while (ce->trait_precedences[i]->exclude_from_classes[j].class_name) {
328 ADD_INTERNED_STRING(ce->trait_precedences[i]->exclude_from_classes[j].class_name, 0);
H A Dzend_persist.c410 if (op_array->arg_info[i].class_name) {
411 //??? zend_accel_store_interned_string(op_array->arg_info[i].class_name, op_array->arg_info[i].class_name_len + 1);
412 zend_accel_store(op_array->arg_info[i].class_name, op_array->arg_info[i].class_name_len + 1);
558 if (ce->trait_aliases[i]->trait_method->class_name) {
559 zend_accel_store_interned_string(ce->trait_aliases[i]->trait_method->class_name);
582 zend_accel_store_interned_string(ce->trait_precedences[i]->trait_method->class_name);
590 while (ce->trait_precedences[i]->exclude_from_classes[j].class_name) {
591 zend_accel_store_interned_string(ce->trait_precedences[i]->exclude_from_classes[j].class_name);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c385 zval *class_name = &op_array->literals[(info[i].u.num < i) ? map[info[i].u.num] : info[i].u.num]; local
386 key_len = Z_STRSIZE_P(class_name) + sizeof("::") + Z_STRSIZE(op_array->literals[i]);
388 memcpy(key->val, Z_STRVAL_P(class_name), Z_STRSIZE_P(class_name));
389 memcpy(key->val + Z_STRSIZE_P(class_name), "::", sizeof("::") - 1);
390 memcpy(key->val + Z_STRSIZE_P(class_name) + sizeof("::") - 1,

Completed in 38 milliseconds

123