Bug #72297 [NEW]: PHP 7.0.5 (cli) (built: Mar 29 2016 18:07:10) ( NTS ) . Not listed in dropdown
| From: | levaconline at gmail dot com | Date: | Mon, 30 May 2016 22:43:10 +0000 |
| Subject: | Bug #72297 [NEW]: PHP 7.0.5 (cli) (built: Mar 29 2016 18:07:10) ( NTS ) . Not listed in dropdown | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-201355@lists.php.net to get a copy of this message | ||
From: levaconline at gmail dot com
Operating system: Arch linux
PHP version: 7.0Git-2016-05-30 (snap)
Package: Strings related
Bug Type: Bug
Bug description:PHP 7.0.5 (cli) (built: Mar 29 2016 18:07:10) ( NTS ) . Not listed in dropdown
Description:
------------
---
From manual page: http://www.php.net/function.trim
---
This looks like bug in trim function:
------------------------------------------
$name = "File_Manager_Remote.en";
$name = trim($name, '.en');
echo $name;
------------------------------------------
Result: File_Manager_Remot
Expected result is: File_Manager_Remote
Trim removes one more unexpected character.
Test script:
---------------
$name = "File_Manager_Remote.en";
$name = trim($name, '.en');
echo $name;
--
Edit bug report at https://bugs.php.net/bug.php?id=72297&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72297&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72297&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72297&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72297&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72297&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72297&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72297&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72297&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72297&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72297&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72297&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72297&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72297&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72297&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72297&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72297&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72297&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72297&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72297&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72297&r=mysqlcfg