PEAR logo

PHP_CompatInfo : The Definitive Guide

Name

PHP_CompatInfo::parseDir — Parse a directory recursively for its Compatibility info

Synopsis

    require_once 'PHP/CompatInfo.php';
   
array PHP_CompatInfo::parseDir( $dir,  
  $options = array());  
string   $dir;
array   $options = array();

Description

This package is not documented yet.

Parameter

string $dir

Path of folder to parse

array $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.

Throws

throws no exceptions thrown

See

see PHP_CompatInfo::parseFolder

see PHP_CompatInfo::_fileList()

Since

Release 0.8.0 (2004-04-22)

Note

This function can not be called statically.

PHP_CompatInfo : The Definitive Guide v 1.5.1 : November 19, 2007