Home
last modified time | relevance | path

Searched refs:buf (Results 201 – 225 of 313) sorted by relevance

12345678910>>...13

/PHP-7.4/main/
H A Dspprintf.c818 PHPAPI void php_printf_to_smart_string(smart_string *buf, const char *format, va_list ap) /* {{{ */ in php_printf_to_smart_string() argument
820 xbuf_format_converter(buf, 1, format, ap); in php_printf_to_smart_string()
824 PHPAPI void php_printf_to_smart_str(smart_str *buf, const char *format, va_list ap) /* {{{ */ in php_printf_to_smart_str() argument
826 xbuf_format_converter(buf, 0, format, ap); in php_printf_to_smart_str()
H A Doutput.c58 …ic inline int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf);
882 …tic inline int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf) in php_output_handler_append() argument
884 if (buf->used) { in php_output_handler_append()
887 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append()
889 …size_t grow_buf = PHP_OUTPUT_HANDLER_INITBUF_SIZE(buf->used - (handler->buffer.size - handler->buf… in php_output_handler_append()
895 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append()
896 handler->buffer.used += buf->used; in php_output_handler_append()
/PHP-7.4/ext/standard/
H A Ddns_win32.c262 char buf[sizeof("AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA")]; in php_parserr() local
263 char *tp = buf; in php_parserr()
276 if (tp > (u_char *)buf) { in php_parserr()
304 add_assoc_string(subarray, "ipv6", buf); in php_parserr()
H A Dcrypt_sha256.c683 char buf[1000]; in main() local
710 memset(buf, 'a', sizeof(buf)); in main()
713 sha256_process_bytes (buf, sizeof (buf), &ctx); in main()
H A Dmd5.c78 unsigned char buf[1024]; in PHP_NAMED_FUNCTION() local
97 while ((n = php_stream_read(stream, (char*)buf, sizeof(buf))) > 0) { in PHP_NAMED_FUNCTION()
98 PHP_MD5Update(&context, buf, n); in PHP_NAMED_FUNCTION()
H A Dcrypt_sha512.c749 char buf[1000]; in main() local
778 memset (buf, 'a', sizeof (buf)); in main()
781 sha512_process_bytes (buf, sizeof (buf), &ctx); in main()
H A Dsha1.c68 unsigned char buf[1024]; in PHP_FUNCTION() local
87 while ((n = php_stream_read(stream, (char *) buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
88 PHP_SHA1Update(&context, buf, n); in PHP_FUNCTION()
H A Dpack.c983 zend_string *buf; in PHP_FUNCTION() local
995 buf = zend_string_alloc(len, 0); in PHP_FUNCTION()
1006 ZSTR_VAL(buf)[opos] = cc; in PHP_FUNCTION() local
1015 ZSTR_VAL(buf)[len] = '\0'; in PHP_FUNCTION() local
1016 add_assoc_str(return_value, n, buf); in PHP_FUNCTION()
/PHP-7.4/ext/dom/
H A Dnode.c1706 xmlOutputBufferPtr buf; in dom_canonicalization() local
1816 buf = xmlOutputBufferCreateFilename(file, NULL, 0); in dom_canonicalization()
1818 buf = xmlAllocOutputBuffer(NULL); in dom_canonicalization()
1821 if (buf != NULL) { in dom_canonicalization()
1823 with_comments, buf); in dom_canonicalization()
1836 if (buf == NULL || ret < 0) { in dom_canonicalization()
1841 ret = xmlOutputBufferGetSize(buf); in dom_canonicalization()
1843 ret = buf->buffer->use; in dom_canonicalization()
1849 RETVAL_STRINGL((char *) buf->buffer->content, ret); in dom_canonicalization()
1857 if (buf) { in dom_canonicalization()
[all …]
/PHP-7.4/ext/phar/
H A Ddirstream.c92 static ssize_t phar_dir_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in phar_dir_read() argument
110 memset(buf, 0, sizeof(php_stream_dirent)); in phar_dir_read()
111 memcpy(((php_stream_dirent *) buf)->d_name, ZSTR_VAL(str_key), to_read); in phar_dir_read()
112 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0'; in phar_dir_read()
121 static ssize_t phar_dir_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in phar_dir_write() argument
/PHP-7.4/ext/bz2/
H A Dbz2.c136 static ssize_t php_bz2iop_read(php_stream *stream, char *buf, size_t count) in php_bz2iop_read() argument
146 just_read = BZ2_bzread(self->bz_file, buf, to_read); in php_bz2iop_read()
166 static ssize_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count) in php_bz2iop_write() argument
176 just_wrote = BZ2_bzwrite(self->bz_file, (char*)buf, to_write); in php_bz2iop_write()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c478 if (ms->o.buf) { in file_ms_free()
479 efree(ms->o.buf); in file_ms_free()
502 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
2239 if (buf[0] != '\0') { in parse_extra()
2258 buf[len - 1] = '\0'; in parse_extra()
2267 buf[i] = '\0'; in parse_extra()
2965 map->p = buf;
3245 char *buf; local
3274 return buf;
3276 efree(buf);
[all …]
H A Delfclass.h31 (void)memcpy(&elfhdr, buf, sizeof elfhdr);
/PHP-7.4/Zend/
H A Dzend_multibyte.h25 …encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char *buf, size_t length);
H A Dzend_ini_scanner.l278 char *buf; in zend_ini_open_file_for_scanning() local
281 if (zend_stream_fixup(fh, &buf, &size) == FAILURE) { in zend_ini_open_file_for_scanning()
290 yy_scan_buffer(buf, (unsigned int)size); in zend_ini_open_file_for_scanning()
/PHP-7.4/ext/pdo_oci/
H A Doci_statement.c411 char buf[8192]; in oci_stmt_param_hook() local
412 n = php_stream_read(stm, buf, sizeof(buf)); in oci_stmt_param_hook()
416 consume = buf; in oci_stmt_param_hook()
637 static ssize_t oci_blob_write(php_stream *stream, const char *buf, size_t count) in oci_blob_write() argument
645 &amt, self->offset, (char*)buf, (ub4) count, in oci_blob_write()
657 static size_t oci_blob_read(php_stream *stream, char *buf, size_t count) in oci_blob_read() argument
665 &amt, self->offset, buf, (ub4) count, in oci_blob_read()
/PHP-7.4/docs/
H A Dstreams.md24 PHPAPI size_t php_stream_read(php_stream * stream, char * buf, size_t count);
25 PHPAPI size_t php_stream_write(php_stream * stream, const char * buf, size_t
31 PHPAPI char *php_stream_gets(php_stream * stream, char *buf, size_t maxlen);
120 PHPAPI size_t php_stream_copy_to_mem(php_stream *src, char **buf,
124 This function will set buf to the address of the buffer that it allocated, which
362 static size_t php_mysqlop_read(php_stream * stream, char * buf, size_t count)
366 if (buf == NULL && count == 0) {
375 /* pull out some data from the stream and put it in buf */
378 and place that in the buf, but that brings in some complexities,
/PHP-7.4/ext/imap/
H A Dphp_imap.c348 ZEND_ARG_INFO(0, buf)
352 ZEND_ARG_INFO(0, buf)
4485 RFC822BUFFER buf; in _php_rfc822_write_address() local
4487 buf.beg = address; in _php_rfc822_write_address()
4488 buf.cur = buf.beg; in _php_rfc822_write_address()
4489 buf.end = buf.beg + sizeof(address) - 1; in _php_rfc822_write_address()
4490 buf.s = &ret; in _php_rfc822_write_address()
4835 char buf[25]; in build_thread_tree() local
4980 free(buf); in php_mail_gets()
4981 buf = NULL; in php_mail_gets()
[all …]
/PHP-7.4/ext/soap/
H A Dphp_schema.c459 char buf[MAX_LENGTH_OF_LONG + 1]; in schema_list() local
460 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_list()
461 char *str = emalloc(sizeof("anonymous")-1 + (buf + sizeof(buf) - res)); in schema_list()
464 memcpy(str + sizeof("anonymous")-1, res, buf + sizeof(buf) - res); in schema_list()
556 char buf[MAX_LENGTH_OF_LONG + 1]; in schema_union() local
557 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_union()
558 char *str = emalloc(sizeof("anonymous")-1 + (buf + sizeof(buf) - res)); in schema_union()
561 memcpy(str + sizeof("anonymous")-1, res, buf + sizeof(buf) - res); in schema_union()
1928 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_attribute()
1929 char *str = emalloc(sizeof("anonymous")-1 + (buf + sizeof(buf) - res)); in schema_attribute()
[all …]
H A Dphp_xml.h33 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t size);
/PHP-7.4/ext/spl/
H A Dspl_array.c1662 smart_str buf = {0}; in SPL_METHOD() local
1673 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD()
1674 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD()
1677 php_var_serialize(&buf, &intern->array, &var_hash); in SPL_METHOD()
1678 smart_str_appendc(&buf, ';'); in SPL_METHOD()
1682 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD()
1689 php_var_serialize(&buf, &members, &var_hash); /* finishes the string */ in SPL_METHOD()
1694 if (buf.s) { in SPL_METHOD()
1695 RETURN_NEW_STR(buf.s); in SPL_METHOD()
1709 char *buf; in SPL_METHOD() local
[all …]
/PHP-7.4/ext/pgsql/
H A Dpgsql.c346 ZEND_ARG_INFO(0, buf)
1268 char buf[256]; in PHP_MINFO_FUNCTION() local
1286 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_persistent)); in PHP_MINFO_FUNCTION()
1288 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_links)); in PHP_MINFO_FUNCTION()
3533 zend_string *buf; local
3555 ZSTR_VAL(buf)[ZSTR_LEN(buf)] = '\0'; local
4539 start = buf;
6605 char buf[256]; local
6676 smart_str_appendl(&querystr, buf, snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val)));
6841 char buf[256]; local
[all …]
/PHP-7.4/ext/zlib/
H A Dzlib.c373 static inline int php_zlib_inflate_rounds(z_stream *Z, size_t max, char **buf, size_t *len) in php_zlib_inflate_rounds() argument
378 *buf = NULL; in php_zlib_inflate_rounds()
407 *buf = buffer.data; in php_zlib_inflate_rounds()
566 char buf[8192] = {0}; in PHP_FUNCTION() local
591 memset(buf, 0, sizeof(buf)); in PHP_FUNCTION()
593 while (php_stream_gets(stream, buf, sizeof(buf) - 1) != NULL) { in PHP_FUNCTION()
594 add_index_string(return_value, i++, buf); in PHP_FUNCTION()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c314 char buf[SAPI_CGI_MAX_HEADER_LENGTH]; in sapi_cgi_send_headers() local
331 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s", SG(sapi_headers).http_status_line); in sapi_cgi_send_headers()
348 len = slprintf(buf, sizeof(buf), "Status:%s", s); in sapi_cgi_send_headers()
371 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->str); in sapi_cgi_send_headers()
373 len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers()
380 PHPWRITE_H(buf, len); in sapi_cgi_send_headers()
/PHP-7.4/ext/mbstring/
H A Dphp_mbregex.c174 char buf[32]; in PHP_MINFO_FUNCTION() local
177 snprintf(buf, sizeof(buf), "%d.%d.%d", in PHP_MINFO_FUNCTION()
181 php_info_print_table_row(2, "Multibyte regex (oniguruma) version", buf); in PHP_MINFO_FUNCTION()
1712 char buf[16]; in PHP_FUNCTION() local
1727 _php_mb_regex_get_option_string(buf, sizeof(buf), opt, syntax); in PHP_FUNCTION()
1729 RETVAL_STRING(buf); in PHP_FUNCTION()

Completed in 159 milliseconds

12345678910>>...13