Home
last modified time | relevance | path

Searched refs:buffer (Results 226 – 250 of 321) sorted by relevance

12345678910>>...13

/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_driver.c215 stmt->execute_cmd_buffer.buffer = mnd_emalloc(stmt->execute_cmd_buffer.length); in MYSQLND_METHOD()
216 if (!stmt->execute_cmd_buffer.buffer) { in MYSQLND_METHOD()
H A Dmysqlnd_debug.c148 char * message_line, *buffer; in MYSQLND_METHOD() local
217 mnd_vsprintf(&buffer, 0, format, args); in MYSQLND_METHOD()
226 pipe_buffer, type? type:"", buffer); in MYSQLND_METHOD()
227 mnd_sprintf_free(buffer); in MYSQLND_METHOD()
H A Dmysqlnd_vio.c75 MYSQLND_METHOD(mysqlnd_vio, network_read)(MYSQLND_VIO * const vio, zend_uchar * const buffer, const… in MYSQLND_METHOD()
81 zend_uchar * p = buffer; in MYSQLND_METHOD()
104 MYSQLND_METHOD(mysqlnd_vio, network_write)(MYSQLND_VIO * const vio, const zend_uchar * const buffer in MYSQLND_METHOD()
110 ret = php_stream_write(vio->data->m.get_stream(vio), (char *)buffer, count); in MYSQLND_METHOD()
H A Dmysqlnd_commands.c33 zend_uchar buffer[2]; in MYSQLND_METHOD() local
37 int2store(buffer, (unsigned int) option); in MYSQLND_METHOD()
39 ret = send_command(conn->payload_decoder_factory, COM_SET_OPTION, buffer, sizeof(buffer), FALSE, in MYSQLND_METHOD()
/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_max_buffer_size.phpt27 /* buffer is only relevant with native PS */
H A Dpdo_mysql_get_attribute.phpt79 Maximum buffer size. Defaults to 1 MiB.
/PHP-8.0/ext/fileinfo/libmagic/
H A Dsoftmagic.c51 const struct buffer *, size_t, int, int, int, uint16_t *,
53 private int mget(struct magic_set *, struct magic *, const struct buffer *,
57 private int msetoffset(struct magic_set *, struct magic *, struct buffer *,
58 const struct buffer *, size_t, unsigned int);
121 file_softmagic(struct magic_set *ms, const struct buffer *b, in file_softmagic()
201 const struct buffer *b, size_t offset, int mode, int text, in match()
211 struct buffer bb; in match()
1495 msetoffset(struct magic_set *ms, struct magic *m, struct buffer *bb, in msetoffset()
1496 const struct buffer *b, size_t o, unsigned int cont_level) in msetoffset()
1545 mget(struct magic_set *ms, struct magic *m, const struct buffer *b, in mget()
[all …]
/PHP-8.0/ext/opcache/jit/dynasm/
H A Ddasm_arm.h344 int dasm_encode(Dst_DECL, void *buffer) in dasm_encode() argument
347 char *base = (char *)buffer; in dasm_encode()
348 unsigned int *cp = (unsigned int *)buffer; in dasm_encode()
H A Ddasm_arm64.h400 int dasm_encode(Dst_DECL, void *buffer) in dasm_encode() argument
403 char *base = (char *)buffer; in dasm_encode()
404 unsigned int *cp = (unsigned int *)buffer; in dasm_encode()
/PHP-8.0/ext/standard/tests/streams/
H A Dstream_get_line_nb.phpt39 var_dump(fread($sockets[1], strlen("incomplete line"))); // Returns buffer readden by stream_get_li…
/PHP-8.0/ext/ftp/
H A Dftp.c607 char *buffer; in ftp_chmod() local
614 buffer_len = spprintf(&buffer, 0, "CHMOD %o %s", mode, filename); in ftp_chmod()
616 if (!buffer) { in ftp_chmod()
620 if (!ftp_putcmd(ftp, "SITE", sizeof("SITE")-1, buffer, buffer_len)) { in ftp_chmod()
621 efree(buffer); in ftp_chmod()
625 efree(buffer); in ftp_chmod()
639 char buffer[64]; in ftp_alloc() local
646 buffer_len = snprintf(buffer, sizeof(buffer) - 1, ZEND_LONG_FMT, size); in ftp_alloc()
652 if (!ftp_putcmd(ftp, "ALLO", sizeof("ALLO")-1, buffer, buffer_len)) { in ftp_alloc()
/PHP-8.0/ext/gd/libgd/
H A Dgdft.c655 level = (bitmap.buffer[pc] * gdAlphaMax / (bitmap.num_grays - 1));
658 … level = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? gdAlphaTransparent : gdAlphaOpaque;
724 … tc_key.pixel = ((bitmap.buffer[pc] * NUMCOLORS) + bitmap.num_grays / 2) / (bitmap.num_grays - 1);
726 tc_key.pixel = ((bitmap.buffer[pc / 8] << (pc % 8)) & 128) ? NUMCOLORS : 0;
728 tc_key.pixel = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? NUMCOLORS : 0;
/PHP-8.0/main/streams/
H A Dphp_stream_filter_api.h115 php_stream_bucket_brigade buffer; member
/PHP-8.0/ext/exif/tests/
H A Dbug76557.phpt2 Bug 76557 (heap-buffer-overflow (READ of size 48) while reading exif data)
/PHP-8.0/main/
H A DSAPI.c228 SAPI_API size_t sapi_read_post_block(char *buffer, size_t buflen) in sapi_read_post_block() argument
236 read_bytes = sapi_module.read_post(buffer, buflen); in sapi_read_post_block()
265 char buffer[SAPI_POST_BLOCK_SIZE]; in SAPI_POST_READER_FUNC() local
267 read_bytes = sapi_read_post_block(buffer, SAPI_POST_BLOCK_SIZE); in SAPI_POST_READER_FUNC()
270 if (php_stream_write(SG(request_info).request_body, buffer, read_bytes) != read_bytes) { in SAPI_POST_READER_FUNC()
/PHP-8.0/ext/standard/
H A Dsha1.c193 ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); in PHP_SHA1Update()
194 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
205 ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], in PHP_SHA1Update()
H A Dbasic_functions.c602 char buffer[40]; in PHP_FUNCTION() local
617 if (!inet_ntop(af, address, buffer, sizeof(buffer))) { in PHP_FUNCTION()
621 RETURN_STRING(buffer); in PHP_FUNCTION()
633 char buffer[17]; in PHP_FUNCTION() local
639 memset(buffer, 0, sizeof(buffer)); in PHP_FUNCTION()
650 ret = inet_pton(af, address, buffer); in PHP_FUNCTION()
656 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16); in PHP_FUNCTION()
/PHP-8.0/docs/
H A Dstreams.md116 If you want to read the contents of a stream into an allocated memory buffer,
124 This function will set buf to the address of the buffer that it allocated, which
126 remaining on the stream if you set maxlen to `PHP_STREAM_COPY_ALL`. The buffer
247 itself, which holds some state information (and possibly a buffer) and a
297 * `bufsize` is the size of the buffer to use - if 0, then buffering at the
379 such as coping with a buffer size too small to hold the data,
/PHP-8.0/ext/oci8/tests/
H A Dbind_char_2.phpt7 // The bind buffer size edge cases seem to change each DB version.
H A Dbind_char_2_11gR1.phpt7 // The bind buffer size edge cases seem to change each DB version.
/PHP-8.0/ext/pcre/pcre2lib/
H A Dpcre2_substitute.c211 memcpy(buffer + buff_offset, from, CU2BYTES(length)); \
223 PCRE2_UCHAR *buffer, PCRE2_SIZE *blength) in pcre2_substitute() argument
312 scb.output = (PCRE2_SPTR)buffer; in pcre2_substitute()
/PHP-8.0/Zend/
H A Dzend_interfaces.c348 ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serial… in zend_user_serialize() argument
366 *buffer = (unsigned char*)estrndup(Z_STRVAL(retval), Z_STRLEN(retval)); in zend_user_serialize()
406 ZEND_API int zend_class_serialize_deny(zval *object, unsigned char **buffer, size_t *buf_len, zend_… in zend_class_serialize_deny() argument
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg.h307 char *buffer; /* buffer */ variable
H A Dphpdbg.c149 pg->buffer = NULL; in php_phpdbg_globals_ctor()
235 if (PHPDBG_G(buffer)) { in PHP_MSHUTDOWN_FUNCTION()
236 free(PHPDBG_G(buffer)); in PHP_MSHUTDOWN_FUNCTION()
237 PHPDBG_G(buffer) = NULL; in PHP_MSHUTDOWN_FUNCTION()
1144 char buffer[20] = {0}; in phpdbg_remote_init() local
1148 inet_ntop(AF_INET, &(((struct sockaddr_in *)&address)->sin_addr), buffer, sizeof(buffer)); in phpdbg_remote_init()
1150 phpdbg_rlog(fileno(stderr), "connection established from %s", buffer); in phpdbg_remote_init()
/PHP-8.0/ext/phar/
H A Dzip.c27 static inline void phar_write_32(char buffer[4], uint32_t value) in phar_write_32()
29 buffer[3] = (unsigned char) ((value & 0xff000000) >> 24); in phar_write_32()
30 buffer[2] = (unsigned char) ((value & 0xff0000) >> 16); in phar_write_32()
31 buffer[1] = (unsigned char) ((value & 0xff00) >> 8); in phar_write_32()
32 buffer[0] = (unsigned char) (value & 0xff); in phar_write_32()
34 static inline void phar_write_16(char buffer[2], uint32_t value) in phar_write_16()
36 buffer[1] = (unsigned char) ((value & 0xff00) >> 8); in phar_write_16()
37 buffer[0] = (unsigned char) (value & 0xff); in phar_write_16()

Completed in 88 milliseconds

12345678910>>...13