Bug #78457 [NEW]: str_getcsv parses the CSV error

From: 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

« previous php.bugs (#222411) next »