/php-src/ext/standard/ |
H A D | basic_functions.stub.php | 2580 function str_getcsv(string $string, string $separator = ",", string $enclosure = "\"", string $esca… 2886 function fputcsv($stream, array $fields, string $separator = ",", string $enclosure = "\"", string … 2893 function fgetcsv($stream, ?int $length = null, string $separator = ",", string $enclosure = "\"", s…
|
H A D | basic_functions_arginfo.h | 1020 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enclosure, IS_STRING, 0, "\"\\\"\"") 1331 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enclosure, IS_STRING, 0, "\"\\\"\"") 1340 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enclosure, IS_STRING, 0, "\"\\\"\"")
|
H A D | file.c | 1734 enclosure = *enclosure_str; in PHP_FUNCTION() 1776 FPUTCSV_FLD_CHK(enclosure) || in php_fputcsv() 1787 smart_str_appendc(&csvline, enclosure); in php_fputcsv() 1791 } else if (!escaped && *ch == enclosure) { in php_fputcsv() 1792 smart_str_appendc(&csvline, enclosure); in php_fputcsv() 1799 smart_str_appendc(&csvline, enclosure); in php_fputcsv() 1874 enclosure = enclosure_str[0]; in PHP_FUNCTION() 1968 if (*tmp == enclosure && tmp < limit) { in php_fgetcsv() 1980 if (inc_len != 0 && *bptr == enclosure) { in php_fgetcsv() 2073 if (*bptr != enclosure) { in php_fgetcsv() [all …]
|
/php-src/ext/spl/ |
H A D | spl_directory.c | 379 intern->u.file.enclosure = '"'; in spl_filesystem_file_open() 689 stmp[0] = intern->u.file.enclosure; in spl_filesystem_object_get_debug_info() 2304 char delimiter = intern->u.file.delimiter, enclosure = intern->u.file.enclosure; in PHP_METHOD() local 2327 enclosure = enclo[0]; in PHP_METHOD() 2351 char delimiter = intern->u.file.delimiter, enclosure = intern->u.file.enclosure; in PHP_METHOD() local 2375 enclosure = enclo[0]; in PHP_METHOD() 2401 char delimiter = ',', enclosure = '"'; in PHP_METHOD() local 2422 enclosure = enclo[0]; in PHP_METHOD() 2437 intern->u.file.enclosure = enclosure; in PHP_METHOD() 2456 enclosure[0] = intern->u.file.enclosure; in PHP_METHOD() [all …]
|
H A D | spl_directory_arginfo.h | 186 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enclosure, IS_STRING, 0, "\"\\\"\"") 193 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enclosure, IS_STRING, 0, "\"\\\"\"") 200 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enclosure, IS_STRING, 0, "\"\\\"\"")
|
H A D | spl_directory.stub.php | 253 …public function fgetcsv(string $separator = ",", string $enclosure = "\"", string $escape = "\\"):… argument 256 …public function fputcsv(array $fields, string $separator = ",", string $enclosure = "\"", string $… argument 259 …public function setCsvControl(string $separator = ",", string $enclosure = "\"", string $escape = … argument
|
H A D | spl_directory.h | 85 char enclosure; member
|
/php-src/ext/standard/tests/file/ |
H A D | fgetcsv_variation33.phpt | 2 fgetcsv() with unterminated enclosure at the end of file
|
H A D | fputcsv_variation1.phpt | 10 1st element is delimiter, 2nd element is enclosure 49 $enclosure = $csv_list[1]; 53 var_dump( fputcsv($file_handle, $csv_field, $delimiter, $enclosure) );
|
H A D | fputcsv_variation10.phpt | 10 1st element is delimiter, 2nd element is enclosure
|
H A D | fputcsv_variation11.phpt | 2 Test fputcsv() : usage variations - with default enclosure value 5 /* Testing fputcsv() to write to a file when default enclosure value is provided */ 7 echo "*** Testing fputcsv() : with default enclosure value ***\n"; 10 1st element is delimiter, 2nd element is enclosure 49 $enclosure = $csv_list[1]; 71 *** Testing fputcsv() : with default enclosure value ***
|
H A D | fputcsv_variation12.phpt | 2 Test fputcsv() : usage variations - with default enclosure and different delimiter 5 /* Testing fputcsv() to write to a file when default enclosure value and delimiter value 8 echo "*** Testing fputcsv() : with default enclosure and different delimiter value ***\n"; 11 1st element is delimiter, 2nd element is enclosure 50 $enclosure = $csv_list[1]; 72 *** Testing fputcsv() : with default enclosure and different delimiter value ***
|
H A D | fputcsv_variation13.phpt | 2 Test fputcsv() : usage variations - with enclosure of two chars 11 1st element is delimiter, 2nd element is enclosure 50 $enclosure = $csv_list[1]; 79 fputcsv(): Argument #4 ($enclosure) must be a single character 85 fputcsv(): Argument #4 ($enclosure) must be a single character 91 fputcsv(): Argument #4 ($enclosure) must be a single character 97 fputcsv(): Argument #4 ($enclosure) must be a single character 103 fputcsv(): Argument #4 ($enclosure) must be a single character 109 fputcsv(): Argument #4 ($enclosure) must be a single character 115 fputcsv(): Argument #4 ($enclosure) must be a single character [all …]
|
H A D | fputcsv_variation5.phpt | 10 1st element is delimiter, 2nd element is enclosure 49 $enclosure = $csv_list[1];
|
H A D | fputcsv_variation6.phpt | 2 Test fputcsv() : usage variations - with different delimiter and enclosure 10 echo "*** Testing fputcsv() : with different delimiter and enclosure ***\n"; 13 1st element is delimiter, 2nd element is enclosure 52 $enclosure = $csv_list[1]; 74 *** Testing fputcsv() : with different delimiter and enclosure ***
|
H A D | fputcsv_variation7.phpt | 2 Test fputcsv() : usage variations - with different delimiter and same enclosure 6 Testing fputcsv() to write to a file when enclosure is same but delimiter is different from those 10 echo "*** Testing fputcsv() : with different delimiter and same enclosure ***\n"; 13 1st element is delimiter, 2nd element is enclosure 52 $enclosure = $csv_list[1]; 56 var_dump( fputcsv($file_handle, $csv_field, '+', $enclosure) ); 74 *** Testing fputcsv() : with different delimiter and same enclosure ***
|
H A D | fputcsv_variation8.phpt | 2 Test fputcsv() : usage variations - with same delimiter and different enclosure 6 Testing fputcsv() to write to a file when delimiter is same but enclosure is different from those 10 echo "*** Testing fputcsv() : with same delimiter and different enclosure ***\n"; 13 1st element is delimiter, 2nd element is enclosure 52 $enclosure = $csv_list[1]; 74 *** Testing fputcsv() : with same delimiter and different enclosure ***
|
H A D | fputcsv_variation9.phpt | 2 Test fputcsv() : usage variations - two chars as enclosure & delimiter 5 /* Testing fputcsv() to write to a file when delimiter and enclosure are of two chars each */ 7 echo "*** Testing fputcsv() : with two chars as enclosure & delimiter ***\n"; 10 1st element is delimiter, 2nd element is enclosure 49 $enclosure = $csv_list[1]; 75 *** Testing fputcsv() : with two chars as enclosure & delimiter ***
|
H A D | fgetcsv_variation31.phpt | 2 Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file 7 and fgetcsv() provided with enclosure argument 10 echo "*** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file ***\n"; 85 *** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file ***
|
H A D | fgetcsv_variation6.phpt | 13 1st element is delimiter, 2nd element is enclosure 49 $enclosure = $csv_list[1]; 74 var_dump( fgetcsv($file_handle, 9, $delimiter, $enclosure) ); 79 var_dump( fgetcsv($file_handle, 1024, $delimiter, $enclosure) );
|
H A D | fgetcsv_variation7.phpt | 14 1st element is delimiter, 2nd element is enclosure 50 $enclosure = $csv_list[1];
|
H A D | fgetcsv_variation8.phpt | 2 Test fgetcsv() : usage variations - with different delimiter and enclosure 7 enclosure that are not present in the line read by fgetcsv() 10 echo "*** Testing fgetcsv() : with different delimiter and enclosure ***\n"; 13 1st element is delimiter, 2nd element is enclosure 49 $enclosure = $csv_list[1]; 73 // use different delimiter and enclosure than existing in file 92 *** Testing fgetcsv() : with different delimiter and enclosure ***
|
H A D | fgetcsv_variation9.phpt | 2 Test fgetcsv() : usage variations - with different delimiter but same enclosure 14 echo "*** Testing fgetcsv() : with different delimiter but same enclosure ***\n"; 17 1st element is delimiter, 2nd element is enclosure 53 $enclosure = $csv_list[1]; 76 // use different delimiter but same enclosure char 79 var_dump( fgetcsv($file_handle, 1024, $del, $enclosure) ); 94 *** Testing fgetcsv() : with different delimiter but same enclosure ***
|
/php-src/ext/standard/tests/ |
H A D | oss_fuzz_57392.phpt | 2 oss-fuzz #57392: Buffer-overflow in php_fgetcsv() with \0 delimiter and enclosure
|
/php-src/ext/standard/tests/strings/ |
H A D | str_getcsv_001.phpt | 6 // string input[, string delimiter[, string enclosure[, string escape]]]
|