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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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 May 19 02:01:35 2024 UTC