Home
last modified time | relevance | path

Searched refs:class_name (Results 1 – 25 of 73) sorted by relevance

123

/php-src/ext/standard/
H A Dphp_incomplete_class.h29 class_name = php_lookup_class_name(Z_OBJ_P(struc)); \
30 if (!class_name) { \
31 class_name = zend_string_init(INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1, 0); \
35 class_name = zend_string_copy(Z_OBJCE_P(struc)->name); \
39 zend_string_release_ex(class_name, 0)
42 zend_string *class_name; \
H A Dincomplete_class.c33 zend_string *class_name = php_lookup_class_name(object); in incomplete_class_message() local
35 "access a property", class_name ? ZSTR_VAL(class_name) : "unknown"); in incomplete_class_message()
36 if (class_name) { in incomplete_class_message()
37 zend_string_release_ex(class_name, 0); in incomplete_class_message()
43 zend_string *class_name = php_lookup_class_name(object); in throw_incomplete_class_error() local
45 what, class_name ? ZSTR_VAL(class_name) : "unknown"); in throw_incomplete_class_error()
46 if (class_name) { in throw_incomplete_class_error()
47 zend_string_release_ex(class_name, 0); in throw_incomplete_class_error()
H A Dvar.c57 const char *prop_name, *class_name; in php_object_property_dump() local
65 if (class_name && unmangle == SUCCESS) { in php_object_property_dump()
66 if (class_name[0] == '*') { in php_object_property_dump()
106 zend_string *class_name; in php_var_dump() local
183 zend_string_release_ex(class_name, 0); in php_var_dump()
265 const char *prop_name, *class_name; in zval_object_property_dump() local
273 if (class_name) { in zval_object_property_dump()
274 if (class_name[0] == '*') { in zval_object_property_dump()
298 zend_string *class_name; in php_debug_zval_dump() local
382 zend_string_release_ex(class_name, 0); in php_debug_zval_dump()
[all …]
H A Dvar_unserializer.re1135 zend_string *class_name;
1191 ce = ZSTR_GET_CE_CACHE(class_name);
1210 ce = ZSTR_GET_CE_CACHE(class_name);
1225 if (!ZSTR_HAS_CE_CACHE(class_name) && !zend_is_valid_class_name(class_name)) {
1255 ZVAL_STR(&args[0], class_name);
1284 zend_string_release_ex(class_name, 0);
1296 zend_string_release_ex(class_name, 0);
1302 zend_string_release_ex(class_name, 0);
1308 zend_string_release_ex(class_name, 0);
1332 zend_string_release_ex(class_name, 0);
[all …]
/php-src/tests/classes/
H A Dautoload_004.phpt10 spl_autoload_register(function ($class_name) {
11 var_dump(class_exists($class_name));
12 require_once(__DIR__ . '/' . $class_name . '.inc');
13 echo 'autoload(' . $class_name . ")\n";
H A Dautoload_005.phpt10 spl_autoload_register(function ($class_name) {
11 var_dump(class_exists($class_name, false));
12 require_once(__DIR__ . '/' . $class_name . '.inc');
13 echo 'autoload(' . $class_name . ")\n";
H A Dautoload_001.phpt10 spl_autoload_register(function ($class_name) {
11 require_once(__DIR__ . '/' . $class_name . '.inc');
12 echo 'autoload(' . $class_name . ")\n";
H A Dautoload_002.phpt10 spl_autoload_register(function ($class_name) {
11 require_once(__DIR__ . '/' . $class_name . '.inc');
12 echo 'autoload(' . $class_name . ")\n";
H A Dautoload_003.phpt10 spl_autoload_register(function ($class_name) {
11 require_once(__DIR__ . '/' . $class_name . '.inc');
12 echo 'autoload(' . $class_name . ")\n";
H A Dautoload_006.phpt10 spl_autoload_register(function ($class_name) {
11 require_once(__DIR__ . '/' . strtolower($class_name) . '.inc');
12 echo 'autoload(' . $class_name . ")\n";
/php-src/Zend/
H A Dzend_list.c110 const char *class_name = get_active_class_name(&space); in zend_fetch_resource2() local
111 …zend_type_error("%s%s%s(): supplied resource is not a valid %s resource", class_name, space, get_a… in zend_fetch_resource2()
125 const char *class_name = get_active_class_name(&space); in zend_fetch_resource() local
134 const char *space, *class_name; in zend_fetch_resource_ex() local
137 class_name = get_active_class_name(&space); in zend_fetch_resource_ex()
138 …zend_type_error("%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name()… in zend_fetch_resource_ex()
144 class_name = get_active_class_name(&space); in zend_fetch_resource_ex()
155 const char *space, *class_name; in zend_fetch_resource2_ex() local
158 class_name = get_active_class_name(&space); in zend_fetch_resource2_ex()
159 …zend_type_error("%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name()… in zend_fetch_resource2_ex()
[all …]
H A Dzend_constants.c310 if (ZSTR_HAS_CE_CACHE(class_name)) { in zend_get_class_constant_ex()
311 ce = ZSTR_GET_CE_CACHE(class_name); in zend_get_class_constant_ex()
313 ce = zend_fetch_class(class_name, flags); in zend_get_class_constant_ex()
315 } else if (zend_string_equals_literal_ci(class_name, "self")) { in zend_get_class_constant_ex()
321 } else if (zend_string_equals_literal_ci(class_name, "parent")) { in zend_get_class_constant_ex()
331 } else if (zend_string_equals_ci(class_name, ZSTR_KNOWN(ZEND_STR_STATIC))) { in zend_get_class_constant_ex()
338 ce = zend_fetch_class(class_name, flags); in zend_get_class_constant_ex()
344 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
417 zend_string *class_name = zend_string_init_interned(name, class_name_len, 0); in zend_get_constant_ex() local
418 zval *ret_constant = zend_get_class_constant_ex(class_name, constant_name, scope, flags); in zend_get_constant_ex()
[all …]
/php-src/ext/standard/tests/serialize/
H A D005.phpt8 function do_autoload($class_name)
10 if ($class_name != 'autoload_not_available')
12 require_once(__DIR__ . '/' . strtolower($class_name) . '.inc');
14 echo __FUNCTION__ . "($class_name)\n";
17 function unserializer($class_name)
19 echo __METHOD__ . "($class_name)\n";
20 switch($class_name)
34 spl_autoload_register(function ($class_name) { do_autoload($class_name); });
36 spl_autoload_call($class_name);
H A Dbug30234.phpt10 spl_autoload_register(function ($class_name) {
11 require_once(__DIR__ . '/' . strtolower($class_name) . '.inc');
12 echo __FUNCTION__ . '(' . $class_name . ")\n";
/php-src/sapi/phpdbg/
H A Dphpdbg_bp.c72 efree((char*)bp->class_name); in phpdbg_class_breaks_dtor()
87 if (bp->class_name) { in phpdbg_opline_breaks_dtor()
88 efree((char*)bp->class_name); in phpdbg_opline_breaks_dtor()
442 if (*class_name == '\\') { in phpdbg_set_breakpoint_method()
443 class_name++; in phpdbg_set_breakpoint_method()
461 new_break.class_name = estrndup(class_name, class_len); in phpdbg_set_breakpoint_method()
504 if (brake->class_name == NULL) { in phpdbg_resolve_op_array_break()
563 brake->class_name ? brake->class_name : "", in phpdbg_resolve_op_array_breaks()
605 if (new_break->class_name != NULL) { in phpdbg_resolve_opline_break()
679 efree((char*)new_break.class_name); in phpdbg_set_breakpoint_method_opline()
[all …]
H A Dphpdbg_bp.h71 phpdbg_breakbase(class_name);
83 const char *class_name; member
128 PHPDBG_API void phpdbg_set_breakpoint_method(const char* class_name, const char* func_name);
/php-src/ext/standard/tests/class_object/
H A Dinterface_exists_variation4.phpt7 spl_autoload_register(function ($class_name) {
8 require_once $class_name . '.inc';
H A Dinterface_exists_variation3.phpt7 spl_autoload_register(function ($class_name) {
8 require_once $class_name . '.inc';
H A Dproperty_exists_variation1.phpt7 spl_autoload_register(function ($class_name) {
8 require_once $class_name . '.inc';
H A Dget_declared_classes_variation1.phpt7 spl_autoload_register(function ($class_name) {
8 require_once $class_name . '.inc';
H A Dget_declared_interfaces_variation1.phpt7 spl_autoload_register(function ($class_name) {
8 require_once $class_name . '.inc';
/php-src/ext/simplexml/
H A Dsimplexml.stub.php5 function simplexml_load_file(string $filename, ?string $class_name = SimpleXMLElement::class, int $… argument
7 function simplexml_load_string(string $data, ?string $class_name = SimpleXMLElement::class, int $op… argument
9 function simplexml_import_dom(object $node, ?string $class_name = SimpleXMLElement::class): ?Simple… argument
/php-src/ext/spl/
H A Dphp_spl.c156 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \ argument
157 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags)
295 zend_string *class_name, *lc_name, *file_exts = NULL; in PHP_FUNCTION() local
313 lc_name = zend_string_tolower(class_name); in PHP_FUNCTION()
321 if (spl_autoload(class_name, lc_name, pos, pos1_len)) { in PHP_FUNCTION()
441 ZVAL_STR(&param, class_name); in spl_perform_autoload()
447 if (ZSTR_HAS_CE_CACHE(class_name) && ZSTR_GET_CE_CACHE(class_name)) { in spl_perform_autoload()
448 return (zend_class_entry*)ZSTR_GET_CE_CACHE(class_name); in spl_perform_autoload()
464 zend_string *class_name; in PHP_FUNCTION() local
470 zend_string *lc_name = zend_string_tolower(class_name); in PHP_FUNCTION()
[all …]
/php-src/ext/readline/
H A Dreadline_cli.c533 zend_string *class_name = NULL; in cli_completion_generator() local
539 class_name = zend_string_alloc(class_name_len, 0); in cli_completion_generator()
540 zend_str_tolower_copy(ZSTR_VAL(class_name), text, class_name_len); in cli_completion_generator()
541 if ((ce = zend_lookup_class(class_name)) == NULL) { in cli_completion_generator()
542 zend_string_release_ex(class_name, 0); in cli_completion_generator()
574 if (class_name) { in cli_completion_generator()
575 zend_string_release_ex(class_name, 0); in cli_completion_generator()
/php-src/ext/spl/tests/
H A Dbug40091.phpt7 function autoload($class_name) {

Completed in 43 milliseconds

123