[php-src] Issue #11982: str_getcsv returns null byte for unterminated quoted string

From: Date: Tue, 15 Aug 2023 15:43:38 +0000
Subject: [php-src] Issue #11982: str_getcsv returns null byte for unterminated quoted string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245191@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11982 Author: apeschar ### Description The following code: ```php <?php echo json_encode(str_getcsv("\"")); ``` Resulted in this output: ``` ["\u0000"] ``` But I expected this output instead: ``` [""] ``` https://3v4l.org/TI1vo ### PHP Version PHP 8.2.9 ### Operating System _No response_

« previous php.bugs (#245191) next »