Date: 08/31/01
- Next message: sniper <email protected>: "[PHP-DEV] Bug #13077 Updated: $HTTP_SESSION_VARS not set with first call to session_start()"
- Previous message: schnitten <email protected>: "[PHP-DEV] Bug #10694 Updated: mktime leap year bug"
- In reply to: scott <email protected>: "[PHP-DEV] Bug #13070: chop/rtrim don't whack null bytes as advertised"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: sniper <email protected>: "[PHP-DEV] Bug #13077 Updated: $HTTP_SESSION_VARS not set with first call to session_start()"
- Previous message: schnitten <email protected>: "[PHP-DEV] Bug #10694 Updated: mktime leap year bug"
- In reply to: scott <email protected>: "[PHP-DEV] Bug #13070: chop/rtrim don't whack null bytes as advertised"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

