From:             thalashir at gmail dot com
Operating system: windows xp
PHP version:      5.3.0
PHP Bug Type:     MySQLi related
Bug description:  method not found ssl_set

Description:
------------
When I try to connect to a Mysql database using SSL and mysqli, it says
that the method ssl_set don't exists. I used function
get_class_methods(mysqli) and is not listed. I checked mysql support,
mysqli support and openssl support with phpinfo and they are all
supported.

Here is the list returned from get_class_methods:
autocommit
change_user
character_set_name
client_encoding
close
commit
connect
dump_debug_info
debug
get_charset
get_client_info
get_connection_stats
get_server_info
get_warnings
init
kill
multi_query
mysqli
more_results
next_result
options
ping
prepare
query
real_connect
real_escape_string
poll
reap_async_query
escape_string
real_query
rollback
select_db
set_charset
set_opt
stat
stmt_init
store_result
thread_safe
use_result
refresh

Reproduce code:
---------------
$mysqli= mysqli_init();

if (!$mysqli) {
        die('mysqli_init failed');
}

$mysqli->ssl_set('path/to/key.pem','path/to/cert.pem','path/to/cacert.pem',null,null);

$mysqli_real_connect('1.2.3.4','ssluser','sslpassword','db',port,MYSQLI_CLIENT_SSL);

//queries

$mysqli->close();

Expected result:
----------------
A secure connection to mysql

Actual result:
--------------
Fatal error: Call to undefined method mysqli::ssl_set() in ...

-- 
Edit bug report at http://bugs.php.net/?id=49234&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49234&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49234&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49234&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49234&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49234&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49234&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49234&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49234&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49234&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49234&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49234&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49234&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49234&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49234&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49234&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49234&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49234&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49234&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49234&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49234&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49234&r=mysqlcfg

Reply via email to