From:             
Operating system: Any
PHP version:      5.3.8
Package:          MySQLi related
Bug Type:         Feature/Change Request
Bug description:Allow mysqli to connect to existing socket connection

Description:
------------
I would like a way to allow mysqli to connect to an existing socket
connection.

My use case:

I have a connection to a remote server over ssh. Using ssh2_tunnel() I can

create 
a socket stream to the mysql server.

Currently the only way to do this is use the ssh binary to create a
listening 
port 
on my local machine and point mysqli to that port. 

I prefer using ssh2 over a direct connection to mysqli because of security

reasons. This way I can keep mysql server to listen on localhost only. Also
I 
would get the added bonus of key-based authentication.

As I already use ssh2 extensively for filesystem changes on the remote
machine I 
already have the keys in place to do this.

>From what I've understood the mysqlnd extension already uses PHP steams 
internally, so this shouldn't be impossible.


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

Reply via email to