- Do not autoload if require does the trick

This commit is contained in:
Marcus Boerger 2004-11-01 01:29:06 +00:00
parent 846666109b
commit e0196d11a4
9 changed files with 13 additions and 13 deletions

View File

@ -26,8 +26,8 @@ EOF;
exit(1);
}
if (!class_exists("DbaReader")) require_once("dbareader.inc");
if (!class_exists("KeyFilter")) require_once("keyfilter.inc");
if (!class_exists("DbaReader", false)) require_once("dbareader.inc");
if (!class_exists("KeyFilter", false)) require_once("keyfilter.inc");
$db = new DbaReader($argv[1], $argv[2]);

View File

@ -9,7 +9,7 @@
* SPL - Standard PHP Library
*/
if (!class_exists("DbaReader")) require_once("dbareader.inc");
if (!class_exists("DbaReader", false)) require_once("dbareader.inc");
/** @ingroup Examples
* @brief This implements a DBA Array

View File

@ -24,7 +24,7 @@ EOF;
exit(1);
}
if (!class_exists("DirectoryTreeIterator")) require_once("directorytreeiterator.inc");
if (!class_exists("DirectoryTreeIterator", false)) require_once("directorytreeiterator.inc");
$length = $argc > 3 ? $argv[3] : -1;

View File

@ -9,8 +9,8 @@
* SPL - Standard PHP Library
*/
if (!class_exists("FindFile")) require_once("findfile.inc");
if (!class_exists("AppendIterator")) require_once("appenditerator.inc");
if (!class_exists("FindFile", false)) require_once("findfile.inc");
if (!class_exists("AppendIterator", false)) require_once("appenditerator.inc");
/** @ingroup Examples
* @brief Base class to find files

View File

@ -27,7 +27,7 @@ EOF;
exit(1);
}
if (!class_exists("FindFile")) require_once("findfile.inc");
if (!class_exists("FindFile", false)) require_once("findfile.inc");
foreach(new FindFile($argv[1], $argv[2]) as $file) echo $file->getPathname()."\n";
?>

View File

@ -26,7 +26,7 @@ EOF;
exit(1);
}
if (!class_exists("RegexFindFile")) require_once("regexfindfile.inc");
if (!class_exists("RegexFindFile", false)) require_once("regexfindfile.inc");
foreach(new RegexFindFile($argv[1], $argv[2]) as $file)
{

View File

@ -26,8 +26,8 @@ EOF;
exit(1);
}
if (!class_exists("KeyFilter")) require_once("keyfilter.inc");
if (!class_exists("IniGroups")) require_once("inigroups.inc");
if (!class_exists("KeyFilter", false)) require_once("keyfilter.inc");
if (!class_exists("IniGroups", false)) require_once("inigroups.inc");
$it = new IniGroups($argv[1]);
if ($argc>2) {

View File

@ -9,8 +9,8 @@
* SPL - Standard PHP Library
*/
if (!class_exists("KeyFilter")) require_once("keyfilter.inc");
if (!class_exists("DbaReader")) require_once("dbareader.inc");
if (!class_exists("KeyFilter", false)) require_once("keyfilter.inc");
if (!class_exists("DbaReader", false)) require_once("dbareader.inc");
/** @ingroup Examples
* @brief Class to iterate all groups within an ini file.

View File

@ -28,7 +28,7 @@ EOF;
exit(1);
}
if (!class_exists("DirectoryTreeIterator")) require_once("directorytreeiterator.inc");
if (!class_exists("DirectoryTreeIterator", false)) require_once("directorytreeiterator.inc");
echo $argv[1]."\n";
foreach(new DirectoryTreeIterator($argv[1]) as $file)