International PHP Conference 2015

Version constants

OPENSSL_VERSION_TEXT (string)
OPENSSL_VERSION_NUMBER (integer)

Note:

These constants were added in 5.2.0.

add a note add a note

User Contributed Notes 1 note

up
1
sebastian.goendoer
15 days ago
<?php
echo "openssl version text: " . OPENSSL_VERSION_TEXT . "\n";
echo
"openssl version number:  " . OPENSSL_VERSION_NUMBER . "\n";
?>

will output something like:

    openssl version text: OpenSSL 1.0.2d 9 Jul 2015
    openssl version number:  268443727

see also: https://wiki.openssl.org/index.php/Manual:OPENSSL_VERSION_NUMBER(3)
To Top