mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
- Do not autoload if require does the trick
This commit is contained in:
parent
846666109b
commit
e0196d11a4
@ -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]);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
?>
|
@ -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)
|
||||
{
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user