Doc #66697 [Opn->Csd]: Return type error in function.mysql-query

From: Date: Tue, 25 Feb 2014 23:39:28 +0000
Subject: Doc #66697 [Opn->Csd]: Return type error in function.mysql-query
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11021@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66697&edit=1 ID: 66697 Updated by: philip@php.net Reported by: dereckson at espace-win dot org Summary: Return type error in function.mysql-query -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: philip Block user comment: N Private report: N New Comment: Good eye, and thank you for the bug report. This is now fixed in SVN. Previous Comments: ------------------------------------------------------------------------ [2014-02-25 23:38:09] philip@php.net Automatic comment from SVN on behalf of philip Revision: http://svn.php.net/viewvc/?view=revision&revision=332891 Log: mysql_query() return is mixed, as the statement type determines whether resource or boolean is returned. Reported by PHP Bug #66697 ------------------------------------------------------------------------ [2014-02-12 07:43:16] dereckson at espace-win dot org Description: ------------ --- From manual page: http://www.php.net/function.mysql-query --- resource mysql_query ( string $query [, resource $link_identifier = NULL ] ) should be: mixed mysql_query ( string $query [, resource $link_identifier = NULL ] ) It could return boolean values too. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66697&edit=1

« previous php.doc.bugs (#11021) next »