php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63373 Mistake in documentation
Submitted: 2012-10-26 19:56 UTC Modified: 2012-11-06 05:36 UTC
From: djones109 at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS: Linux
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: djones109 at gmail dot com
New email:
PHP Version: OS:

 

 [2012-10-26 19:56 UTC] 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',
)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-06 05:35 UTC] 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-11-06 05:36 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2012-11-06 05:36 UTC] aharvey@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 05:00:01 2026 UTC