From:             [EMAIL PROTECTED]
Operating system: Linux RedHat 7.3
PHP version:      4.2.3
PHP Bug Type:     Strings related
Bug description:  Trim function doesn't work at all

My Os is Linux Red Hat 7.3. Web Server is Zeus 4.1r3.
I compiled php with fastcgi.

i tried in several way but i noticed that in every case trim function
doesn't work at all.

This is a little piece of code:
<?php
// $user_data['unitHospital'] == "Osp. San Giovanni"
$fileNameCleaned = trim($user_data['unitHospital']);
print($fileNameCleaned); 
?>

Result
Osp. San Giovanni

OR directly

<?php
$tmp = trim("dd ff  hhkkk");
print($tmp);
?>

Result:
dd ff  hhkkk

The same result with 'rtrim' -- 'ltrim' and with a direct specification of
charlist.

Thanks


-- 
Edit bug report at http://bugs.php.net/?id=20283&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20283&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20283&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20283&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20283&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20283&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20283&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20283&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20283&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20283&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20283&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20283&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20283&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20283&r=isapi

Reply via email to