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

Pull Requests

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
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=d7e95883ecc0c7e859cd1890d50e23bd295577ad
Log: Fix bug #75318: The parameter of UConverter::getAliases() is not optional
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC