php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66697 Return type error in function.mysql-query
Submitted: 2014-02-12 07:43 UTC Modified: 2014-02-25 23:39 UTC
From: dereckson at espace-win dot org Assigned: philip (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dereckson at espace-win dot org
New email:
PHP Version: OS:

 

 [2014-02-12 07:43 UTC] 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.


Patches

mysql-query-returntype (last revision 2014-02-12 07:47 UTC by dereckson at espace-win dot org)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-25 23:38 UTC] 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-25 23:39 UTC] philip@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: philip
 [2014-02-25 23:39 UTC] philip@php.net
Good eye, and thank you for the bug report. This is now fixed in SVN.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 15:00:01 2026 UTC