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

From: Date: Sat, 30 Oct 2004 17:36:52 +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-68505@lists.php.net to get a copy of this message
ID: 30624 Updated by: georg@php.net Reported By: mike@php.net Status: Bogus Bug Type: MySQLi related Operating System: Windows 2000 PHP Version: 5.0.2 New Comment: the mailer is too slow! +bogus from me too! Previous Comments: ------------------------------------------------------------------------ [2004-10-30 19:32:38] mike@php.net Ah, Derick fast as usual; /me just wanted to bogussify that, too... sorry ------------------------------------------------------------------------ [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

« previous php.bugs (#68505) next »