/PHP-5.3/ext/spl/examples/ |
H A D | autoload.inc | 13 * 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-5.3/ext/spl/tests/ |
H A D | spl_autoload_003.phpt | 8 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 D | spl_autoload_001.phpt | 46 function TestFunc1($classname) 48 echo __METHOD__ . "($classname)\n"; 51 function TestFunc2($classname) 53 echo __METHOD__ . "($classname)\n";
|
H A D | class_implements_variation.phpt | 23 function __autoload($classname) { 24 echo "attempting to autoload $classname\n";
|
/PHP-5.3/ext/pdo/tests/ |
H A D | bug_44159.phpt | 28 …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…
|
H A D | pdo_test.inc | 22 static function factory($classname = 'PDO', $drop_test_tables = true) { 36 $db = new $classname($dsn, $user, $pass, $attr);
|
/PHP-5.3/ext/reflection/tests/ |
H A D | bug29268.phpt | 5 function __autoload($classname) { 6 echo "__autoload($classname)\n"; 7 eval("class $classname {}");
|
/PHP-5.3/Zend/tests/ |
H A D | bug55007.phpt | 6 function __autoload($classname) { 7 if ('CompileErrorClass'==$classname) eval('class CompileErrorClass { function foo() { $a[] } }'); 8 …if ('MyErrorHandler'==$classname) eval('class MyErrorHandler { function __construct() { print "My …
|
H A D | bug46665.phpt | 2 Bug #46665 (Triggering autoload with a variable classname causes truncated autoload param)
|
/PHP-5.3/ext/phar/phar/ |
H A D | phar.php | 43 function command_autoload($classname) argument 45 command_include(strtolower($classname) . '.inc');
|
/PHP-5.3/tests/lang/ |
H A D | 042.phpt | 9 $classname = 'A'; 12 echo $classname::B."\n";
|
H A D | 041.phpt | 9 $classname = 'A'; 12 echo $classname::$b."\n";
|
H A D | 043.phpt | 9 $classname = 'A'; 12 echo $classname::foo()."\n";
|
H A D | 044.phpt | 8 $classname = 'A'; 13 echo $classname::$methodname()."\n";
|
/PHP-5.3/ext/standard/tests/class_object/ |
H A D | interface_exists_error.phpt | 5 /* Prototype : bool interface_exists(string classname [, bool autoload]) 19 $classname = 'string_val'; 22 var_dump( interface_exists($classname, $autoload, $extra_arg) );
|
H A D | class_exists_error_001.phpt | 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 23 $classname = 'string_val'; 26 var_dump( class_exists($classname, $autoload, $extra_arg) );
|
H A D | class_exists_variation_003.phpt | 5 /* Prototype : proto bool class_exists(string classname [, bool autoload])
|
H A D | class_exists_variation_002.phpt | 5 /* Prototype : proto bool class_exists(string classname [, bool autoload]) 23 $classname = 'string_val'; 84 var_dump( class_exists($classname, $value) );
|
/PHP-5.3/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_interface.phpt | 36 $classname = get_class($db); 38 $methods = get_class_methods($classname); 44 if ($method == $classname) {
|
/PHP-5.3/main/streams/ |
H A D | userspace.c | 34 char * classname; member 67 efree(uwrap->classname); in stream_wrapper_dtor() 384 us->wrapper->classname); in user_wrapper_opener() 468 us->wrapper->classname); in user_wrapper_opendir() 493 char *protocol, *classname; in PHP_FUNCTION() local 505 uwrap->classname = estrndup(classname, classname_len); in PHP_FUNCTION() 626 us->wrapper->classname); in php_userstreamop_write() 632 us->wrapper->classname, in php_userstreamop_write() 680 us->wrapper->classname); in php_userstreamop_read() 704 us->wrapper->classname); in php_userstreamop_read() [all …]
|
/PHP-5.3/scripts/dev/ |
H A D | search_underscores.php | 86 foreach($classes as $classname => &$methods) { 87 echo " Class: $classname\n";
|
/PHP-5.3/ext/spl/examples/tests/ |
H A D | dualiterator_001.phpt | 8 function spl_examples_autoload($classname) 10 include(dirname(__FILE__) . '/../' . strtolower($classname) . '.inc');
|
/PHP-5.3/ext/standard/ |
H A D | user_filters.c | 35 char classname[1]; member 333 if (FAILURE == zend_lookup_class(fdat->classname, strlen(fdat->classname), in user_filter_factory_create() 337 filtername, fdat->classname); in user_filter_factory_create() 575 char *filtername, *classname; in PHP_FUNCTION() local 580 &classname, &classname_len) == FAILURE) { in PHP_FUNCTION() 602 memcpy(fdat->classname, classname, classname_len); in PHP_FUNCTION()
|
/PHP-5.3/ext/soap/tests/ |
H A D | typemap009.phpt | 33 $classname=get_class($book); 34 return "Object: ".$classname. "(".$book->a.",".$book->b.")";
|
H A D | classmap001.phpt | 29 $classname=get_class($book); 30 return "Classname: ".$classname;
|