php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30624 mysqli_connect() returns object instead of resource
Submitted: 2004-10-30 19:19 UTC Modified: 2004-10-30 19:36 UTC
From: mike@php.net Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.0.2 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike@php.net
New email:
PHP Version: OS:

 

 [2004-10-30 19:19 UTC] mike@php.net
Description:
------------
The procedural function mysqli_connect() returns a MySQLi object instead of an link identifier.

Reproduce code:
---------------
php5 -r "var_dump(mysqli_connect('localhost','root',''));"



Expected result:
----------------
resource (#N) of type mysqli

Actual result:
--------------
object(mysqli)#1 (0) {
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-30 19:25 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is exactly what it does, no bug here.
 [2004-10-30 19:32 UTC] mike@php.net
Ah, Derick fast as usual; 
/me just wanted to bogussify that, too... 

sorry
 [2004-10-30 19:36 UTC] georg@php.net
the mailer is too slow! +bogus from me too! 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Mar 25 19:01:29 2025 UTC