#23064 [NEW]: don't connect to mysql

From: Date: Sat, 05 Apr 2003 21:21:12 +0000
Subject: #23064 [NEW]: don't connect to mysql
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37187@lists.php.net to get a copy of this message
From: jelzio at hotmail dot com Operating system: linux PHP version: 4.3.0 PHP Bug Type: MySQL related Bug description: don't connect to mysql ******this is error******** Warning: Wrong parameter count for mysql_connect() in .../class/adodb/drivers/adodb-mysql.inc.php on line 190 *****this is the script that I use ****** include 'class/adodb.php' $db = ADONewConnection('mysql'); /*here*/$db->Connect($db_host, $db_user, $db_password, $db_name) Then I opened to the file adodb-mysql.inc.php to review it and if you see the error happens in 190 line of adodb v3.00 and 211 line in adodb v3.31, as they are equal in both cases only you I show it once. function _connect($argHostname, $argUsername, $argPassword, $argDatabasename) { global $ADODB_PHPVER; if ($ADODB_PHPVER >= 0x4300) $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword, /*in this line it happens the error */$this->forceNewConnect,$this->clientFlags); I have PHP 4.3.0 and MySQL 3.23.37 -- Edit bug report at http://bugs.php.net/?id=23064&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23064&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23064&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23064&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23064&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23064&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23064&r=support Expected behavior: http://bugs.php.net/fix.php?id=23064&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23064&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23064&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23064&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23064&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23064&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23064&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23064&r=gnused

« previous php.bugs (#37187) next »