Bug #76950 [Fbk->Opn]: trim not working

From: Date: Sat, 29 Sep 2018 20:48:47 +0000
Subject: Bug #76950 [Fbk->Opn]: trim not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217297@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76950&edit=1 ID: 76950 User updated by: tobias at tromm dot no-ip dot org Reported by: tobias at tromm dot no-ip dot org -Summary: rtrim not working +Summary: trim not working -Status: Feedback +Status: Open Type: Bug Package: *General Issues Operating System: Windows Server 2016 PHP Version: 7.2.10 Block user comment: N Private report: N New Comment: fix title Previous Comments: ------------------------------------------------------------------------ [2018-09-29 20:46:52] requinix@php.net If you have a repro script then include it in the report. Don't link us a .zip to download and open. ------------------------------------------------------------------------ [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

« previous php.bugs (#217297) next »