Bug #13070 Updated: chop/rtrim don't whack null bytes as advertised

From: Date: Fri, 31 Aug 2001 18:10:14 +0000
Subject: Bug #13070 Updated: chop/rtrim don't whack null bytes as advertised
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64857@lists.php.net to get a copy of this message
ID: 13070 Updated by: jeroen Reported By: scott@incursio.com 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@incursio.com 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

« previous php.dev (#64857) next »