C# Class Pchp.Library.Miscellaneous

Mostrar archivo Open project: iolevel/peachpie

Public Methods

Method Description
extension_loaded ( string name ) : bool

Find out whether an extension is loaded.

get_loaded_extensions ( bool zend_extensions = false ) : PhpArray

Returns an array with names of all loaded native extensions.

phpversion ( string extension = null ) : string
version_compare ( string version1, string version2, string op ) : bool

Compares two "PHP-standardized" version number strings.

version_compare ( string version1, string version2 ) : int

Compares two "PHP-standardized" version number strings.

Private Methods

Method Description
CompareParts ( string part1, string part2 ) : int

Compares parts of varsions delimited by '.'.

VersionToArray ( string version ) : string[]

Parses a version and splits it into an array of parts.

Non-alphanumeric characters are eliminated. The version is split in between a digit following a non-digit and by characters '.', '-', '+', '_'.

get_extension_funcs ( string extension ) : PhpArray

Method Details

extension_loaded() public static method

Find out whether an extension is loaded.
public static extension_loaded ( string name ) : bool
name string The extension name.
return bool

get_loaded_extensions() public static method

Returns an array with names of all loaded native extensions.
public static get_loaded_extensions ( bool zend_extensions = false ) : PhpArray
zend_extensions bool Only return Zend extensions.
return Pchp.Core.PhpArray

phpversion() public static method

public static phpversion ( string extension = null ) : string
extension string
return string

version_compare() public static method

Compares two "PHP-standardized" version number strings.
public static version_compare ( string version1, string version2, string op ) : bool
version1 string
version2 string
op string
return bool

version_compare() public static method

Compares two "PHP-standardized" version number strings.
public static version_compare ( string version1, string version2 ) : int
version1 string
version2 string
return int