#30624 [Opn->Bgs]: mysqli_connect() returns object instead of resource

From: Date: Sat, 30 Oct 2004 17:25:18 +0000
Subject: #30624 [Opn->Bgs]: mysqli_connect() returns object instead of resource
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68502@lists.php.net to get a copy of this message
ID: 30624 Updated by: derick@php.net Reported By: mike@php.net -Status: Open +Status: Bogus Bug Type: MySQLi related Operating System: Windows 2000 PHP Version: 5.0.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#68502) next »