Searched defs:class_name (Results 1 - 25 of 35) sorted by relevance

12

/PHP_TRUNK/Zend/
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_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 TSRMLS_CC)) == 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.c158 const char *prop_name, *class_name; local
160 int mangled = zend_unmangle_property_name_ex(string_key, &class_name, &prop_name, &prop_len);
163 if (class_name && mangled == SUCCESS) {
164 if (class_name[0]=='*') {
168 ZEND_PUTS_EX(class_name);
266 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr) TSRMLS_CC); local
267 zend_printf("%s Object (", class_name->val);
268 zend_string_release(class_name);
320 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr) TSRMLS_CC); local
321 ZEND_PUTS_EX(class_name
[all...]
H A Dzend.h87 zend_string *class_name; member in struct:_zend_trait_method_reference
94 zend_string *class_name; member in union:_zend_trait_precedence::__anon1
H A Dzend_constants.c331 zend_string *class_name; local
351 class_name = zend_string_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 zend_string_release(class_name);
H A Dzend_language_parser.y241 %type <ast> new_expr class_name class_name_reference simple_variable internal_functions_in_yacc
898 | class_name T_PAAMAYIM_NEKUDOTAYIM member_name argument_list
906 class_name: label
914 class_name { $$ = $1; }
966 | class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING
1033 class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable
1048 | class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable
1159 class_name T_PAAMAYIM_NEKUDOTAYIM T_CLASS
H A Dzend_builtin_functions.c146 ZEND_ARG_INFO(0, class_name)
151 ZEND_ARG_INFO(0, class_name)
872 zend_string *class_name; local
879 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zS|b", &obj, &class_name, &allow_string) == FAILURE) {
885 Z_PARAM_STR(class_name)
908 ce = zend_lookup_class_ex(class_name, NULL, 0 TSRMLS_CC);
923 /* {{{ proto bool is_subclass_of(mixed object_or_string, string class_name [, bool allow_string=true])
931 /* {{{ proto bool is_a(mixed object_or_string, string class_name [, bool allow_string=false])
984 /* {{{ proto array get_class_vars(string class_name)
988 zend_string *class_name; local
1047 const char *prop_name, *class_name; local
1241 zend_string *class_name; local
1411 zend_string *class_name; local
2110 zend_string *class_name = NULL; local
[all...]
H A Dzend_inheritance.c279 if (ZEND_LOG_XOR(fe_arg_info->class_name, proto_arg_info->class_name)) {
284 if (fe_arg_info->class_name) {
287 if (!strcasecmp(fe_arg_info->class_name, "parent") && proto->common.scope) {
289 } else if (!strcasecmp(fe_arg_info->class_name, "self") && fe->common.scope) {
293 fe_arg_info->class_name,
297 if (!strcasecmp(proto_arg_info->class_name, "parent") && proto->common.scope && proto->common.scope->parent) {
299 } else if (!strcasecmp(proto_arg_info->class_name, "self") && proto->common.scope) {
303 proto_arg_info->class_name,
373 if (arg_info->class_name) {
374 const char *class_name; local
1232 zend_string* class_name = cur_precedence->exclude_from_classes[j].class_name; local
[all...]
H A Dzend_object_handlers.c382 const char *class_name = NULL; local
388 zend_unmangle_property_name_ex(prop_info_name, &class_name, &prop_name, &prop_name_len);
397 if (class_name && class_name[0] != '*') {
405 if (class_name && class_name[0] != '*') {
/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c209 ZEND_ARG_INFO(0, class_name)
2080 zend_string *class_name = NULL; local
2082 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|Sz", &res, &class_name, &ctor_params) == FAILURE) {
2089 ce = zend_fetch_class(class_name, ZEND_FETCH_CLASS_AUTO TSRMLS_CC);
2092 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not find class '%s'", class_name->val);
2241 /* {{{ proto object mysql_fetch_object(resource result [, string class_name [, NULL|array ctor_params]])
/PHP_TRUNK/ext/mysqli/
H A Dmysqli.c1246 zend_string *class_name = NULL; local
1248 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|Sz", &mysql_result, mysqli_result_class_entry, &class_name, &ctor_params) == FAILURE) {
1251 if (class_name == NULL) {
1254 ce = zend_fetch_class(class_name, ZEND_FETCH_CLASS_AUTO TSRMLS_CC);
1257 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not find class '%s'", class_name->val);
/PHP_TRUNK/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 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 = 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 TSRMLS_CC); local
[all...]
H A Dspl_iterators.c1497 zend_string *class_name; local
1499 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|S", &zobject, ce_inner, &class_name) == FAILURE) {
1506 if (!(ce_cast = zend_lookup_class(class_name TSRMLS_CC))
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c520 zend_string *class_name; local
526 class_name = zend_string_alloc(class_name_len, 0);
527 zend_str_tolower_copy(class_name->val, text, class_name_len);
528 if ((ce = zend_lookup_class(class_name TSRMLS_CC)) == NULL) {
529 zend_string_release(class_name);
560 zend_string_release(class_name);
/PHP_TRUNK/ext/soap/
H A Dphp_encoding.c1977 const char *class_name; local
1979 zend_unmangle_property_name(str_key, &class_name, &prop_name);
/PHP_TRUNK/ext/standard/
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) TSRMLS_CC);
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 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 zend_string_release(class_name);
H A Dvar_unserializer.c630 zend_string *class_name; local
672 class_name = zend_string_init(str, len, 0);
677 ce = zend_lookup_class(class_name TSRMLS_CC);
681 zend_string_release(class_name);
689 zend_string_release(class_name);
703 ZVAL_STR_COPY(&args[0], class_name);
708 zend_string_release(class_name);
723 zend_string_release(class_name);
730 if ((ce = zend_lookup_class(class_name TSRMLS_CC)) == NULL) {
749 php_store_class_name(rval, class_name
[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/sapi/phpdbg/
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) TSRMLS_CC);
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...]
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 TSRMLS_DC);
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 TSRMLS_DC) /* {{{ */ 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...]
/PHP_TRUNK/ext/pdo/
H A Dpdo_stmt.c55 ZEND_ARG_INFO(0, class_name)
65 ZEND_ARG_INFO(0, class_name)
1295 /* {{{ proto mixed PDOStatement::fetchObject([string class_name [, NULL|array ctor_args]])
1302 zend_string *class_name = NULL; local
1309 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|S!a", &class_name, &ctor_args)) {
1332 if (class_name && !error) {
1333 stmt->fetch.cls.ce = zend_fetch_class(class_name, ZEND_FETCH_CLASS_AUTO TSRMLS_CC);
1382 /* {{{ proto array PDOStatement::fetchAll([int $how = PDO_FETCH_BOTH [, string class_name [, NULL|array ctor_args]]])
/PHP_TRUNK/ext/wddx/
H A Dwddx.c465 php_wddx_add_chunk_ex(packet, class_name->val, class_name->len);
495 php_wddx_add_chunk_ex(packet, class_name->val, class_name->len);
507 const char *class_name, *prop_name; local
511 zend_unmangle_property_name_ex(key, &class_name, &prop_name, &prop_name_len);

Completed in 75 milliseconds

12