C# Class Pchp.Library.Miscellaneous

Afficher le fichier Open project: iolevel/peachpie

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

get_loaded_extensions() public static méthode

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.
Résultat Pchp.Core.PhpArray

phpversion() public static méthode

public static phpversion ( string extension = null ) : string
extension string
Résultat string

version_compare() public static méthode

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

version_compare() public static méthode

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