php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47592 mysql_result() under-dcoumented
Submitted: 2009-03-07 17:51 UTC Modified: 2009-11-19 11:52 UTC
From: bruce at kaskubar dot com Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 32 = ?
Subscribe to this entry?

 
 [2009-03-07 17:51 UTC] bruce at kaskubar dot com
Description:
------------
The formal Note, "Calls to mysql_result() should not be mixed..." is interesting but not particularly helpful.

Expected result:
----------------
All behaviors related to function use should be documented. For instance, it seems that using mysql_result affects the result set row pointer such that a subsequent use of mysql_fetch_array does not begin where one may expect. Other behaviors may be involved. Once recorded as a bug (at http://bugs.php.net/bug.php?id=12023), the undocumented behaviors are apparently considered features.

Users of mysql_result should be warned that it includes undocumented behaviors. The Note's "should not" should be restated, emphatically, as an outright prohibition where quantifiable behavior is an expectation of its use.

Actual result:
--------------
Documentation unbecoming of serious understanding.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-19 11:52 UTC] vrana@php.net
Why the calls should not be mixed is internal PHP thing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 23:01:30 2024 UTC