Home
last modified time | relevance | path

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

123

/PHP-8.2/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.c55 const char *prop_name, *class_name; in php_object_property_dump() local
63 if (class_name && unmangle == SUCCESS) { in php_object_property_dump()
64 if (class_name[0] == '*') { in php_object_property_dump()
92 zend_string *class_name; in php_var_dump() local
166 zend_string_release_ex(class_name, 0); in php_var_dump()
248 const char *prop_name, *class_name; in zval_object_property_dump() local
256 if (class_name) { in zval_object_property_dump()
257 if (class_name[0] == '*') { in zval_object_property_dump()
281 zend_string *class_name; in php_debug_zval_dump() local
359 zend_string_release_ex(class_name, 0); in php_debug_zval_dump()
[all …]
H A Dvar_unserializer.re1133 zend_string *class_name;
1189 ce = ZSTR_GET_CE_CACHE(class_name);
1208 ce = ZSTR_GET_CE_CACHE(class_name);
1223 if (!ZSTR_HAS_CE_CACHE(class_name) && !zend_is_valid_class_name(class_name)) {
1253 ZVAL_STR(&args[0], class_name);
1282 zend_string_release_ex(class_name, 0);
1294 zend_string_release_ex(class_name, 0);
1300 zend_string_release_ex(class_name, 0);
1306 zend_string_release_ex(class_name, 0);
1330 zend_string_release_ex(class_name, 0);
[all …]
/PHP-8.2/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-8.2/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.c318 if (ZSTR_HAS_CE_CACHE(class_name)) { in zend_get_class_constant_ex()
319 ce = ZSTR_GET_CE_CACHE(class_name); in zend_get_class_constant_ex()
321 ce = zend_fetch_class(class_name, flags); in zend_get_class_constant_ex()
323 } else if (zend_string_equals_literal_ci(class_name, "self")) { in zend_get_class_constant_ex()
329 } else if (zend_string_equals_literal_ci(class_name, "parent")) { in zend_get_class_constant_ex()
339 } else if (zend_string_equals_literal_ci(class_name, "static")) { in zend_get_class_constant_ex()
346 ce = zend_fetch_class(class_name, flags); in zend_get_class_constant_ex()
352 …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-8.2/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-8.2/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-8.2/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-8.2/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(SimpleXMLElement|DOMNode $node, ?string $class_name = SimpleXMLElemen… argument
/PHP-8.2/ext/spl/
H A Dphp_spl.c159 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \ argument
160 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags)
298 zend_string *class_name, *lc_name, *file_exts = NULL; in PHP_FUNCTION() local
316 lc_name = zend_string_tolower(class_name); in PHP_FUNCTION()
324 if (spl_autoload(class_name, lc_name, pos, pos1_len)) { in PHP_FUNCTION()
444 ZVAL_STR(&param, class_name); in spl_perform_autoload()
450 if (ZSTR_HAS_CE_CACHE(class_name) && ZSTR_GET_CE_CACHE(class_name)) { in spl_perform_autoload()
451 return (zend_class_entry*)ZSTR_GET_CE_CACHE(class_name); in spl_perform_autoload()
467 zend_string *class_name; in PHP_FUNCTION() local
473 zend_string *lc_name = zend_string_tolower(class_name); in PHP_FUNCTION()
[all …]
/PHP-8.2/ext/readline/
H A Dreadline_cli.c540 zend_string *class_name = NULL; in cli_completion_generator() local
546 class_name = zend_string_alloc(class_name_len, 0); in cli_completion_generator()
547 zend_str_tolower_copy(ZSTR_VAL(class_name), text, class_name_len); in cli_completion_generator()
548 if ((ce = zend_lookup_class(class_name)) == NULL) { in cli_completion_generator()
549 zend_string_release_ex(class_name, 0); in cli_completion_generator()
581 if (class_name) { in cli_completion_generator()
582 zend_string_release_ex(class_name, 0); in cli_completion_generator()
/PHP-8.2/ext/spl/tests/
H A Dbug40091.phpt7 function autoload($class_name) {

Completed in 66 milliseconds

123