Bug #81695 [NEW]: substring issue
| From: | felipeg at hemodynamics dot cl | Date: | Fri, 03 Dec 2021 16:00:50 +0000 |
| Subject: | Bug #81695 [NEW]: substring issue | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238144@lists.php.net to get a copy of this message | ||
From: felipeg at hemodynamics dot cl
Operating system: linux, macos
PHP version: 7.3.33
Package: *Unicode Issues
Bug Type: Bug
Bug description:substring issue
Description:
------------
---
From manual page: https://php.net/function.substr
---
I tested this problem on linux server, macOs and debian 9.9.
it looks like when substr evaluate "ñó", php translate as ?> and shows
no output.
Test script:
---------------
echo substr("Diagnóstico: Infección del muñón, infracondilea
izquierda\n", 0, 34);
echo substr("Diagnóstico: Infección del muñón, infracondilea
izquierda\n", 0, 34);
Expected result:
----------------
Diagnóstico: Infección del muñ?Diagnóstico: Infección del
muñ?Diagnóstico: Infección del muñ?Diagnóstico: Infección del
muñ?
Actual result:
--------------
Diagnóstico: Infección del muñ?Diagnóstico: Infección del muñ?
--
Edit bug report at https://bugs.php.net/bug.php?id=81695&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81695&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81695&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81695&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81695&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81695&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81695&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81695&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81695&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81695&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81695&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81695&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81695&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81695&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81695&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81695&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81695&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81695&r=mysqlcfg