From: petre dot rodan at avira dot com Operating system: linux PHP version: 4.3.6 PHP Bug Type: Feature/Change Request Bug description: mysql ssl connection
Description: ------------ I was tring to use SSL-enabled mysql connections using php and mod_php. The problem was that the libmysql library inside {,mod_}php detects that SSL is needed, but it doesn't know the location of the client certificate. by simply inserting the following line mysql_options(&mysql->conn,MYSQL_READ_DEFAULT_GROUP,"client"); before mysql_real_connect(..) in ext/mysql/php_mysql.c, the my.cnf file is read and all SSL-related configurations are imported from there. If my problem can be solved in another way, please drop me a line :). Successfuly tested with php-4.3.4-r4, mod_php-4.3.4-r4, mod_php-4.3.6-rc2, php-5.0_beta1-r1. see http://bugs.gentoo.org/show_bug.cgi?id=46340#c3 for scenario details the patch can be downloaded here: http://bugs.gentoo.org/attachment.cgi?id=28436&action=view -- Edit bug report at http://bugs.php.net/?id=28075&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28075&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28075&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28075&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28075&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28075&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28075&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28075&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28075&r=support Expected behavior: http://bugs.php.net/fix.php?id=28075&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28075&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28075&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28075&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28075&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28075&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28075&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28075&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28075&r=float