ID: 31301
User updated by: aitrus at tresgeek dot net
Reported By: aitrus at tresgeek dot net
Status: Open
Bug Type: Strings related
-Operating System: RHEL 3 (u4)
+Operating System: Linux
PHP Version: 4.3.10
New Comment:
updated OS
Previous Comments:
------------------------------------------------------------------------
[2004-12-26 07:36:57] aitrus at tresgeek dot net
Description:
------------
When passed a string variable with a single space as its contents,
trim() returns a variable with a single space as its contents.
Reproduce code:
---------------
$foo = " ";
$foo = trim( $foo );
echo "x{$foo}x";
--
output is: 'x x'
Expected result:
----------------
trim() should return a empty string (or false).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31301&edit=1