[PHP-DEV] Bug #13070 Updated: chop/rtrim don't whack null bytes as advertised From: jeroen <email protected>
Date: 08/31/01

ID: 13070
Updated by: jeroen
Reported By: scott <email protected>
Old Status: Open
Status: Bogus
Bug Type: Strings related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

This seems to work with me (4.0.7):

<?php

var_dump(trim("abc\0"));
var_dump(rtrim("abc\0"));

?>

Please see www.php.net/support.php for support questions, and only resubmit if they can't find the problem...

Previous Comments:
------------------------------------------------------------------------

[2001-08-30 21:42:48] scott <email protected>

trim() seems to work, but rtrim/chop don't appear to kill a null at the end of a string variable.

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=13070&edit=1

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>