From: rly...@php.net Operating system: CentOS 2.6.18 PHP version: 5.4.17 Package: OpenSSL related Bug Type: Bug Bug description:openssl_error_string populated when no errors
Description: ------------ --- >From manual page: http://www.php.net/function.openssl-error-string#refsect1-function.openssl-error-string-returnvalues --- openssl_* functions can "work" (return TRUE for the bool ones, and return valid resources etc) BUT, the openssl_error_string() function will still have been populated. Test script: --------------- // You'll have to provide your own private key... $pkey = openssl_pkey_get_private($this->private_key); $this->openssl_check(); $linux = ''; openssl_pkey_export($pkey, $linux); $this->openssl_check(); function openssl_check () { // Xdebug isn't in production // And we don't want the logging in production // How conventient if (function_exists('xdebug_call_line')) { $errors = false; while ( ($s = openssl_error_string()) !== false ) { if (!$errors) { $errors = true; error_log('openssl_errors in '.__FILE__.': '.xdebug_call_line()); } error_log(" $s"); } return $errors; } } Expected result: ---------------- No output at all. Or at least something akin to INFO|WARNING|ERROR so I can filter out whatever these mean. PS You know these messages are completely incomprehensible, right? I know they come straight from openssl, but may a translation table, or URL to openssl bug codes or something... Actual result: -------------- A *lot* of each of these: error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0906D06C:PEM routines:PEM_read_bio:no start line -- Edit bug report at https://bugs.php.net/bug.php?id=65281&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65281&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65281&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65281&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65281&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65281&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65281&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65281&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65281&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65281&r=support Expected behavior: https://bugs.php.net/fix.php?id=65281&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65281&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65281&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65281&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65281&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65281&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65281&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65281&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65281&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65281&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65281&r=mysqlcfg