note 116461 added to mysqli.quickstart.dual-interface

From: Date: Tue, 06 Jan 2015 23:37:00 +0000
Subject: note 116461 added to mysqli.quickstart.dual-interface
Groups: php.notes 
Request: Send a blank email to php-notes+get-201374@lists.php.net to get a copy of this message
Just want to add that both procedural mysqli_connect_errno and mysqli_connect_error DON'T accept any arguments! http://php.net/manual/de/mysqli.connect-errno.php http://php.net/manual/de/mysqli.connect-error.php "int mysqli_connect_errno ( void )" "string mysqli_connect_error ( void )" It clearly states "void" there. Adding the mysqli-Instance as a parameter makes it look like it pulls the error-number out of the provided instance, which is not actually happening. This could end in a hard to detect bug when connecting to multiple SQL servers. And it is confusing for beginners. ---- Server IP: 72.52.91.14 Probable Submitter: 185.7.19.99 ---- Manual Page -- http://php.net/manual/en/mysqli.quickstart.dual-interface.php Edit -- https://master.php.net/note/edit/116461 Del: integrated -- https://master.php.net/note/delete/116461/integrated Del: useless -- https://master.php.net/note/delete/116461/useless Del: bad code -- https://master.php.net/note/delete/116461/bad+code Del: spam -- https://master.php.net/note/delete/116461/spam Del: non-english -- https://master.php.net/note/delete/116461/non-english Del: in docs -- https://master.php.net/note/delete/116461/in+docs Del: other reasons-- https://master.php.net/note/delete/116461 Reject -- https://master.php.net/note/reject/116461 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201374) next »