PEAR logo

PHP_CompatInfo : The Definitive Guide

Name

PHP_CompatInfo::parseFile — Parse a file for its Compatibility info

Synopsis

      require_once 'PHP/CompatInfo.php';
     
Array PHP_CompatInfo::parseFile( $file,  
  $options = array());  
string   $file;
array   $options = array();

Description

This package is not documented yet.

Parameter

string $file

Path of File to parse

array $options

An array of options where:

  • '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_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

Note

since 0.7.0

This function can not be called statically.

PHP_CompatInfo : The Definitive Guide v 1.4.0 : September 27, 2006