php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50076 Improvement for the documentation
Submitted: 2009-11-04 15:12 UTC Modified: 2009-11-13 17:11 UTC
From: iblanco at binovo dot es Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-11-04 15:12 UTC] iblanco at binovo dot es
Description:
------------
When the documentation talks about the return values there is a line like this:

return_value[i][j] = jth attribute in the ith entry in the result


Reproduce code:
---------------
---
From manual page: function.ldap-get-entries#Return Values
---

When the documentation talks about the return values there is a line like this:

return_value[i][j] = jth attribute in the ith entry in the result


That might be incorrectly interpreted as if that element had "the value" of the attribute. It should be made more clear that what it contains is "the name" of the attribute.


Expected result:
----------------
return_value[i][j] = NAME of the jth attribute in the ith entry in the result

Or even with an example:

$attributeName = $return_value[i][j] // name of the jth attribute in the ith entry in the result.
$firstAttributeValue = $return_value[i][$attributeName][0];


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-13 17:11 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290678
Log: return_value[i][j] holds name (bug #50076)
 [2009-11-13 17:11 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"return_value[i][j] = NAME of the jth attribute in the ith entry in the result"
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 19:00:01 2026 UTC