Bug #78457 [NEW]: str_getcsv parses the CSV error
| From: | baoguoxiao0538 at hotmail dot com | Date: | Mon, 26 Aug 2019 02:25:53 +0000 |
| Subject: | Bug #78457 [NEW]: str_getcsv parses the CSV error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222411@lists.php.net to get a copy of this message | ||
From: baoguoxiao0538 at hotmail dot com
Operating system: windows
PHP version: 7.3.8
Package: Strings related
Bug Type: Bug
Bug description:str_getcsv parses the CSV error
Description:
------------
The PHP execution code in the Linux environment is normal, but the
execution result in Windows is wrong
Test script:
---------------
var_export(str_getcsv('åºæ¶è´¦æ¬¾ä¸è´¦æ¥æ,客æ·åç§°,åè¯å·,æ
è¦,åæ¹æ¬å¸,è´·æ¹æ¬å¸,è´¦é¾åºé´,åºåºæ¥æ,忬¾ä¸è´¦æ¥æ,忬¾å¤©æ°'));
Expected result:
----------------
array (
0 => 'åºæ¶è´¦æ¬¾ä¸è´¦æ¥æ',
1 => '客æ·åç§°',
2 => 'åè¯å·',
3 => 'æ è¦',
4 => 'åæ¹æ¬å¸',
5 => 'è´·æ¹æ¬å¸',
6 => 'è´¦é¾åºé´',
7 => 'åºåºæ¥æ',
8 => '忬¾ä¸è´¦æ¥æ',
9 => '忬¾å¤©æ°',
)
Actual result:
--------------
array (
0 => 'åºæ¶è´¦æ¬¾ä¸è´¦æ¥æ',
1 => '客æ·åç§°',
2 => 'åè¯å·,æ è¦,åæ¹æ¬å¸',
3 => 'è´·æ¹æ¬å¸',
4 => 'è´¦é¾åºé´',
5 => 'åºåºæ¥æ',
6 => '忬¾ä¸è´¦æ¥æ',
7 => '忬¾å¤©æ°',
)
--
Edit bug report at https://bugs.php.net/bug.php?id=78457&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78457&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78457&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78457&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78457&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78457&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78457&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78457&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78457&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78457&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78457&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78457&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78457&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78457&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78457&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78457&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78457&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78457&r=mysqlcfg