#30624 [Bgs]: mysqli_connect() returns object instead of resource
| From: | mike@php.net | Date: | Sat, 30 Oct 2004 17:32:39 +0000 |
| Subject: | #30624 [Bgs]: mysqli_connect() returns object instead of resource | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68503@lists.php.net to get a copy of this message | ||
ID: 30624
User updated by: mike@php.net
Reported By: mike@php.net
Status: Bogus
Bug Type: MySQLi related
Operating System: Windows 2000
PHP Version: 5.0.2
New Comment:
Ah, Derick fast as usual;
/me just wanted to bogussify that, too...
sorry
Previous Comments:
------------------------------------------------------------------------
[2004-10-30 19:25:17] 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:19:22] 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) {
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30624&edit=1