/PHP-8.0/ext/spl/ |
H A D | spl_functions.h | 24 #define REGISTER_SPL_STD_CLASS(class_name, obj_ctor) \ argument 25 spl_register_std_class(&spl_ce_ ## class_name, # class_name, obj_ctor, NULL); 27 #define REGISTER_SPL_STD_CLASS_EX(class_name, obj_ctor, funcs) \ argument 28 spl_register_std_class(&spl_ce_ ## class_name, # class_name, obj_ctor, funcs); 31 …spl_register_sub_class(&spl_ce_ ## class_name, spl_ce_ ## parent_class_name, # class_name, obj_cto… 33 #define REGISTER_SPL_INTERFACE(class_name) \ argument 34 spl_register_interface(&spl_ce_ ## class_name, # class_name, class_ ## class_name ## _methods); 36 #define REGISTER_SPL_IMPLEMENTS(class_name, interface_name) \ argument 39 #define REGISTER_SPL_ITERATOR(class_name) \ argument 40 zend_class_implements(spl_ce_ ## class_name, 1, zend_ce_iterator); [all …]
|
H A D | spl_functions.c | 27 void spl_register_interface(zend_class_entry ** ppce, char * class_name, const zend_function_entry … in spl_register_interface() argument 31 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), functions); in spl_register_interface() 37 PHPAPI void spl_register_std_class(zend_class_entry ** ppce, char * class_name, void * obj_ctor, co… in spl_register_std_class() argument 41 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_std_class() 52 …b_class(zend_class_entry ** ppce, zend_class_entry * parent_ce, char * class_name, void *obj_ctor,… in spl_register_sub_class() argument 56 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_sub_class()
|
H A D | php_spl.c | 167 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \ argument 168 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags) 303 zend_string *class_name, *lc_name, *file_exts = NULL; in PHP_FUNCTION() local 305 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|S!", &class_name, &file_exts) == FAILURE) { in PHP_FUNCTION() 321 lc_name = zend_string_tolower(class_name); in PHP_FUNCTION() 329 if (spl_autoload(class_name, lc_name, pos, pos1_len)) { in PHP_FUNCTION() 439 ZVAL_STR(¶m, class_name); in spl_perform_autoload() 458 zend_string *class_name; in PHP_FUNCTION() local 460 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &class_name) == FAILURE) { in PHP_FUNCTION() 464 zend_string *lc_name = zend_string_tolower(class_name); in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/standard/ |
H A D | php_incomplete_class.h | 29 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 D | incomplete_class.c | 33 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 D | var.c | 53 const char *prop_name, *class_name; in php_object_property_dump() local 61 if (class_name && unmangle == SUCCESS) { in php_object_property_dump() 62 if (class_name[0] == '*') { in php_object_property_dump() 90 zend_string *class_name; in php_var_dump() local 157 zend_string_release_ex(class_name, 0); in php_var_dump() 238 const char *prop_name, *class_name; in zval_object_property_dump() local 246 if (class_name) { in zval_object_property_dump() 247 if (class_name[0] == '*') { in zval_object_property_dump() 271 zend_string *class_name; in php_debug_zval_dump() local 441 const char *class_name, *prop_name; in php_object_element_export() local [all …]
|
/PHP-8.0/tests/classes/ |
H A D | autoload_004.phpt | 10 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 D | autoload_005.phpt | 10 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 D | autoload_001.phpt | 10 spl_autoload_register(function ($class_name) { 11 require_once(__DIR__ . '/' . $class_name . '.inc'); 12 echo 'autoload(' . $class_name . ")\n";
|
H A D | autoload_002.phpt | 10 spl_autoload_register(function ($class_name) { 11 require_once(__DIR__ . '/' . $class_name . '.inc'); 12 echo 'autoload(' . $class_name . ")\n";
|
H A D | autoload_003.phpt | 10 spl_autoload_register(function ($class_name) { 11 require_once(__DIR__ . '/' . $class_name . '.inc'); 12 echo 'autoload(' . $class_name . ")\n";
|
H A D | autoload_006.phpt | 10 spl_autoload_register(function ($class_name) { 11 require_once(__DIR__ . '/' . strtolower($class_name) . '.inc'); 12 echo 'autoload(' . $class_name . ")\n";
|
/PHP-8.0/Zend/ |
H A D | zend_list.c | 111 const char *class_name = get_active_class_name(&space); in zend_fetch_resource2() local 112 …zend_type_error("%s%s%s(): supplied resource is not a valid %s resource", class_name, space, get_a… in zend_fetch_resource2() 126 const char *class_name = get_active_class_name(&space); in zend_fetch_resource() local 135 const char *space, *class_name; in zend_fetch_resource_ex() local 138 class_name = get_active_class_name(&space); in zend_fetch_resource_ex() 139 …zend_type_error("%s%s%s(): no %s resource supplied", class_name, space, get_active_function_name()… in zend_fetch_resource_ex() 145 class_name = get_active_class_name(&space); in zend_fetch_resource_ex() 156 const char *space, *class_name; in zend_fetch_resource2_ex() local 159 class_name = get_active_class_name(&space); in zend_fetch_resource2_ex() 160 …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 D | zend_interfaces.h | 52 #define REGISTER_MAGIC_INTERFACE(class_name, class_name_str) \ argument 56 zend_ce_ ## class_name = zend_register_internal_interface(&ce);\ 57 zend_ce_ ## class_name->interface_gets_implemented = zend_implement_ ## class_name;\ 60 #define REGISTER_MAGIC_IMPLEMENT(class_name, interface_name) \ argument 61 zend_class_implements(zend_ce_ ## class_name, 1, zend_ce_ ## interface_name)
|
H A D | zend_constants.c | 347 zend_string *class_name = zend_string_init(name, class_name_len, 0); in zend_get_constant_ex() local 351 if (zend_string_equals_literal_ci(class_name, "self")) { in zend_get_constant_ex() 357 } else if (zend_string_equals_literal_ci(class_name, "parent")) { in zend_get_constant_ex() 367 } else if (zend_string_equals_literal_ci(class_name, "static")) { in zend_get_constant_ex() 374 ce = zend_fetch_class(class_name, flags); in zend_get_constant_ex() 380 …zend_throw_error(NULL, "Undefined constant %s::%s", ZSTR_VAL(class_name), ZSTR_VAL(constant_name)); in zend_get_constant_ex() 387 …nt %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(class_name), ZSTR_VAL(const… in zend_get_constant_ex() 399 …zend_throw_error(NULL, "Cannot declare self-referencing constant %s::%s", ZSTR_VAL(class_name), ZS… in zend_get_constant_ex() 414 zend_string_release_ex(class_name, 0); in zend_get_constant_ex()
|
/PHP-8.0/ext/standard/tests/serialize/ |
H A D | 005.phpt | 8 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 D | bug30234.phpt | 10 spl_autoload_register(function ($class_name) { 11 require_once(__DIR__ . '/' . strtolower($class_name) . '.inc'); 12 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
/PHP-8.0/ext/standard/tests/class_object/ |
H A D | interface_exists_variation4.phpt | 7 spl_autoload_register(function ($class_name) { 8 require_once $class_name . '.inc';
|
H A D | interface_exists_variation3.phpt | 7 spl_autoload_register(function ($class_name) { 8 require_once $class_name . '.inc';
|
H A D | property_exists_variation1.phpt | 7 spl_autoload_register(function ($class_name) { 8 require_once $class_name . '.inc';
|
H A D | get_declared_classes_variation1.phpt | 7 spl_autoload_register(function ($class_name) { 8 require_once $class_name . '.inc';
|
H A D | get_declared_interfaces_variation1.phpt | 7 spl_autoload_register(function ($class_name) { 8 require_once $class_name . '.inc';
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_bp.c | 73 efree((char*)bp->class_name); in phpdbg_class_breaks_dtor() 88 if (bp->class_name) { in phpdbg_opline_breaks_dtor() 89 efree((char*)bp->class_name); in phpdbg_opline_breaks_dtor() 443 if (*class_name == '\\') { in phpdbg_set_breakpoint_method() 444 class_name++; in phpdbg_set_breakpoint_method() 462 new_break.class_name = estrndup(class_name, class_len); in phpdbg_set_breakpoint_method() 505 if (brake->class_name == NULL) { in phpdbg_resolve_op_array_break() 564 brake->class_name ? brake->class_name : "", in phpdbg_resolve_op_array_breaks() 606 if (new_break->class_name != NULL) { in phpdbg_resolve_opline_break() 680 efree((char*)new_break.class_name); in phpdbg_set_breakpoint_method_opline() [all …]
|
H A D | phpdbg_bp.h | 71 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.0/ext/simplexml/ |
H A D | simplexml.stub.php | 5 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
|