ID: 44731 Updated by: [EMAIL PROTECTED] Reported By: info at sd dot idv dot tw -Status: Open +Status: Feedback Bug Type: PDO related Operating System: FREEBSD 7.0 R PHP Version: 5.2.5 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2008-04-15 08:45:57] info at sd dot idv dot tw Description: ------------ I use Cgi MOD. When i enable the extension "extension=pdo_oci.so" I can't mysql_connect connect to another server only can connect to localhost. AND whene i disable the extension "#extension=pdo_oci.so" mysql_connect work good! why? Reproduce code: --------------- <? $link = mysql_pconnect('59.102.103:3306', 'root', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> Expected result: ---------------- <b>Warning</b>: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on '59.102.103' (0) in <b>/var/rrd/aa.php</b> on line <b>2</b><br /> Could not connect: Can't connect to MySQL server on '59.102.103' (0) Actual result: -------------- Connected successfully ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44731&edit=1