1--TEST-- 2GH-11982 (str_getcsv returns null byte for unterminated quoted string) 3--FILE-- 4<?php 5var_dump(str_getcsv('"')); 6var_dump(str_getcsv('"field","')); 7var_dump(str_getcsv('"","a')); 8?> 9--EXPECT-- 10array(1) { 11 [0]=> 12 string(0) "" 13} 14array(2) { 15 [0]=> 16 string(5) "field" 17 [1]=> 18 string(0) "" 19} 20array(2) { 21 [0]=> 22 string(0) "" 23 [1]=> 24 string(1) "a" 25} 26 27