note 44660 added to function.openssl-error-string
| From: | greg at gregmaclellan dot com | Date: | Thu, 12 Aug 2004 11:44:24 +0000 |
| Subject: | note 44660 added to function.openssl-error-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74532@lists.php.net to get a copy of this message | ||
Becareful when using this function to check errors, as it seems to read from a buffer of errors,
which could include errors from another script or process that was using openssl functions. (I was
surprised to find it returing error messages before I had called any openssl_* functions)
To clear the errors, you can do:
while ($err = openssl_error_string());
before using openssl functions. I'm not totally sure of the effect this will have on other
threads though, maybe someone can clairify.
----
Manual Page -- http://www.php.net/manual/en/function.openssl-error-string.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44660
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44660&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44660&report=yes
Search -- http://master.php.net/manage/user-notes.php