Class php_version

Description

Determines the minimum version and extensions required for a PHP script

Located in /php_version.php (line 35)


	
			
Variable Summary
 array $constants
 array $deprecated
 string $file
 array $functions
 array $modules
 array $variables
 string $version
Method Summary
 php_version php_version ([string $file = ''])
 string find_constant_module (string $constant)
 string find_function_module (string $function)
 void init ()
 string larger_version (string $a, string $b)
 void scan_code (string $code)
 void scan_file (string $file)
 void show_token (mixed $t)
 array trim_tokens (array $tokens)
Variables
array $builtin_modules (line 88)
  • var: builtin modules table
  • access: private
array $constants (line 50)
  • var: Constants found in file/code.
array $deprecated (line 94)
  • var: deprecated function table
  • access: private
string $file (line 40)
  • var: Last file read.
array $functions (line 45)
  • var: Functions found in file/code.
array $included_files (line 70)
  • var: Files included by file/code.
array $modules (line 60)
  • var: Modules required by file/code.
array $module_table (line 82)
  • var: module table
  • access: private
array $variables (line 55)
  • var: Variables found in file/code.
string $version (line 65)
  • var: PHP version required by file/code.
array $version_table (line 76)
  • var: version table
  • access: private
Methods
Constructor php_version (line 102)

Constructor

  • access: public
php_version php_version ([string $file = ''])
  • string $file: to scan
create_prereq_function (line 114)

Create a function that checks prerequisites

  • access: public
string create_prereq_function ()
find_constant_module (line 150)

Find the module for a constant

  • access: public
string find_constant_module (string $constant)
  • string $constant: to search for
find_function_module (line 135)

Find the module for a function

  • access: public
string find_function_module (string $function)
  • string $function: to search for
init (line 417)

Initialize version tables

  • access: private
void init ()
larger_version (line 391)

Return the larger version number

  • access: private
string larger_version (string $a, string $b)
  • string $a: version
  • string $b: version
scan_code (line 184)

Scan code for version and extensions

  • access: public
void scan_code (string $code)
  • string $code: to scan
scan_file (line 164)

Scan file for version and extensions

  • access: public
void scan_file (string $file)
  • string $file: to scan
show_token (line 404)

Show a token using token's name

  • access: private
void show_token (mixed $t)
  • mixed $t: token to show
trim_tokens (line 365)

Remove nonuseful tokens from the tokens array

  • access: private
array trim_tokens (array $tokens)
  • array $tokens: to trim

Documentation generated on Wed, 16 Nov 2005 12:44:48 -0700 by phpDocumentor 1.3.0RC3