|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13070 chop/rtrim don't whack null bytes as advertised
Submitted: 2001-08-30 21:42 UTC Modified: 2001-08-31 14:10 UTC
From: scott at incursio dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: scott at incursio dot com
New email:
PHP Version: OS:


 [2001-08-30 21:42 UTC] scott at incursio dot com
trim() seems to work, but rtrim/chop don't appear to kill a null at the end of a string variable.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-31 14:10 UTC]
This seems to work with me (4.0.7):




Please see for support questions, and only resubmit if they can't find the problem...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 25 16:01:29 2024 UTC