Doc #74441 [Opn->Nab]: Documentation differs from reflection
| From: | vrana@php.net | Date: | Mon, 29 Jan 2018 23:25:44 +0000 |
| Subject: | Doc #74441 [Opn->Nab]: Documentation differs from reflection | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15388@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74441&edit=1
ID: 74441
Updated by: vrana@php.net
Reported by: bruce dot ingalls at gmail dot com
Summary: Documentation differs from reflection
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: geoip
PHP Version: 7.0.18
Block user comment: N
Private report: N
New Comment:
Reflection is wrong. The function fails without the parameter which is what PHP Manual documents.
Previous Comments:
------------------------------------------------------------------------
[2017-04-14 14:50:43] bruce dot ingalls at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.geoip-country-code-by-name
---
Claims that a $hostname parameter is required, but reflection disagrees
Test script:
---------------
php --rf geoip_country_code_by_name
// No parameters
Expected result:
----------------
I expect reflection to require or allow a parameter,
Actual result:
--------------
Function [ <internal:geoip> function geoip_country_code_by_name ] {
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74441&edit=1