![]() PHP_CompatInfo : The Definitive Guide |
PHP_CompatInfo::parseDir
— Parse
a directory recursively for its Compatibility info
require_once 'PHP/CompatInfo.php';
array PHP_CompatInfo::parseDir(
|
$dir, | |
$options = array()) ;
|
string | $dir; |
array | $options = array(); |
$dir
Path of folder to parse
$options
An array of options where:
'file_ext' Contains an array of file extensions to parse for PHP code. Default: php, php4, inc, phtml
'recurse_dir' Boolean on whether to recursively find files
'debug' Contains a boolean to control whether extra ouput is shown.
'ignore_functions' Contains an array of functions to ignore when calculating the version needed.
'ignore_constants' Contains an array of constants to ignore when calculating the version needed.
'ignore_files' Contains an array of files to ignore. File names are case insensitive.
'ignore_dirs' Contains an array of directories to ignore. Directory names are case insensitive.
'ignore_extensions' Contains an array of php extensions to ignore when calculating the version needed.
'ignore_versions' Contains an array of php versions to ignore when calculating the version needed.
PHP_CompatInfo : The Definitive Guide | v 1.5.1 : November 19, 2007 |