Home
last modified time | relevance | path

Searched refs:classname (Results 1 – 25 of 55) sorted by relevance

123

/PHP-7.0/ext/spl/examples/
H A Dautoload.inc13 * Tries to load class $classname from directory $dir.
15 function __load_class($classname, $dir)
17 $file = $dir . '/' . $classname . '.inc';
34 function __autoload($classname) {
35 $classname = strtolower($classname);
41 if (__load_class($classname, $dir))
43 fprintf(STDERR, 'Loading class('.$classname.")\n");
47 fprintf(STDERR, 'Class not found ('.$classname.")\n");
/PHP-7.0/ext/spl/tests/
H A Dspl_autoload_003.phpt8 function TestFunc1($classname)
10 echo __METHOD__ . "($classname)\n";
13 function TestFunc2($classname)
15 echo __METHOD__ . "($classname)\n";
16 throw new Exception("Class $classname missing");
19 function TestFunc3($classname)
21 echo __METHOD__ . "($classname)\n";
H A Dspl_autoload_001.phpt33 function TestFunc1($classname)
35 echo __METHOD__ . "($classname)\n";
38 function TestFunc2($classname)
40 echo __METHOD__ . "($classname)\n";
H A Dclass_implements_variation.phpt23 function __autoload($classname) {
24 echo "attempting to autoload $classname\n";
H A Dclass_uses_variation.phpt23 function __autoload($classname) {
24 echo "attempting to autoload $classname\n";
/PHP-7.0/Zend/
H A Dzend_dtrace.d22 probe exception__caught(char *classname);
23 probe exception__thrown(char* classname);
31 …probe function__entry(char* function_name, char* request_file, int lineno, char* classname, char* …
32 …probe function__return(char* function_name, char* request_file, int lineno, char* classname, char*…
H A Dzend_dtrace.c60 const char *scope, *filename, *funcname, *classname; in dtrace_execute_ex() local
61 scope = filename = funcname = classname = NULL; in dtrace_execute_ex()
71 classname = get_active_class_name(&scope); in dtrace_execute_ex()
80 …DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope… in dtrace_execute_ex()
86 …DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scop… in dtrace_execute_ex()
/PHP-7.0/ext/pdo/tests/
H A Dbug_44159.phpt28 …error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname
31 …error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname
34 …error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname
/PHP-7.0/Zend/tests/bug67436/
H A Dbug67436.phpt10 spl_autoload_register(function($classname) {
11 if (in_array($classname, array('a','b','c'))) {
12 require_once __DIR__ . "/{$classname}.php";
H A Dbug67436_nohandler.phpt10 spl_autoload_register(function($classname) {
11 if (in_array($classname, array('a','b','c'))) {
12 require_once __DIR__ . "/{$classname}.php";
/PHP-7.0/ext/reflection/tests/
H A Dbug29268.phpt5 function __autoload($classname) {
6 echo "__autoload($classname)\n";
7 eval("class $classname {}");
/PHP-7.0/Zend/tests/
H A Dbug55007.phpt6 function __autoload($classname) {
7 if ('CompileErrorClass'==$classname) eval('class CompileErrorClass { function foo() { $a[]; } }');
8 …if ('MyErrorHandler'==$classname) eval('class MyErrorHandler { function __construct() { print "My …
/PHP-7.0/ext/phar/phar/
H A Dphar.php43 function command_autoload($classname) argument
45 command_include(strtolower($classname) . '.inc');
/PHP-7.0/main/streams/
H A Duserspace.c43 char * classname; member
78 efree(uwrap->classname); in stream_wrapper_dtor()
405 us->wrapper->classname); in user_wrapper_opener()
475 us->wrapper->classname); in user_wrapper_opendir()
511 uwrap->classname = estrndup(ZSTR_VAL(classname), ZSTR_LEN(classname)); in PHP_FUNCTION()
630 us->wrapper->classname); in php_userstreamop_write()
636 us->wrapper->classname, in php_userstreamop_write()
687 us->wrapper->classname); in php_userstreamop_read()
708 us->wrapper->classname); in php_userstreamop_read()
1395 uwrap->classname); in user_wrapper_stat_url()
[all …]
/PHP-7.0/tests/lang/
H A D042.phpt9 $classname = 'A';
12 echo $classname::B."\n";
H A D041.phpt9 $classname = 'A';
12 echo $classname::$b."\n";
H A D043.phpt9 $classname = 'A';
12 echo $classname::foo()."\n";
H A D044.phpt8 $classname = 'A';
13 echo $classname::$methodname()."\n";
/PHP-7.0/ext/standard/tests/class_object/
H A Dinterface_exists_error.phpt5 /* Prototype : bool interface_exists(string classname [, bool autoload])
19 $classname = 'string_val';
22 var_dump( interface_exists($classname, $autoload, $extra_arg) );
H A Dclass_exists_error_001.phpt5 /* Prototype : proto bool class_exists(string classname [, bool autoload])
23 $classname = 'string_val';
26 var_dump( class_exists($classname, $autoload, $extra_arg) );
/PHP-7.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_interface.phpt36 $classname = get_class($db);
38 $methods = get_class_methods($classname);
44 if ($method == $classname) {
/PHP-7.0/ext/standard/tests/serialize/
H A Dbug62836_2.phpt9 function mycallback($classname) {
11 eval ("class $classname {} ");
/PHP-7.0/ext/standard/
H A Duser_filters.c35 zend_string *classname; member
318 if (NULL == (fdat->ce = zend_lookup_class(fdat->classname))) { in user_filter_factory_create()
321 filtername, ZSTR_VAL(fdat->classname)); in user_filter_factory_create()
390 zend_string_release(fdat->classname); in filter_item_dtor()
561 zend_string *filtername, *classname; in PHP_FUNCTION() local
564 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS", &filtername, &classname) == FAILURE) { in PHP_FUNCTION()
575 if (!ZSTR_LEN(classname)) { in PHP_FUNCTION()
586 fdat->classname = zend_string_copy(classname); in PHP_FUNCTION()
592 zend_string_release(classname); in PHP_FUNCTION()
/PHP-7.0/scripts/dev/
H A Dsearch_underscores.php86 foreach($classes as $classname => &$methods) {
87 echo " Class: $classname\n";
/PHP-7.0/ext/spl/examples/tests/
H A Ddualiterator_001.phpt8 function spl_examples_autoload($classname)
10 include(dirname(__FILE__) . '/../' . strtolower($classname) . '.inc');

Completed in 29 milliseconds

123