ID:               40588
 Updated by:       [EMAIL PROTECTED]
 Reported By:      frankpw at fw2s dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQLi related
 Operating System: Win XP Pro
 PHP Version:      5.2.1
 New Comment:

Cannot reproduce.
Make sure the client library is of the same version is the MySQL
server.


Previous Comments:
------------------------------------------------------------------------

[2007-02-22 04:45:41] frankpw at fw2s dot com

Description:
------------
In my class I'm opening a connection with mysqli_connect().
mysqli_connect_error() returns description of any error except one. If
one parameter is of wrong type (i.e port as string rather than
numeric). 

Reproduce code:
---------------
  public function OpenConnection($host, $user, $pass, $name = null,
$port = null, $sock = null, $chrs = null)
  {
    $this->mysqli = @mysqli_connect($host, $user, $pass, $name, $port,
$sock);
    if (empty($this->mysqli)) die ("Execution stopped! " .
mysqli_connect_error() . "<br />\n");
    if (!empty($chrs)) $this->DefaultCharacterSet($chrs);
  }


Expected result:
----------------
"Execution stopped! mysqli_connect expects parameter 5 to be long,
string given"

Actual result:
--------------
"Execution stopped!"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40588&edit=1

Reply via email to