OPENSSL_ERROR_STRING(3) 1 OPENSSL_ERROR_STRING(3)
openssl_error_string - Return openSSL error message
SYNOPSIS
string openssl_error_string (void )
DESCRIPTION
openssl_error_string(3) returns the last error from the openSSL library. Error messages are queued, so this function should be called mul-
tiple times to collect all of the information. The last error will be the most recent one.
RETURN VALUES
Returns an error message string, or FALSE if there are no more error messages to return.
EXAMPLES
Example #1
openssl_error_string(3) example
<?php
// lets assume you just called an openssl function that failed
while ($msg = openssl_error_string())
echo $msg . "<br />
";
?>
PHP Documentation Group OPENSSL_ERROR_STRING(3)