PHP 4.0 Bug #6516 Updated: chop() fails clearing whitespace at end of string

From: Date: Wed, 06 Sep 2000 17:06:10 +0000
Subject: PHP 4.0 Bug #6516 Updated: chop() fails clearing whitespace at end of string
Groups: php.dev 
Request: Send a blank email to php-dev+get-32410@lists.php.net to get a copy of this message
ID: 6516 Updated by: stas Reported By: dpfender@innova.net Status: Feedback Bug Type: *General Issues Assigned To: Comments: Could you please provide short script that reproduces wrong behaviour? Previous Comments: [2000-09-05 23:02:53] dpfender@innova.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-03 13:25:16] dpfender@innova.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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6516

« previous php.dev (#32410) next »