Doc #75339 [NEW]: IntlChar::chr - typo in the output example

From: Date: Sun, 08 Oct 2017 15:55:13 +0000
Subject: Doc #75339 [NEW]: IntlChar::chr - typo in the output example
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15058@lists.php.net to get a copy of this message
From: fabien dot villepinte at gmail dot com Operating system: PHP version: Irrelevant Package: intl Bug Type: Documentation Problem Bug description:IntlChar::chr - typo in the output example 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 bug report at https://bugs.php.net/bug.php?id=75339&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75339&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75339&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75339&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75339&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75339&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75339&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75339&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75339&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75339&r=support Expected behavior: https://bugs.php.net/fix.php?id=75339&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75339&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75339&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75339&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75339&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75339&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75339&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75339&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75339&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75339&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75339&r=mysqlcfg

« previous php.doc.bugs (#15058) next »