Edit report at https://bugs.php.net/bug.php?id=76950&edit=1
ID: 76950
Updated by: requinix@php.net
Reported by: tobias at tromm dot no-ip dot org
Summary: rtrim not working
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Windows Server 2016
PHP Version: 7.2.10
Block user comment: N
Private report: N
New Comment:
If you have a repro script then include it in the report. Don't link us a .zip to download and
open.
Previous Comments:
------------------------------------------------------------------------
[2018-09-29 20:36:23] tobias at tromm dot no-ip dot org
Description:
------------
Hi.
The function rtrim is not working correctly if user uses ASCII table to cheat the system.
Please check the full example I am given with some fix [probably there is a better way to fix it,
but, it is working].
Test script:
---------------
https://www.papinho.com/PHP_bug.zip
Expected result:
----------------
Result String: "David"
This is the result with my fix script.
Actual result:
--------------
Given String: " David "
Given String with the use of php trim function: " David "
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76950&edit=1