1--TEST--
2GH-12151 (str_getcsv ending with escape zero segfualt)
3--FILE--
4<?php
5var_export(str_getcsv("y","","y","\000"));
6var_export(str_getcsv("\0yy","y","y","\0"));
7?>
8--EXPECT--
9array (
10 0 => '' . "\0" . '',
11)array (
12 0 => '' . "\0" . '',
13 1 => '' . "\0" . '',
14)
15