From: adam at trachtenberg dot com Operating system: * PHP version: 5CVS-2004-04-22 (dev) PHP Bug Type: MySQL related Bug description: mysql_ssl_set() broken
Description: ------------ The MySQLi mysqli_ssl_set() function is broken because it doesn't convert empty strings into NULLs, which is what the MySQL C client library function mysql_ssl_set() wants. This patch fixes this bug: http://www.trachtenberg.com/patches/mysql_ssl_set.txt Reproduce code: --------------- $db = mysqli_init(); mysqli_ssl_set($db, 'client-key.pem', 'client-cert.pem', 'cacert.pem', NULL, NULL); mysqli_real_connect($db, 'localhost', 'foo', 'bar', 'baz'); Expected result: ---------------- Sucessful connection. Actual result: -------------- PHP Warning: mysqli_real_connect(): SSL connection error -- Edit bug report at http://bugs.php.net/?id=28100&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28100&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28100&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28100&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28100&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28100&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28100&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28100&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28100&r=support Expected behavior: http://bugs.php.net/fix.php?id=28100&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28100&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28100&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28100&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28100&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28100&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28100&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28100&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28100&r=float