/PHP-7.3/ext/dom/ |
H A D | node.c | 1684 xmlOutputBufferPtr buf; in dom_canonicalization() local 1793 buf = xmlOutputBufferCreateFilename(file, NULL, 0); in dom_canonicalization() 1795 buf = xmlAllocOutputBuffer(NULL); in dom_canonicalization() 1798 if (buf != NULL) { in dom_canonicalization() 1800 with_comments, buf); in dom_canonicalization() 1813 if (buf == NULL || ret < 0) { in dom_canonicalization() 1818 ret = xmlOutputBufferGetSize(buf); in dom_canonicalization() 1820 ret = buf->buffer->use; in dom_canonicalization() 1826 RETVAL_STRINGL((char *) buf->buffer->content, ret); in dom_canonicalization() 1834 if (buf) { in dom_canonicalization() [all …]
|
/PHP-7.3/ext/standard/ |
H A D | crypt_sha256.c | 687 char buf[1000]; in main() local 714 memset(buf, 'a', sizeof(buf)); in main() 717 sha256_process_bytes (buf, sizeof (buf), &ctx); in main()
|
H A D | md5.c | 78 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 D | crypt_sha512.c | 753 char buf[1000]; in main() local 782 memset (buf, 'a', sizeof (buf)); in main() 785 sha512_process_bytes (buf, sizeof (buf), &ctx); in main()
|
H A D | sha1.c | 68 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()
|
/PHP-7.3/ext/phar/ |
H A D | dirstream.c | 93 static size_t phar_dir_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in phar_dir_read() argument 111 memset(buf, 0, sizeof(php_stream_dirent)); in phar_dir_read() 112 memcpy(((php_stream_dirent *) buf)->d_name, ZSTR_VAL(str_key), to_read); in phar_dir_read() 113 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0'; in phar_dir_read() 122 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in phar_dir_write() argument
|
/PHP-7.3/ext/mbstring/oniguruma/src/ |
H A D | regenc.h | 156 extern int onigenc_single_byte_code_to_mbc P_((OnigCodePoint code, UChar *buf)); 166 extern int onigenc_mb2_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf)); 171 extern int onigenc_mb4_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
|
H A D | regparse.c | 221 bbuf_init(BBuf* buf, int size) in bbuf_init() argument 225 buf->p = NULL; in bbuf_init() 232 buf->alloc = size; in bbuf_init() 233 buf->used = 0; in bbuf_init() 4006 crnl = node_new_str_crude(buf, buf + dlen + alen); in node_new_general_newline() 4593 UChar buf[WARN_BUFSIZE]; in CC_ESC_WARN() local 6799 bufend = buf; in parse_callout_args() 7886 csnode = onig_node_new_str(buf, buf + len); in i_apply_case_fold() 7893 r = onig_node_str_cat(ns[n-1], buf, buf + len); in i_apply_case_fold() 8044 *np = node_new_str_crude(buf, buf + len); in parse_exp() [all …]
|
/PHP-7.3/main/streams/ |
H A D | glob_wrapper.c | 138 static size_t php_glob_stream_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_glob_stream_read() argument 141 php_stream_dirent *ent = (php_stream_dirent*)buf; in php_glob_stream_read()
|
/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 471 if (ms->o.buf) { in file_ms_free() 472 efree(ms->o.buf); in file_ms_free() 495 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc() 2216 if (buf[0] != '\0') { in parse_extra() 2235 buf[len - 1] = '\0'; in parse_extra() 2244 buf[i] = '\0'; in parse_extra() 2941 map->p = buf; in apprentice_buf() 3219 char *buf; local 3248 return buf; 3250 efree(buf); [all …]
|
H A D | elfclass.h | 31 (void)memcpy(&elfhdr, buf, sizeof elfhdr);
|
/PHP-7.3/ext/bz2/ |
H A D | bz2.c | 136 static size_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() 163 static size_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count) in php_bz2iop_write() argument 174 just_wrote = BZ2_bzwrite(self->bz_file, (char*)buf, to_write); in php_bz2iop_write()
|
/PHP-7.3/ |
H A D | README.STREAMS | 27 PHPAPI size_t php_stream_read(php_stream * stream, char * buf, size_t count); 28 PHPAPI size_t php_stream_write(php_stream * stream, const char * buf, size_t 34 PHPAPI char *php_stream_gets(php_stream * stream, char *buf, size_t maxlen); 117 PHPAPI size_t php_stream_copy_to_mem(php_stream *src, char **buf, 120 This function will set buf to the address of the buffer that it allocated, 337 static size_t php_mysqlop_read(php_stream * stream, char * buf, size_t count) 341 if (buf == NULL && count == 0) { 350 /* pull out some data from the stream and put it in buf */ 353 and place that in the buf, but that brings in some complexities,
|
/PHP-7.3/ext/imap/ |
H A D | php_imap.c | 348 ZEND_ARG_INFO(0, buf) 352 ZEND_ARG_INFO(0, buf) 4466 RFC822BUFFER buf; in _php_rfc822_write_address() local 4468 buf.beg = address; in _php_rfc822_write_address() 4469 buf.cur = buf.beg; in _php_rfc822_write_address() 4470 buf.end = buf.beg + sizeof(address) - 1; in _php_rfc822_write_address() 4471 buf.s = &ret; in _php_rfc822_write_address() 4816 char buf[25]; in build_thread_tree() local 4961 free(buf); in php_mail_gets() 4962 buf = NULL; in php_mail_gets() [all …]
|
/PHP-7.3/Zend/ |
H A D | zend_multibyte.h | 25 …encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char *buf, size_t length);
|
H A D | zend_ini_scanner.l | 277 char *buf; in zend_ini_open_file_for_scanning() local 280 if (zend_stream_fixup(fh, &buf, &size) == FAILURE) { in zend_ini_open_file_for_scanning() 289 yy_scan_buffer(buf, (unsigned int)size); in zend_ini_open_file_for_scanning()
|
H A D | zend_operators.h | 844 static zend_always_inline char *zend_print_ulong_to_buf(char *buf, zend_ulong num) { in zend_print_ulong_to_buf() argument 845 *buf = '\0'; in zend_print_ulong_to_buf() 847 *--buf = (char) (num % 10) + '0'; in zend_print_ulong_to_buf() 850 return buf; in zend_print_ulong_to_buf() 854 static zend_always_inline char *zend_print_long_to_buf(char *buf, zend_long num) { in zend_print_long_to_buf() argument 856 char *result = zend_print_ulong_to_buf(buf, ~((zend_ulong) num) + 1); in zend_print_long_to_buf() 860 return zend_print_ulong_to_buf(buf, num); in zend_print_long_to_buf()
|
/PHP-7.3/ext/soap/ |
H A D | php_schema.c | 459 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") + buf + sizeof(buf) - 1 - 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") + buf + sizeof(buf) - 1 - res); in schema_union() 561 memcpy(str + sizeof("anonymous")-1, res, buf + sizeof(buf) - res); in schema_union() 1927 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_attribute() 1928 char *str = emalloc(sizeof("anonymous") + buf + sizeof(buf) - 1 - res); in schema_attribute() [all …]
|
/PHP-7.3/ext/spl/ |
H A D | spl_array.c | 1725 smart_str buf = {0}; in SPL_METHOD() local 1741 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD() 1742 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD() 1745 php_var_serialize(&buf, &intern->array, &var_hash); in SPL_METHOD() 1746 smart_str_appendc(&buf, ';'); in SPL_METHOD() 1750 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD() 1757 php_var_serialize(&buf, &members, &var_hash); /* finishes the string */ in SPL_METHOD() 1762 if (buf.s) { in SPL_METHOD() 1763 RETURN_NEW_STR(buf.s); in SPL_METHOD() 1777 char *buf; in SPL_METHOD() local [all …]
|
/PHP-7.3/ext/pgsql/ |
H A D | pgsql.c | 352 ZEND_ARG_INFO(0, buf) 1274 char buf[256]; in PHP_MINFO_FUNCTION() local 1292 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_persistent)); in PHP_MINFO_FUNCTION() 1294 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, PGG(num_links)); in PHP_MINFO_FUNCTION() 3534 zend_string *buf; local 3556 ZSTR_VAL(buf)[ZSTR_LEN(buf)] = '\0'; local 4538 start = buf; 6613 char buf[256]; local 6684 smart_str_appendl(&querystr, buf, snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val))); 6849 char buf[256]; local [all …]
|
/PHP-7.3/ext/zlib/ |
H A D | zlib.c | 373 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.3/sapi/fpm/fpm/ |
H A D | fpm_main.c | 321 char buf[SAPI_CGI_MAX_HEADER_LENGTH]; in sapi_cgi_send_headers() local 338 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line); in sapi_cgi_send_headers() 355 len = slprintf(buf, sizeof(buf), "Status:%s\r\n", s); in sapi_cgi_send_headers() 378 …len = slprintf(buf, sizeof(buf), "Status: %d %s\r\n", SG(sapi_headers).http_response_code, err->st… in sapi_cgi_send_headers() 380 len = slprintf(buf, sizeof(buf), "Status: %d\r\n", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers() 387 PHPWRITE_H(buf, len); in sapi_cgi_send_headers()
|
/PHP-7.3/main/ |
H A D | output.c | 58 …ic inline int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf); 889 …tic inline int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf) in php_output_handler_append() argument 891 if (buf->used) { in php_output_handler_append() 894 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append() 896 …size_t grow_buf = PHP_OUTPUT_HANDLER_INITBUF_SIZE(buf->used - (handler->buffer.size - handler->buf… in php_output_handler_append() 902 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append() 903 handler->buffer.used += buf->used; in php_output_handler_append()
|
/PHP-7.3/ext/mbstring/ |
H A D | php_mbregex.c | 167 char buf[32]; in PHP_MINFO_FUNCTION() local 170 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() 1698 char buf[16]; in PHP_FUNCTION() local 1713 _php_mb_regex_get_option_string(buf, sizeof(buf), opt, syntax); in PHP_FUNCTION() 1715 RETVAL_STRING(buf); in PHP_FUNCTION()
|
/PHP-7.3/ext/zip/lib/ |
H A D | zip_source_filep.c | 225 char *buf; in read_file() local 230 buf = (char *)data; in read_file() 309 if ((i=fread(buf, 1, (size_t)n, ctx->f)) == 0) { in read_file()
|