[TASK] Update the comment of stdWrap_char to include ASCII limitation 06/48306/3
authorElmar Hinz <t3elmar@gmail.com>
Fri, 27 May 2016 07:03:53 +0000 (09:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 27 May 2016 09:31:16 +0000 (11:31 +0200)
The PHP char() function only works reliably with ASCII codes
independent of the actual char set.

See http://php.net/manual/en/function.chr.php

Releases: master
Resolves: #76315
Change-Id: Ia87b95239fc4678f297571704f031003f84a5759
Reviewed-on: https://review.typo3.org/48306
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index 107552f..2ec93fd 100644 (file)
@@ -2620,8 +2620,11 @@ class ContentObjectRenderer
 
     /**
      * char
-     * Will return a character based on its position within the current character set
+     * Returns a one-character string containing the character specified by ascii code.
      *
+     * Reliable results only for character codes in the integer range 0 - 127.
+     *
+     * @see http://php.net/manual/en/function.chr.php
      * @param string $content Input value undergoing processing in this function.
      * @param array $conf stdWrap properties for char.
      * @return string The processed input value