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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC