php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75318 The parameter of UConverter::getAliases() is not optional
Submitted: 2017-10-05 13:41 UTC Modified: 2017-10-06 14:13 UTC
From: fabien dot villepinte at gmail dot com Assigned: cmb (profile)
Status: Closed Package: intl (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2017-10-05 13:41 UTC] fabien dot villepinte at gmail dot com
Description:
------------
According the documentation ( http://php.net/manual/en/uconverter.getaliases.php ) the parameter $name of UConverter::getAliases() is optional, but we get a warning if we call this method with no parameter ( https://3v4l.org/ERNFW ).

The parameter should be documented as mandatory.

Test script:
---------------
<?php
var_dump(UConverter::getAliases());

Actual result:
--------------
Warning: UConverter::getAliases() expects exactly 1 parameter, 0 given in /in/ERNFW on line 2
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-06 14:05 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2017-10-06 14:05 UTC] cmb@php.net
Not only the documentation is wrong, but also the reflection, see
<https://3v4l.org/7Bm7N>.
 [2017-10-06 14:13 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=343201
Log: Fix bug #75318: The parameter of UConverter::getAliases() is not optional
 [2017-10-06 14:13 UTC] cmb@php.net
-Type: Documentation Problem +Type: Bug
 [2017-10-06 15:25 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ec3d864784aa14187ca20a7644ee78c813d8b744
Log: Fixed bug #75318 (The parameter of UConverter::getAliases() is not optional)
 [2017-10-06 15:25 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC