Home
last modified time | relevance | path

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

1234

/PHP-5.4/ext/spl/
H A Dspl_functions.h28 #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
71 #define SPL_ME(class_name, function_name, arg_info, flags) \ argument
77 #define SPL_METHOD(class_name, function_name) \ argument
[all …]
H A Dspl_functions.c31 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 Dspl.php174 * @param class_name name of class to load
183 * @param class_name name of class to load
185 function spl_autoload_call(string $class_name) {/**/}; argument
870 * @param class_name name of class to instantiate
873 function getFileInfo(string class_name = NULL) {/**/} argument
880 * @param class_name name of class to instantiate
883 function getPathInfo(string class_name = NULL) {/**/} argument
972 /** @param class_name name of class used with openFile(). Must be derived
975 function setFileClass(string class_name = "SplFileObject") {/**/} argument
977 /** @param class_name name of class used with getFileInfo(), getPathInfo().
[all …]
H A Dphp_spl.c182 #define SPL_ADD_CLASS(class_name, z_list, sub, allow, ce_flags) \ argument
183 spl_add_classes(spl_ce_ ## class_name, z_list, sub, allow, ce_flags TSRMLS_CC)
318 char *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions); in PHP_FUNCTION() local
334 lc_name = zend_str_tolower_dup(class_name, class_name_len); in PHP_FUNCTION()
341 if (spl_autoload(class_name, lc_name, class_name_len, pos1 TSRMLS_CC)) { in PHP_FUNCTION()
415 zval *class_name, *retval = NULL; in PHP_FUNCTION() local
423 …end_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &class_name) == FAILURE || Z_TYPE_P(class_nam… in PHP_FUNCTION()
430 class_name_len = Z_STRLEN_P(class_name); in PHP_FUNCTION()
431 lc_name = zend_str_tolower_dup(Z_STRVAL_P(class_name), class_name_len); in PHP_FUNCTION()
882 ZEND_ARG_INFO(0, class_name)
[all …]
/PHP-5.4/ext/standard/
H A Dphp_incomplete_class.h33 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, (const char **)&class_name, &name_len TSRMLS_C…
45 if (free_class_name) efree(class_name)
48 char *class_name; \
H A Dincomplete_class.c39 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 Dvar.c59 const char *prop_name, *class_name; in php_object_property_dump() local
70 if (class_name[0] == '*') { in php_object_property_dump()
90 const char *class_name; in php_var_dump() local
139 efree((char*)class_name); in php_var_dump()
226 if (class_name) { in zval_object_property_dump()
227 if (class_name[0] == '*') { in zval_object_property_dump()
245 const char *class_name; in php_debug_zval_dump() local
289 efree((char*)class_name); in php_debug_zval_dump()
397 &class_name, &pname); in php_object_element_export()
421 const char *class_name; in php_var_export_ex() local
[all …]
H A Dvar_unserializer.c636 char *class_name; in php_var_unserialize() local
661 class_name = (char*)YYCURSOR; in php_var_unserialize()
681 class_name = estrndup(class_name, len); in php_var_unserialize()
689 efree(class_name); in php_var_unserialize()
698 efree(class_name); in php_var_unserialize()
714 ZVAL_STRING(arg_func_name, class_name, 1); in php_var_unserialize()
719 efree(class_name); in php_var_unserialize()
736 efree(class_name); in php_var_unserialize()
766 efree(class_name); in php_var_unserialize()
773 php_store_class_name(*rval, class_name, len2); in php_var_unserialize()
[all …]
/PHP-5.4/tests/classes/
H A Dautoload_004.phpt11 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 Dautoload_005.phpt11 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 Dautoload_002.phpt11 function __autoload($class_name)
13 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c');
14 echo __FUNCTION__ . '(' . $class_name . ")\n";
H A Dautoload_001.phpt11 function __autoload($class_name)
13 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c');
14 echo __FUNCTION__ . '(' . $class_name . ")\n";
H A Dautoload_003.phpt11 function __autoload($class_name)
13 require_once(dirname(__FILE__) . '/' . $class_name . '.p5c');
14 echo __FUNCTION__ . '(' . $class_name . ")\n";
H A Dautoload_006.phpt11 function __autoload($class_name)
13 require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c');
14 echo __FUNCTION__ . '(' . $class_name . ")\n";
/PHP-5.4/ext/standard/tests/serialize/
H A D005.phpt10 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 Dbug30234.phpt10 function __autoload($class_name)
12 require_once(dirname(__FILE__) . '/' . strtolower($class_name) . '.p5c');
13 echo __FUNCTION__ . '(' . $class_name . ")\n";
/PHP-5.4/ext/standard/tests/class_object/
H A Dis_subclass_of_error_001.phpt5 /* 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 Dis_a_error_001.phpt7 /* 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 Dinterface_exists_variation4.phpt13 function __autoload($class_name) {
14 require_once $class_name . '.inc';
H A Dinterface_exists_variation3.phpt13 function __autoload($class_name) {
14 require_once $class_name . '.inc';
H A Dget_declared_classes_variation1.phpt14 function __autoload($class_name) {
15 require_once $class_name . '.inc';
H A Dget_declared_interfaces_variation1.phpt14 function __autoload($class_name) {
15 require_once $class_name . '.inc';
H A Dproperty_exists_variation1.phpt13 function __autoload($class_name) {
14 require_once $class_name . '.inc';
/PHP-5.4/Zend/
H A Dzend_list.c117 const char *class_name; in zend_fetch_resource() local
122 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource()
123 …zend_error(E_WARNING, "%s%s%s(): no %s resource supplied", class_name, space, get_active_function_… in zend_fetch_resource()
128 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource()
129 …zend_error(E_WARNING, "%s%s%s(): supplied argument is not a valid %s resource", class_name, space,… in zend_fetch_resource()
141 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource()
142 …zend_error(E_WARNING, "%s%s%s(): %d is not a valid %s resource", class_name, space, get_active_fun… in zend_fetch_resource()
160 class_name = get_active_class_name(&space TSRMLS_CC); in zend_fetch_resource()
161 …zend_error(E_WARNING, "%s%s%s(): supplied resource is not a valid %s resource", class_name, space,… in zend_fetch_resource()
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_bt.c189 zstr class_name; in mysqlnd_build_trace_args() local
195 dup = zend_get_object_classname(*arg, &class_name, &class_name_len TSRMLS_CC); in mysqlnd_build_trace_args()
197 ZVAL_UNICODEL(&tmp, class_name.u, class_name_len, 1); in mysqlnd_build_trace_args()
203 efree(class_name.v); in mysqlnd_build_trace_args()
371 char *class_name; in mysqlnd_build_trace_args() local
377 dupl = zend_get_object_classname(*arg, (const char **)&class_name, &class_name_len TSRMLS_CC); in mysqlnd_build_trace_args()
379 TRACE_APPEND_STRL(class_name, class_name_len); in mysqlnd_build_trace_args()
381 efree(class_name); in mysqlnd_build_trace_args()

Completed in 69 milliseconds

1234