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

123

/PHP_5_5/ext/spl/
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 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...]
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.c182 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \
183 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags TSRMLS_CC)
253 static int spl_autoload(const char *class_name, const char * lc_name, int class_name_len, const char * file_extension TSRMLS_DC) /* {{{ */ argument
314 /* {{{ proto void spl_autoload(string class_name [, string file_extensions])
318 char *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions); local
325 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &class_name, &class_name_len, &file_exts, &file_exts_len) == FAILURE) {
334 lc_name = zend_str_tolower_dup(class_name, class_name_len);
341 if (spl_autoload(class_name, lc_name, class_name_len, pos1 TSRMLS_CC)) {
362 zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, "Class %s could not be loaded", class_name);
364 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s could not be loaded", class_name);
415 zval *class_name, *retval = NULL; local
[all...]
/PHP_5_5/ext/standard/
H A Dincomplete_class.c39 char *class_name; local
42 class_name = php_lookup_class_name(object, NULL);
44 if (!class_name) {
46 class_name = "unknown";
49 php_error_docref(NULL TSRMLS_CC, error_type, INCOMPLETE_CLASS_MSG, class_name);
52 efree(class_name);
H A Dphp_incomplete_class.h33 class_name = php_lookup_class_name(struc, &name_len); \
34 if (!class_name) { \
36 class_name = estrndup(INCOMPLETE_CLASS, name_len); \
41 free_class_name = !zend_get_object_classname(struc, (const char **)&class_name, &name_len TSRMLS_CC);\
45 if (free_class_name) efree(class_name)
48 char *class_name; \
H A Dphp_var.h124 PHPAPI zend_class_entry *php_create_empty_class(char *class_name, int len);
H A Dvar.c59 const char *prop_name, *class_name; local
66 int unmangle = zend_unmangle_property_name(hash_key->arKey, hash_key->nKeyLength - 1, &class_name, &prop_name);
69 if (class_name && unmangle == SUCCESS) {
70 if (class_name[0] == '*') {
73 php_printf("\"%s\":\"%s\":private", prop_name, class_name);
90 const char *class_name; local
137 Z_OBJ_HANDLER(**struc, get_class_name)(*struc, &class_name, &class_name_len, 0 TSRMLS_CC);
138 php_printf("%sobject(%s)#%d (%d) {\n", COMMON, class_name, Z_OBJ_HANDLE_PP(struc), myht ? zend_hash_num_elements(myht) : 0);
139 efree((char*)class_name);
216 const char *prop_name, *class_name; local
245 const char *class_name; local
391 const char *class_name; /* ignored, but must be passed to unmangle */ local
421 const char *class_name; local
[all...]
H A Dvar_unserializer.c622 char *class_name; local
646 class_name = (char*)YYCURSOR;
659 len3 = strspn(class_name, "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377\\");
666 class_name = estrndup(class_name, len);
671 if (zend_lookup_class(class_name, len2, &pce TSRMLS_CC) == SUCCESS) {
674 efree(class_name);
683 efree(class_name);
699 ZVAL_STRING(arg_func_name, class_name, 1);
704 efree(class_name);
[all...]
/PHP_5_5/Zend/
H A Dzend_API.c195 const char *class_name = get_active_class_name(&space TSRMLS_CC); local
197 zend_error(E_WARNING, "Wrong parameter count for %s%s%s()", class_name, space, get_active_function_name(TSRMLS_C));
247 ZEND_API int zend_get_object_classname(const zval *object, const char **class_name, zend_uint *class_name_len TSRMLS_DC) /* {{{ */ argument
250 Z_OBJ_HT_P(object)->get_class_name(object, class_name, class_name_len, 0 TSRMLS_CC) != SUCCESS) {
253 *class_name = ce->name;
695 const char *class_name = get_active_class_name(&space TSRMLS_CC); local
699 class_name, space, get_active_function_name(TSRMLS_C), arg_num, error);
703 class_name, space, get_active_function_name(TSRMLS_C), arg_num, expected_type,
771 const char *class_name = active_function->common.scope ? active_function->common.scope->name : ""; local
773 class_name,
791 const char *class_name = active_function->common.scope ? active_function->common.scope->name : ""; local
814 const char *class_name = active_function->common.scope ? active_function->common.scope->name : ""; local
2659 zend_disable_class(char *class_name, uint class_name_length TSRMLS_DC) argument
3708 const char *class_name; local
3913 const char *class_name; local
[all...]
H A Dzend_API.h163 #define INIT_CLASS_ENTRY(class_container, class_name, functions) \
164 INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
166 #define INIT_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions) \
167 INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, NULL, NULL, NULL, NULL, NULL)
169 #define INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, class_name_len, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
171 const char *cl_name = class_name; \
215 #define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
216 INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, sizeof(class_name)-1, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
218 #define INIT_NS_CLASS_ENTRY(class_container, ns, class_name, function
[all...]
H A Dzend_constants.c321 char *class_name; local
338 class_name = estrndup(name, class_name_len);
339 lcname = zend_str_tolower_dup(class_name, class_name_len);
377 ce = zend_fetch_class(class_name, class_name_len, flags TSRMLS_CC);
383 zend_error(E_ERROR, "Undefined class constant '%s::%s'", class_name, constant_name);
389 efree(class_name);
H A Dzend_execute.c566 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, ulong fetch_type, const char **class_name, zend_class_entry **pce TSRMLS_DC) argument
568 *pce = zend_fetch_class(cur_arg_info->class_name, cur_arg_info->class_name_len, (fetch_type | ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD) TSRMLS_CC);
570 *class_name = (*pce) ? (*pce)->name: cur_arg_info->class_name;
614 if (cur_arg_info->class_name) {
615 const char *class_name; local
618 need_msg = zend_verify_arg_class_kind(cur_arg_info, fetch_type, &class_name, &ce TSRMLS_CC);
619 return zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "none", "" TSRMLS_CC);
622 need_msg = zend_verify_arg_class_kind(cur_arg_info, fetch_type, &class_name, &ce TSRMLS_CC);
624 return zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "instanc
[all...]
H A Dzend_execute.h71 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, ulong fetch_type, const char **class_name, zend_class_entry **pce TSRMLS_DC);
351 ZEND_API zend_class_entry *zend_fetch_class(const char *class_name, uint class_name_len, int fetch_type TSRMLS_DC);
352 ZEND_API zend_class_entry *zend_fetch_class_by_name(const char *class_name, uint class_name_len, const zend_literal *key, int fetch_type TSRMLS_DC);
H A Dzend_interfaces.c540 #define REGISTER_ITERATOR_INTERFACE(class_name, class_name_str) \
543 INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \
544 zend_ce_ ## class_name = zend_register_internal_interface(&ce TSRMLS_CC);\
545 zend_ce_ ## class_name->interface_gets_implemented = zend_implement_ ## class_name;\
548 #define REGISTER_ITERATOR_IMPLEMENT(class_name, interface_name) \
549 zend_class_implements(zend_ce_ ## class_name TSRMLS_CC, 1, zend_ce_ ## interface_name)
H A Dzend_language_scanner.l1594 const char *class_name = NULL;
1606 class_name = CG(active_class_entry)->name;
1609 if (!class_name) {
1610 class_name = "";
1613 zendlval->value.str.len = strlen(class_name);
1614 zendlval->value.str.val = estrndup(class_name, zendlval->value.str.len);
1657 const char *class_name = CG(active_class_entry) ? CG(active_class_entry)->name : NULL;
1661 if (class_name) {
1662 len += strlen(class_name) + 2;
1669 class_name
[all...]
H A Dzend_list.c117 const char *class_name; local
122 class_name = get_active_class_name(&space TSRMLS_CC);
123 zend_error(E_WARNING, "%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name(TSRMLS_C), resource_type_name);
128 class_name = get_active_class_name(&space TSRMLS_CC);
129 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);
141 class_name = get_active_class_name(&space TSRMLS_CC);
142 zend_error(E_WARNING, "%s%s%s(): %d is not a valid %s resource", class_name, space, get_active_function_name(TSRMLS_C), id, resource_type_name);
160 class_name = get_active_class_name(&space TSRMLS_CC);
161 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_builtin_functions.c145 ZEND_ARG_INFO(0, class_name)
150 ZEND_ARG_INFO(0, class_name)
842 char *class_name; local
849 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zs|b", &obj, &class_name, &class_name_len, &allow_string) == FAILURE) {
871 if (zend_lookup_class_ex(class_name, class_name_len, NULL, 0, &ce TSRMLS_CC) == FAILURE) {
885 /* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string=true])
894 /* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string=false])
956 /* {{{ proto array get_class_vars(string class_name)
960 char *class_name; local
964 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &class_name,
989 const char *prop_name, *class_name; local
1221 char *class_name, *lc_name; local
1391 char *class_name, *lc_name, *alias_name; local
2066 const char *class_name = NULL; local
2234 const char *class_name; local
[all...]
H A Dzend_closures.c103 char *class_name; local
109 class_name = Z_STRVAL_P(scope_arg);
115 class_name = Z_STRVAL(tmp_zval);
120 (memcmp("static", class_name, sizeof("static") - 1) == 0)) {
123 else if (zend_lookup_class_ex(class_name, class_name_len, NULL, 1, &ce_p TSRMLS_CC) == FAILURE) {
124 zend_error(E_WARNING, "Class '%s' not found", class_name);
H A Dzend.c156 const char *prop_name, *class_name; local
158 int mangled = zend_unmangle_property_name_ex(string_key, str_len - 1, &class_name, &prop_name, &prop_len);
161 if (class_name && mangled == SUCCESS) {
162 if (class_name[0]=='*') {
166 ZEND_PUTS_EX(class_name);
356 const char *class_name = NULL; local
360 Z_OBJ_HANDLER_P(expr, get_class_name)(expr, &class_name, &clen, 0 TSRMLS_CC);
362 if (class_name) {
363 zend_printf("%s Object (", class_name);
367 if (class_name) {
414 const char *class_name = NULL; local
[all...]
H A Dzend_compile.h234 const char *class_name; member in struct:_zend_arg_info
441 void zend_resolve_class_name(znode *class_name, ulong fetch_type, int check_ns_name TSRMLS_DC);
508 void zend_do_fetch_class(znode *result, znode *class_name TSRMLS_DC);
510 int zend_do_begin_class_member_function_call(znode *class_name, znode *method_name TSRMLS_DC);
536 void zend_prepare_reference(znode *result, znode *class_name, znode *method_name TSRMLS_DC);
563 void zend_do_begin_class_declaration(const znode *class_token, znode *class_name, const znode *parent_class_name TSRMLS_DC);
641 void zend_do_resolve_class_name(znode *result, znode *class_name, int is_static TSRMLS_DC);
678 #define zend_unmangle_property_name(mangled_property, mangled_property_len, class_name, prop_name) \
679 zend_unmangle_property_name_ex(mangled_property, mangled_property_len, class_name, prop_name, NULL)
680 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_execute_API.c1533 zend_class_entry *zend_fetch_class(const char *class_name, uint class_name_len, int fetch_type TSRMLS_DC) /* {{{ */
1562 fetch_type = zend_get_class_fetch_type(class_name, class_name_len);
1570 if (zend_lookup_class_ex(class_name, class_name_len, NULL, use_autoload, &pce TSRMLS_CC) == FAILURE) {
1574 zend_error(E_ERROR, "Interface '%s' not found", class_name);
1576 zend_error(E_ERROR, "Trait '%s' not found", class_name);
1578 zend_error(E_ERROR, "Class '%s' not found", class_name);
1588 zend_class_entry *zend_fetch_class_by_name(const char *class_name, uint class_name_len, const zend_literal *key, int fetch_type TSRMLS_DC) /* {{{ */
1593 if (zend_lookup_class_ex(class_name, class_name_len, key, use_autoload, &pce TSRMLS_CC) == FAILURE) {
1597 zend_error(E_ERROR, "Interface '%s' not found", class_name);
1599 zend_error(E_ERROR, "Trait '%s' not found", class_name);
[all...]
H A Dzend_compile.c716 void zend_do_fetch_static_member(znode *result, znode *class_name TSRMLS_DC) /* {{{ */
724 if (class_name->op_type == IS_CONST &&
725 ZEND_FETCH_CLASS_DEFAULT == zend_get_class_fetch_type(Z_STRVAL(class_name->u.constant), Z_STRLEN(class_name->u.constant))) {
726 zend_resolve_class_name(class_name, ZEND_FETCH_CLASS_GLOBAL, 1 TSRMLS_CC);
727 class_node = *class_name;
729 zend_do_fetch_class(&class_node, class_name TSRMLS_CC);
1888 cur_arg_info->class_name = NULL;
1919 cur_arg_info->class_name = class_type->u.constant.value.str.val;
2130 void zend_do_resolve_class_name(znode *result, znode *class_name, in argument
2177 zend_resolve_class_name(znode *class_name, ulong fetch_type, int check_ns_name TSRMLS_DC) argument
2439 zend_do_begin_class_member_function_call(znode *class_name, znode *method_name TSRMLS_DC) argument
2881 zend_do_begin_catch(znode *catch_token, znode *class_name, znode *catch_var, znode *first_catch TSRMLS_DC) argument
3267 const char *class_name; local
4109 char* class_name = (char*)cur_precedence->exclude_from_classes[j]; local
4458 zend_prepare_reference(znode *result, znode *class_name, znode *method_name TSRMLS_DC) argument
4955 zend_do_begin_class_declaration(const znode *class_token, znode *class_name, const znode *parent_class_name TSRMLS_DC) argument
5231 zend_unmangle_property_name_ex(const char *mangled_property, int len, const char **class_name, const char **prop_name, int *prop_len) argument
6861 zend_get_class_fetch_type(const char *class_name, uint class_name_len) argument
[all...]
/PHP_5_5/ext/opcache/
H A Dzend_persist_calc.c187 if (op_array->arg_info[i].class_name) {
188 ADD_INTERNED_STRING(op_array->arg_info[i].class_name, op_array->arg_info[i].class_name_len + 1);
286 if (ce->trait_aliases[i]->trait_method->class_name) {
/PHP_5_5/ext/readline/
H A Dreadline_cli.c524 char *lc_text, *class_name, *class_name_end; local
531 class_name = zend_str_tolower_dup(text, class_name_len);
532 class_name[class_name_len] = '\0'; /* not done automatically */
533 if (zend_lookup_class(class_name, class_name_len, &pce TSRMLS_CC)==FAILURE) {
534 efree(class_name);
565 efree(class_name);

Completed in 46 milliseconds

123