Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/PHP-8.2/ext/mysqlnd/
H A Dmysqlnd_read_buffer.c28 return buffer->len? FALSE:TRUE; in mysqlnd_read_buffer_is_empty()
37 if (buffer->len >= count) { in mysqlnd_read_buffer_read()
38 memcpy(dest, buffer->data + buffer->offset, count); in mysqlnd_read_buffer_read()
39 buffer->offset += count; in mysqlnd_read_buffer_read()
40 buffer->len -= count; in mysqlnd_read_buffer_read()
50 return buffer->len; in mysqlnd_read_buffer_bytes_left()
57 mysqlnd_read_buffer_free(MYSQLND_READ_BUFFER ** buffer) in mysqlnd_read_buffer_free() argument
60 if (*buffer) { in mysqlnd_read_buffer_free()
61 mnd_efree((*buffer)->data); in mysqlnd_read_buffer_free()
62 mnd_efree(*buffer); in mysqlnd_read_buffer_free()
[all …]
/PHP-8.2/ext/pcre/pcre2lib/
H A Dpcre2_ord2utf.c59 PRIV(ord2utf)(uint32_t cvalue, PCRE2_UCHAR *buffer) in PRIV()
62 (void)(buffer); in PRIV()
81 PRIV(ord2utf)(uint32_t cvalue, PCRE2_UCHAR *buffer) in PRIV()
89 buffer += i; in PRIV()
92 *buffer-- = 0x80 | (cvalue & 0x3f); in PRIV()
95 *buffer = PRIV(utf8_table2)[i] | cvalue; in PRIV()
103 *buffer = (PCRE2_UCHAR)cvalue; in PRIV()
107 *buffer++ = 0xd800 | (cvalue >> 10); in PRIV()
108 *buffer = 0xdc00 | (cvalue & 0x3ff); in PRIV()
114 *buffer = (PCRE2_UCHAR)cvalue; in PRIV()
H A Dpcre2_error.c297 pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, PCRE2_SIZE size) in pcre2_get_error_message() argument
331 buffer[i] = 0; /* Terminate partial message */ in pcre2_get_error_message()
334 buffer[i] = *message++; in pcre2_get_error_message()
337 buffer[i] = 0; in pcre2_get_error_message()
/PHP-8.2/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c51 device->buffer = erealloc(device->buffer, initsz); in mbfl_memory_device_realloc()
59 if (device->buffer) { in mbfl_memory_device_clear()
60 efree(device->buffer); in mbfl_memory_device_clear()
62 device->buffer = NULL; in mbfl_memory_device_clear()
83 device->buffer = NULL; in mbfl_memory_device_result()
101 device->buffer = erealloc(device->buffer, newlen); in mbfl_memory_device_output()
126 device->buffer = erealloc(device->buffer, newlen); in mbfl_memory_device_strncat()
144 device->buffer = NULL; in mbfl_wchar_device_init()
152 if (device->buffer) { in mbfl_wchar_device_clear()
155 device->buffer = NULL; in mbfl_wchar_device_clear()
[all …]
/PHP-8.2/ext/hash/
H A Dhash_whirlpool.c44 unsigned char *buffer = context->buffer.data; in WhirlpoolTransform() local
49 for (i = 0; i < 8; i++, buffer += 8) { in WhirlpoolTransform()
278 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLUpdate() local
369 context->buffer.bits = bufferBits; in PHP_WHIRLPOOLUpdate()
370 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
376 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLFinal() local
379 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal()
438 && ctx->buffer.pos >= 0 in php_whirlpool_unserialize()
439 && ctx->buffer.pos < (int) sizeof(ctx->buffer.data) in php_whirlpool_unserialize()
440 && ctx->buffer.bits >= ctx->buffer.pos * 8 in php_whirlpool_unserialize()
[all …]
H A Dhash_tiger.c139 context->buffer[context->length++] = 0x1; in TigerFinalize()
148 memset(context->buffer, 0, 56); in TigerFinalize()
154 memcpy(&context->buffer[56], &context->passed, sizeof(uint64_t)); in TigerFinalize()
156 context->buffer[56] = (unsigned char) (context->passed & 0xff); in TigerFinalize()
197 memcpy(&context->buffer[context->length], input, len); in PHP_TIGERUpdate()
204 memcpy(&context->buffer[context->length], input, i); in PHP_TIGERUpdate()
206 ZEND_SECURE_ZERO(context->buffer, 64); in PHP_TIGERUpdate()
211 memcpy(context->buffer, &input[i], 64); in PHP_TIGERUpdate()
215 ZEND_SECURE_ZERO(&context->buffer[r], 64-r); in PHP_TIGERUpdate()
216 memcpy(context->buffer, &input[i], r); in PHP_TIGERUpdate()
[all …]
/PHP-8.2/ext/opcache/tests/jit/
H A Dbug81051.phpt13 public static function readUnsignedVarInt(string $buffer, int &$offset) : int{
21 private string $buffer;
24 public function __construct(string $buffer, int $offset = 0){
25 $this->buffer = $buffer;
30 return Binary::readUnsignedVarInt($this->buffer, $this->offset);
34 …return $len === 1 ? $this->buffer[$this->offset++] : substr($this->buffer, ($this->offset += $len)…
/PHP-8.2/ext/intl/idn/
H A Didn.c67 zend_string *buffer; in php_intl_idn_to_46() local
77 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46()
79 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46()
82 zend_string_efree(buffer); in php_intl_idn_to_46()
87 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46()
89 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46()
92 zend_string_efree(buffer); in php_intl_idn_to_46()
97 ZSTR_VAL(buffer)[len] = '\0'; in php_intl_idn_to_46() local
98 ZSTR_LEN(buffer) = len; in php_intl_idn_to_46()
101 RETVAL_STR_COPY(buffer); in php_intl_idn_to_46()
[all …]
/PHP-8.2/ext/standard/
H A Dformatted_print.c56 *buffer = zend_string_extend(*buffer, ZSTR_LEN(*buffer) << 1, 0); in php_sprintf_appendchar()
68 size_t nlen = ZSTR_LEN(*buffer); in php_sprintf_appendchars()
74 *buffer = zend_string_extend(*buffer, nlen, 0); in php_sprintf_appendchars()
97 *buffer, *pos, ZSTR_LEN(*buffer), add, min_width, padding, alignment)); in php_sprintf_appendstring()
115 *buffer = zend_string_extend(*buffer, size, 0); in php_sprintf_appendstring()
150 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appendint()
194 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appenduint()
236 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, fmt)); in php_sprintf_appenddouble()
334 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n()
362 i = (endptr - *buffer); in php_sprintf_getnumber()
[all …]
H A Dcrypt_sha256.c253 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
260 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
263 buffer = (const char *) buffer + add; in sha256_process_bytes()
278 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
279 buffer = (const char *) buffer + 64; in sha256_process_bytes()
283 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
292 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
297 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
560 buffer = NULL; in php_sha256_crypt_r()
591 return buffer; in php_sha256_crypt_r()
[all …]
H A Diptc.c307 unsigned char *buffer, recnum, dataset; in PHP_FUNCTION() local
316 buffer = (unsigned char *)str; in PHP_FUNCTION()
319 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION()
327 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION()
334 dataset = buffer[ inx++ ]; in PHP_FUNCTION()
335 recnum = buffer[ inx++ ]; in PHP_FUNCTION()
337 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION()
341 len = (((zend_long) buffer[ inx + 2 ]) << 24) + (((zend_long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
342 (((zend_long) buffer[ inx + 4 ]) << 8) + (((zend_long) buffer[ inx + 5 ])); in PHP_FUNCTION()
345 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
[all …]
H A Dcrypt_sha512.c280 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
288 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
292 buffer = (const char *) buffer + add; in sha512_process_bytes()
308 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
309 buffer = (const char *) buffer + 128; in sha512_process_bytes()
316 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
325 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
330 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
607 buffer = NULL; in php_sha512_crypt_r()
638 return buffer; in php_sha512_crypt_r()
[all …]
/PHP-8.2/tests/output/
H A Dob_start_basic_unerasable_005.phpt2 ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush()
13 echo "Attempt to flush unerasable buffer - should fail...";
15 // Check content of buffer after flush - if flush failed it should still contain the string above.
19 [callback:1]Attempt to flush unerasable buffer - should fail...
20 Notice: ob_flush(): Failed to flush buffer of callback (0) in %s on line 11
22 string(%d) "Attempt to flush unerasable buffer - should fail...
23 Notice: ob_flush(): Failed to flush buffer of callback (0) in %s on line 11
H A Dbug60768.phpt2 Bug #60768 Output buffer not discarded
8 ob_start(function($buffer) use (&$storage) { $storage .= $buffer; }, 20);
10 echo str_repeat("0", 20); // fill in the buffer
13 echo str_pad($i, 9, ' ', STR_PAD_LEFT) . "\n"; // full buffer dumped every time
H A Dob_start_basic_unerasable_003.phpt2 ob_start(): Ensure unerasable buffer cannot be accessed or erased by ob_get_clean().
13 echo "This call will obtain the content, but will not clean the buffer.";
18 [callback:1]This call will obtain the content, but will not clean the buffer.
19 Notice: ob_get_clean(): Failed to discard buffer of callback (0) in %s on line 11
21 Notice: ob_get_clean(): Failed to delete buffer of callback (0) in %s on line 11
22 string(65) "This call will obtain the content, but will not clean the buffer."
H A Dob_start_basic_unerasable_004.phpt2 ob_start(): Ensure unerasable buffer cannot be accessed or flushed by ob_get_flush().
13 echo "This call will obtain the content, but will not flush the buffer.";
18 [callback:1]This call will obtain the content, but will not flush the buffer.
19 Notice: ob_get_flush(): Failed to send buffer of callback (0) in %s on line 11
21 Notice: ob_get_flush(): Failed to delete buffer of callback (0) in %s on line 11
22 string(65) "This call will obtain the content, but will not flush the buffer."
H A Dbug46897.phpt13 echo "Attempt to flush unerasable buffer - should fail...";
15 // Check content of buffer after flush - if flush failed it should still contain the string above.
20 [callback:1]Attempt to flush unerasable buffer - should fail...
21 Notice: ob_flush(): Failed to flush buffer of callback (0) in %s on line %d
23 string(%d) "Attempt to flush unerasable buffer - should fail...
24 Notice: ob_flush(): Failed to flush buffer of callback (0) in %s on line %d
H A Dob_start_basic_unerasable_002.phpt2 ob_start(): Ensure unerasable buffer cannot be erased by ob_clean(), ob_end_clean() or ob_end_flush…
13 echo "All of the following calls will fail to clean/remove the topmost buffer:\n";
22 [callback:1]All of the following calls will fail to clean/remove the topmost buffer:
24 Notice: ob_clean(): Failed to delete buffer of callback (0) in %s on line 11
27 Notice: ob_end_clean(): Failed to discard buffer of callback (0) in %s on line 12
30 Notice: ob_end_flush(): Failed to send buffer of callback (0) in %s on line 13
/PHP-8.2/ext/date/lib/
H A Dparse_tz.c168 uint32_t buffer[6]; in read_32bit_header() local
170 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header()
205 if (!buffer) { in read_64bit_transitions()
211 buffer[i] = timelib_conv_int64_signed(buffer[i]); in read_64bit_transitions()
213 if (i > 0 && !(buffer[i] > buffer[i - 1])) { in read_64bit_transitions()
249 if (!buffer) { in read_64bit_types()
266 …et += (int32_t) (((uint32_t) buffer[j]) << 24) + (buffer[j + 1] << 16) + (buffer[j + 2] << 8) + tz… in read_64bit_types()
304 if (!buffer) { in read_64bit_types()
319 if (!buffer) { in read_64bit_types()
451 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
[all …]
/PHP-8.2/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c189 buffer[0] = '&'; in mbfl_filt_conv_html_dec()
195 if (buffer[1]=='#') { in mbfl_filt_conv_html_dec()
196 if (filter->status > 2 && (buffer[2] == 'x' || buffer[2] == 'X')) { in mbfl_filt_conv_html_dec()
200 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
224 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
248 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec()
264 buffer[filter->status++] = ';'; in mbfl_filt_conv_html_dec()
265 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec()
279 buffer[filter->status++] = c; in mbfl_filt_conv_html_dec()
286 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec()
[all …]
/PHP-8.2/ext/zlib/tests/
H A Dinflate_add_basic.phpt8 $buffer = "";
15 $buffer .= $dataToInflate;
16 if (strlen($buffer) >= $flushSize) {
17 $inflated = inflate_add($resource, $buffer);
18 $buffer = "";
23 $inflated = inflate_add($resource, $buffer, ZLIB_FINISH);
H A Ddeflate_add_basic.phpt9 $buffer = "";
16 $buffer .= $dataToCompress;
17 if (strlen($buffer) >= $flushSize) {
18 $deflated = deflate_add($resource, $buffer, $flushType);
19 $buffer = "";
24 $deflated = deflate_add($resource, $buffer, ZLIB_FINISH);
/PHP-8.2/ext/fileinfo/tests/
H A Dbug69107.phpt9 var_dump($finfo->buffer("<?php\nclass A{}"));
10 var_dump($finfo->buffer("<?php class A{}"));
11 var_dump($finfo->buffer("<?php\tclass A{}"));
12 var_dump($finfo->buffer("<?php\n\rclass A{}"));
/PHP-8.2/sapi/phpdbg/
H A Dphpdbg_cmd.c44 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS()
46 return buffer; in ZEND_EXTERN_MODULE_GLOBALS()
785 if (buffer && isspace(*buffer)) { in phpdbg_read_input()
791 efree(buffer); in phpdbg_read_input()
792 buffer = trimmed; in phpdbg_read_input()
795 if (buffer && strlen(buffer)) { in phpdbg_read_input()
799 PHPDBG_G(buffer) = strdup(buffer); in phpdbg_read_input()
801 if (buffer) { in phpdbg_read_input()
802 efree(buffer); in phpdbg_read_input()
804 buffer = estrdup(PHPDBG_G(buffer)); in phpdbg_read_input()
[all …]
/PHP-8.2/ext/zlib/
H A Dzlib.c200 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
204 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
236 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
434 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
437 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
438 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
439 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
445 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
450 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
455 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
[all …]

Completed in 42 milliseconds

12345678910>>...14