/PHP-5.3/ext/spl/ |
H A D | spl_functions.h | 28 #define REGISTER_SPL_STD_CLASS(class_name, obj_ctor) \ argument 29 spl_register_std_class(&spl_ce_ ## class_name, # class_name, obj_ctor, NULL TSRMLS_CC); 32 spl_register_std_class(&spl_ce_ ## class_name, # class_name, obj_ctor, funcs TSRMLS_CC); 35 …spl_register_sub_class(&spl_ce_ ## class_name, spl_ce_ ## parent_class_name, # class_name, obj_cto… 37 #define REGISTER_SPL_INTERFACE(class_name) \ argument 38 spl_register_interface(&spl_ce_ ## class_name, # class_name, spl_funcs_ ## class_name TSRMLS_CC); 40 #define REGISTER_SPL_IMPLEMENTS(class_name, interface_name) \ argument 43 #define REGISTER_SPL_ITERATOR(class_name) \ argument 70 #define SPL_ME(class_name, function_name, arg_info, flags) \ argument 76 #define SPL_METHOD(class_name, function_name) \ argument [all …]
|
H A D | spl_functions.c | 31 void spl_register_interface(zend_class_entry ** ppce, char * class_name, const zend_function_entry … in spl_register_interface() argument 35 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), functions); in spl_register_interface() 41 PHPAPI void spl_register_std_class(zend_class_entry ** ppce, char * class_name, void * obj_ctor, co… in spl_register_std_class() argument 45 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_std_class() 56 …b_class(zend_class_entry ** ppce, zend_class_entry * parent_ce, char * class_name, void *obj_ctor,… in spl_register_sub_class() argument 60 INIT_CLASS_ENTRY_EX(ce, class_name, strlen(class_name), function_list); in spl_register_sub_class()
|
H A D | spl.php | 177 * @param class_name name of class to load 186 * @param class_name name of class to load 188 function spl_autoload_call(string $class_name) {/**/}; argument 873 * @param class_name name of class to instantiate 876 function getFileInfo(string class_name = NULL) {/**/} argument 883 * @param class_name name of class to instantiate 886 function getPathInfo(string class_name = NULL) {/**/} argument 975 /** @param class_name name of class used with openFile(). Must be derived 978 function setFileClass(string class_name = "SplFileObject") {/**/} argument 980 /** @param class_name name of class used with getFileInfo(), getPathInfo(). [all …]
|
H A D | php_spl.c | 153 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \ argument 154 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags TSRMLS_CC) 287 char *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions); in PHP_FUNCTION() local 303 lc_name = zend_str_tolower_dup(class_name, class_name_len); in PHP_FUNCTION() 310 if (spl_autoload(class_name, lc_name, class_name_len, pos1 TSRMLS_CC)) { in PHP_FUNCTION() 384 zval *class_name, *retval = NULL; in PHP_FUNCTION() local 392 …end_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &class_name) == FAILURE || Z_TYPE_P(class_nam… in PHP_FUNCTION() 399 class_name_len = Z_STRLEN_P(class_name); in PHP_FUNCTION() 400 lc_name = zend_str_tolower_dup(Z_STRVAL_P(class_name), class_name_len); in PHP_FUNCTION() 838 ZEND_ARG_INFO(0, class_name) [all …]
|
/PHP-5.3/ext/standard/ |
H A D | php_incomplete_class.h | 33 class_name = php_lookup_class_name(struc, &name_len); \ 34 if (!class_name) { \ 36 class_name = estrndup(INCOMPLETE_CLASS, name_len); \ 41 free_class_name = !zend_get_object_classname(struc, &class_name, &name_len TSRMLS_CC);\ 45 if (free_class_name) efree(class_name) 48 char *class_name; \
|
H A D | incomplete_class.c | 39 char *class_name; in incomplete_class_message() local 42 class_name = php_lookup_class_name(object, NULL); in incomplete_class_message() 44 if (!class_name) { in incomplete_class_message() 46 class_name = "unknown"; in incomplete_class_message() 49 php_error_docref(NULL TSRMLS_CC, error_type, INCOMPLETE_CLASS_MSG, class_name); in incomplete_class_message() 52 efree(class_name); in incomplete_class_message()
|
H A D | var.c | 59 char *prop_name, *class_name; in php_object_property_dump() local 70 if (class_name[0] == '*') { in php_object_property_dump() 90 char *class_name; in php_var_dump() local 138 efree(class_name); in php_var_dump() 214 char *prop_name, *class_name; in zval_object_property_dump() local 224 if (class_name) { in zval_object_property_dump() 243 char *class_name; in php_debug_zval_dump() local 288 efree(class_name); in php_debug_zval_dump() 400 &class_name, &pname); in php_object_element_export() 426 char *class_name; in php_var_export_ex() local [all …]
|
/PHP-5.3/tests/classes/ |
H A D | autoload_004.phpt | 11 function __autoload($class_name) 13 var_dump(class_exists($class_name)); 14 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); 15 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
H A D | autoload_005.phpt | 11 function __autoload($class_name) 13 var_dump(class_exists($class_name, false)); 14 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); 15 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
H A D | autoload_001.phpt | 11 function __autoload($class_name) 13 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); 14 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
H A D | autoload_002.phpt | 11 function __autoload($class_name) 13 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); 14 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
H A D | autoload_003.phpt | 11 function __autoload($class_name) 13 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); 14 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
H A D | autoload_006.phpt | 11 function __autoload($class_name) 13 require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c'); 14 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
/PHP-5.3/ext/standard/tests/serialize/ |
H A D | 005.phpt | 10 function do_autoload($class_name) 12 if ($class_name != 'autoload_not_available') 14 require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c'); 16 echo __FUNCTION__ . "($class_name)\n"; 19 function unserializer($class_name) 21 echo __METHOD__ . "($class_name)\n"; 22 switch($class_name) 37 eval('function __autoload($class_name) { do_autoload($class_name); }'); 39 __autoload($class_name);
|
H A D | bug30234.phpt | 10 function __autoload($class_name) 12 require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c'); 13 echo __FUNCTION__ . '(' . $class_name . ")\n";
|
/PHP-5.3/ext/standard/tests/class_object/ |
H A D | is_subclass_of_error_001.phpt | 5 /* Prototype : proto bool is_subclass_of(object object, string class_name) 17 $class_name = 'string_val'; 20 var_dump( is_subclass_of($object, $class_name, $allow_string, $extra_arg) ); 24 var_dump( is_subclass_of($object, $class_name, $class_name) ); 29 var_dump( is_subclass_of($object, $class_name, $object) );
|
H A D | is_a_error_001.phpt | 7 /* Prototype : proto bool is_a(object object, string class_name, bool allow_string) 18 $class_name = 'string_val'; 22 var_dump( is_a($object, $class_name, $allow_string, $object) ); 26 var_dump( is_a($object, $class_name, $object) );
|
H A D | interface_exists_variation4.phpt | 13 function __autoload($class_name) { 14 require_once $class_name . '.inc';
|
H A D | interface_exists_variation3.phpt | 13 function __autoload($class_name) { 14 require_once $class_name . '.inc';
|
H A D | get_declared_interfaces_variation1.phpt | 14 function __autoload($class_name) { 15 require_once $class_name . '.inc';
|
H A D | property_exists_variation1.phpt | 13 function __autoload($class_name) { 14 require_once $class_name . '.inc';
|
H A D | get_declared_classes_variation1.phpt | 14 function __autoload($class_name) { 15 require_once $class_name . '.inc';
|
/PHP-5.3/Zend/ |
H A D | zend_list.c | 118 char *class_name; in zend_fetch_resource() local 123 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource() 124 …zend_error(E_WARNING, "%s%s%s(): no %s resource supplied", class_name, space, get_active_function_… in zend_fetch_resource() 129 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource() 130 …zend_error(E_WARNING, "%s%s%s(): supplied argument is not a valid %s resource", class_name, space,… in zend_fetch_resource() 142 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource() 143 …zend_error(E_WARNING, "%s%s%s(): %d is not a valid %s resource", class_name, space, get_active_fun… in zend_fetch_resource() 161 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource() 162 …zend_error(E_WARNING, "%s%s%s(): supplied resource is not a valid %s resource", class_name, space,… in zend_fetch_resource()
|
H A D | zend_builtin_functions.c | 142 ZEND_ARG_INFO(0, class_name) 146 ZEND_ARG_INFO(0, class_name) 815 char *class_name; in is_a_impl() local 928 char *class_name; in ZEND_FUNCTION() local 1169 char *class_name, *lc_name; in ZEND_FUNCTION() local 1952 char *class_name = NULL; in ZEND_FUNCTION() local 1971 class_name = call_type = NULL; in ZEND_FUNCTION() 2014 class_name = NULL; in ZEND_FUNCTION() 2064 if (class_name) { in ZEND_FUNCTION() 2065 ZEND_PUTS(class_name); in ZEND_FUNCTION() [all …]
|
/PHP-5.3/sapi/cli/ |
H A D | php_cli_readline.c | 377 char *lc_text, *class_name, *class_name_end; in cli_completion_generator() local 384 class_name = zend_str_tolower_dup(text, class_name_len); in cli_completion_generator() 385 class_name[class_name_len] = '\0'; /* not done automatically */ in cli_completion_generator() 386 if (zend_lookup_class(class_name, class_name_len, &pce TSRMLS_CC)==FAILURE) { in cli_completion_generator() 387 efree(class_name); in cli_completion_generator() 418 efree(class_name); in cli_completion_generator()
|