Doc #75339 [Ver->Csd]: IntlChar::chr - typo in the output example
| From: | cmb@php.net | Date: | Mon, 09 Oct 2017 14:11:22 +0000 |
| Subject: | Doc #75339 [Ver->Csd]: IntlChar::chr - typo in the output example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15063@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75339&edit=1
ID: 75339
Updated by: cmb@php.net
Reported by: fabien dot villepinte at gmail dot com
Summary: IntlChar::chr - typo in the output example
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: intl
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2017-10-09 14:10:42] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=343219
Log: Fix #75339: IntlChar::chr - typo in the output example
------------------------------------------------------------------------
[2017-10-08 15:55:10] fabien dot villepinte at gmail dot com
Description:
------------
http://php.net/manual/en/intlchar.chr.php
There is a typo in the output example.
The 2nd line should be 'string(1) "?"' instead of 'string(1)
"A"'.
https://3v4l.org/ggakS
Test script:
---------------
<?php
$values = ["A", 63, 123, 9731];
foreach ($values as $value) {
var_dump(IntlChar::chr($value));
}
Expected result:
----------------
string(1) "A"
string(1) "?"
string(1) "{"
string(3) "â"
Actual result:
--------------
string(1) "A"
string(1) "A"
string(1) "{"
string(3) "â"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75339&edit=1