From:             ddrplayer at foxmail dot com
Operating system: Linux
PHP version:      5.2CVS-2008-09-12 (snap)
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  trim could not work as expected

Description:
------------
hi ,
first of all
sorry for my bad english

but trim could not work as expected
i run the program in 5.14,5.25 ,it could not work as expected.


Reproduce code:
---------------
<?php
$stringendingtag='<ending>';
$s='hello world <abc><ending>';
echo trim($s,'<ending>');
?>

Expected result:
----------------
hello world <abc>


Actual result:
--------------
hello world <abc

-- 
Edit bug report at http://bugs.php.net/?id=46061&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46061&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46061&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46061&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46061&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46061&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46061&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46061&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46061&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46061&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46061&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46061&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46061&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46061&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46061&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46061&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46061&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46061&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46061&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46061&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46061&r=mysqlcfg

Reply via email to