1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/standard/tests/strings/gh12151.phpt
2024-09-13 15:07:26 +01:00

17 lines
282 B
PHP

--TEST--
GH-12151 (str_getcsv ending with escape zero segfualt)
--FILE--
<?php
var_export(str_getcsv("y",",","y","\000"));
echo "\n";
var_export(str_getcsv("\0yy","y","y","\0"));
?>
--EXPECT--
array (
0 => '' . "\0" . '',
)
array (
0 => '' . "\0" . '',
1 => '' . "\0" . '',
)