2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:26:23 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-error-string">
|
2007-06-11 23:31:04 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>openssl_error_string</refname>
|
|
|
|
<refpurpose>Return openSSL error message</refpurpose>
|
|
|
|
</refnamediv>
|
2007-06-11 23:31:38 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-06-11 23:31:04 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>string</type><methodname>openssl_error_string</methodname>
|
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>openssl_error_string</function> returns the last error from the
|
2011-09-12 17:09:58 +00:00
|
|
|
openSSL library. Error messages are queued, so this function should be
|
|
|
|
called multiple times to collect all of the information. The last error will
|
|
|
|
be the most recent one.
|
2007-06-11 23:31:04 +00:00
|
|
|
</para>
|
2007-06-11 23:31:38 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns an error message string, or &false; if there are no more error
|
|
|
|
messages to return.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-06-11 23:31:04 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>openssl_error_string</function> example</title>
|
|
|
|
<programlisting role="php">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![CDATA[
|
2003-03-22 19:00:37 +00:00
|
|
|
<?php
|
2002-04-15 00:12:54 +00:00
|
|
|
// lets assume you just called an openssl function that failed
|
2003-12-15 16:55:22 +00:00
|
|
|
while ($msg = openssl_error_string())
|
2002-04-15 00:12:54 +00:00
|
|
|
echo $msg . "<br />\n";
|
2003-03-22 19:00:37 +00:00
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
2007-06-11 23:31:04 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-06-11 23:31:38 +00:00
|
|
|
|
2007-06-11 23:31:04 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|