/PHP-7.4/main/ |
H A D | spprintf.c | 818 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 D | output.c | 58 …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 D | dns_win32.c | 262 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 D | crypt_sha256.c | 683 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 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 | 749 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 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()
|
H A D | pack.c | 983 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 D | node.c | 1706 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 D | dirstream.c | 92 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 D | bz2.c | 136 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 D | apprentice.c | 478 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 D | elfclass.h | 31 (void)memcpy(&elfhdr, buf, sizeof elfhdr);
|
/PHP-7.4/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 | 278 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 D | oci_statement.c | 411 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 D | streams.md | 24 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 D | php_imap.c | 348 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 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")-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 D | php_xml.h | 33 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t size);
|
/PHP-7.4/ext/spl/ |
H A D | spl_array.c | 1662 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 D | pgsql.c | 346 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 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.4/sapi/fpm/fpm/ |
H A D | fpm_main.c | 314 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 D | php_mbregex.c | 174 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()
|