Doc #63373 [Opn->Csd]: Mistake in documentation
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 05:36:01 +0000 |
| Subject: | Doc #63373 [Opn->Csd]: Mistake in documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9064@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63373&edit=1
ID: 63373
Updated by: aharvey@php.net
Reported by: djones109 at gmail dot com
Summary: Mistake in documentation
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: *General Issues
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-11-06 05:35:35] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=328254
Log: Fix the return type for Gender::country(), add an example, tinker with some
English, and remove the unneeded svn:mime-type property.
Fixes doc bug #63373 (Mistake in documentation).
------------------------------------------------------------------------
[2012-10-26 19:56:47] djones109 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/gender-gender.country#refsect1-gender-
gender.country-returnvalues
---
Returns country name as string or false on failure.
It actually returns an array, not a string.
Test script:
---------------
$g = new Gender\Gender;
var_export($g->country(Gender\Gender::SPAIN));
Expected result:
----------------
"Spain"
Actual result:
--------------
array (
'country_short' => 'E',
'country' => 'Spain',
)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63373&edit=1