getdns Functions
PHP Manual

php_getdns_get_version_number

(PECL getdns >= 0.10.0)

php_getdns_get_version_numberGet the getdns runtime library version information in number format.

Description

int php_getdns_get_version_number ( void )

This function returns the runtime getdns library version information in number format. Note that this will give you the version of the library that you're currently linked against, not the version of the headers used to compile the library. Compile-time information can be found using the phpinfo() function once the getdns extension has been loaded by PHP. The version information should be consistent for reliable operation.

Parameters

This function has no parameters.

Return Values

This function returns a 32-bit integer representation of the runtime getdns library version information. The format uses the three high-order bytes to represent the major, minor, and patch level parts of the runtime version number. The low-order byte is unused. For example, version "0.3.0" has a numeric representation of 0x00030000.


getdns Functions
PHP Manual