ID: 47935 Updated by: il...@php.net Reported By: patomas at hotmail dot com -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: Linux (Gentoo) PHP Version: 5.2.9 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 It logs in anonymously then, which in your case is apparently allowed. Previous Comments: ------------------------------------------------------------------------ [2009-04-09 11:00:54] patomas at hotmail dot com Description: ------------ Hi If you try to connect to a database with mysql_connect( false, false, false ), the connection fails, but the command still generates a resource. I think that false would be a more accurate response since it can not stablish a real connection. My php version is 5.2.8 but i couldn't choose it in the menu and I can't upgrade now. Reproduce code: --------------- var_dump( mysql_connect( false, false, false ) ); Expected result: ---------------- boolean false Actual result: -------------- resource(25, mysql link) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47935&edit=1