PEAR logo

PHP_CompatInfo : The Definitive Guide

Name

PHP_CompatInfo::parseString — Parse a string for its Compatibility info

Synopsis

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

Description

This package is not documented yet.

Parameter

string $string

PHP Code to parses

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

Since

Release 0.7.0 (2004-03-09)

Note

This function can not be called statically.

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