Lines Matching refs:buf

1014 	char *buf = NULL;  in PHP_FUNCTION()  local
1030 buf = php_stream_get_line(stream, NULL, 0, &line_len); in PHP_FUNCTION()
1031 if (buf == NULL) { in PHP_FUNCTION()
1035 RETVAL_STRINGL(buf, line_len); in PHP_FUNCTION()
1036 efree(buf); in PHP_FUNCTION()
1065 char buf[2]; in PHP_FUNCTION() local
1080 buf[0] = result; in PHP_FUNCTION()
1081 buf[1] = '\0'; in PHP_FUNCTION()
1083 RETURN_STRINGL(buf, 1); in PHP_FUNCTION()
1096 char *buf = NULL, *retval; in PHP_FUNCTION() local
1117 buf = safe_emalloc(sizeof(char), (len + 1), 0); in PHP_FUNCTION()
1119 memset(buf, 0, len + 1); in PHP_FUNCTION()
1122 if ((retval = php_stream_get_line(stream, buf, len, &actual_len)) == NULL) { in PHP_FUNCTION()
1123 if (buf != NULL) { in PHP_FUNCTION()
1124 efree(buf); in PHP_FUNCTION()
1145 char *buf, *format; in PHP_FUNCTION() local
1164 buf = php_stream_get_line((php_stream *) what, NULL, 0, &len); in PHP_FUNCTION()
1165 if (buf == NULL) { in PHP_FUNCTION()
1169 result = php_sscanf_internal(buf, format, argc, args, 0, return_value); in PHP_FUNCTION()
1171 efree(buf); in PHP_FUNCTION()
1993 char *buf; in PHP_FUNCTION() local
2067 if ((buf = php_stream_get_line(stream, NULL, 0, &buf_len)) == NULL) { in PHP_FUNCTION()
2071 buf = emalloc(len + 1); in PHP_FUNCTION()
2072 if (php_stream_get_line(stream, buf, len + 1, &buf_len) == NULL) { in PHP_FUNCTION()
2073 efree(buf); in PHP_FUNCTION()
2078 php_fgetcsv(stream, delimiter, enclosure, escape, buf_len, buf, return_value); in PHP_FUNCTION()
2082 …am, char delimiter, char enclosure, int escape_char, size_t buf_len, char *buf, zval *return_value… in php_fgetcsv() argument
2098 bptr = buf; in php_fgetcsv()
2099 tptr = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
2100 line_end_len = buf_len - (size_t)(tptr - buf); in php_fgetcsv()
2180 if ((size_t)temp_len > (size_t)(limit - buf)) { in php_fgetcsv()
2192 efree(buf); in php_fgetcsv()
2194 bptr = buf = new_buf; in php_fgetcsv()
2195 hunk_begin = buf; in php_fgetcsv()
2197 line_end = limit = (char *)php_fgetcsv_lookup_trailing_spaces(buf, buf_len, delimiter); in php_fgetcsv()
2198 line_end_len = buf_len - (size_t)(limit - buf); in php_fgetcsv()
2338 efree(buf); in php_fgetcsv()