Home
last modified time | relevance | path

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

123

/PHP-8.1/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
357 zend_string_release_ex(class_name, 0); in php_debug_zval_dump()
[all …]
H A Dvar_unserializer.re1105 zend_string *class_name;
1161 ce = ZSTR_GET_CE_CACHE(class_name);
1180 ce = ZSTR_GET_CE_CACHE(class_name);
1195 if (!ZSTR_HAS_CE_CACHE(class_name) && !zend_is_valid_class_name(class_name)) {
1230 ZVAL_STR_COPY(&args[0], class_name);
1274 zend_string_release_ex(class_name, 0);
1286 zend_string_release_ex(class_name, 0);
1292 zend_string_release_ex(class_name, 0);
1298 zend_string_release_ex(class_name, 0);
1312 zend_string_release_ex(class_name, 0);
[all …]
/PHP-8.1/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.1/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.c333 if (ZSTR_HAS_CE_CACHE(class_name)) { in zend_get_class_constant_ex()
334 ce = ZSTR_GET_CE_CACHE(class_name); in zend_get_class_constant_ex()
336 ce = zend_fetch_class(class_name, flags); in zend_get_class_constant_ex()
338 } else if (zend_string_equals_literal_ci(class_name, "self")) { in zend_get_class_constant_ex()
344 } else if (zend_string_equals_literal_ci(class_name, "parent")) { in zend_get_class_constant_ex()
354 } else if (zend_string_equals_literal_ci(class_name, "static")) { in zend_get_class_constant_ex()
361 ce = zend_fetch_class(class_name, flags); in zend_get_class_constant_ex()
367 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_class_constant_ex()
423 zend_string *class_name = zend_string_init_interned(name, class_name_len, 0); in zend_get_constant_ex() local
424 zval *ret_constant = zend_get_class_constant_ex(class_name, constant_name, scope, flags); in zend_get_constant_ex()
[all …]
/PHP-8.1/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.1/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.1/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.1/ext/spl/
H A Dspl_functions.h24 #define REGISTER_SPL_CLASS_CONST_LONG(class_name, const_name, value) \ argument
25 …zend_declare_class_constant_long(spl_ce_ ## class_name, const_name, sizeof(const_name)-1, (zend_lo…
H A Dphp_spl.c160 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \ argument
161 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags)
299 zend_string *class_name, *lc_name, *file_exts = NULL; in PHP_FUNCTION() local
317 lc_name = zend_string_tolower(class_name); in PHP_FUNCTION()
325 if (spl_autoload(class_name, lc_name, pos, pos1_len)) { in PHP_FUNCTION()
445 ZVAL_STR(&param, class_name); in spl_perform_autoload()
451 if (ZSTR_HAS_CE_CACHE(class_name) && ZSTR_GET_CE_CACHE(class_name)) { in spl_perform_autoload()
452 return (zend_class_entry*)ZSTR_GET_CE_CACHE(class_name); in spl_perform_autoload()
468 zend_string *class_name; in PHP_FUNCTION() local
474 zend_string *lc_name = zend_string_tolower(class_name); in PHP_FUNCTION()
[all …]
/PHP-8.1/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.1/ext/readline/
H A Dreadline_cli.c539 zend_string *class_name = NULL; in cli_completion_generator() local
545 class_name = zend_string_alloc(class_name_len, 0); in cli_completion_generator()
546 zend_str_tolower_copy(ZSTR_VAL(class_name), text, class_name_len); in cli_completion_generator()
547 if ((ce = zend_lookup_class(class_name)) == NULL) { in cli_completion_generator()
548 zend_string_release_ex(class_name, 0); in cli_completion_generator()
580 if (class_name) { in cli_completion_generator()
581 zend_string_release_ex(class_name, 0); in cli_completion_generator()

Completed in 37 milliseconds

123