php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6516 chop() fails clearing whitespace at end of string
Submitted: 2000-09-03 13:25 UTC Modified: 2000-10-02 23:12 UTC
From: dpfender at innova dot net Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Windows 2000 Pro
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: dpfender at innova dot net
New email:
PHP Version: OS:

 

 [2000-09-03 13:25 UTC] dpfender at innova dot net
When a text file has a Carriage Return/Line Feed character sequence at the end of each line, the chop() function only discards the Line Feed character and retains the Carriage Return character as a blank.  This should be treated as whitespace and also be removed from the end.
Using chop() in a Windows environment means programming my own version of chop() to compensate for this problem.
I have a zip file with examples but this report seems to have no facility to provide an attachment

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-05 23:02 UTC] dpfender at innova dot net
After changing PHP from the .DLL version to the .EXE, some problems have disappeared, including chop(), trim(), exec() and system() functions.

It might help with bug reports to indicate which type of PHP was being used when the problem occurred.
 [2000-09-06 13:06 UTC] stas@php.net
Could you please provide short script that reproduces wrong behaviour?
 [2000-10-02 23:12 UTC] sniper@php.net
No feedback. I second that idea having the type of
php (GGI, ISAPI, DSO) mentioned in the bug reports..

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 05:01:30 2024 UTC