/PHP-8.4/ext/mysqlnd/ |
H A D | mysqlnd_read_buffer.c | 28 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.4/ext/pcre/pcre2lib/ |
H A D | pcre2_ord2utf.c | 59 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 D | pcre2_error.c | 301 pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, PCRE2_SIZE size) in pcre2_get_error_message() argument 335 buffer[i] = 0; /* Terminate partial message */ in pcre2_get_error_message() 338 buffer[i] = *message++; in pcre2_get_error_message() 341 buffer[i] = 0; in pcre2_get_error_message()
|
/PHP-8.4/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_memory_device.c | 51 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.4/ext/hash/ |
H A D | hash_whirlpool.c | 44 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 D | hash_tiger.c | 139 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.4/ext/opcache/tests/jit/ |
H A D | bug81051.phpt | 12 public static function readUnsignedVarInt(string $buffer, int &$offset) : int{ 20 private string $buffer; 23 public function __construct(string $buffer, int $offset = 0){ 24 $this->buffer = $buffer; 29 return Binary::readUnsignedVarInt($this->buffer, $this->offset); 33 …return $len === 1 ? $this->buffer[$this->offset++] : substr($this->buffer, ($this->offset += $len)…
|
/PHP-8.4/ext/intl/idn/ |
H A D | idn.c | 60 zend_string *buffer; in php_intl_idn_to_46() local 70 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46() 72 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46() 75 zend_string_efree(buffer); in php_intl_idn_to_46() 80 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46() 82 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46() 85 zend_string_efree(buffer); in php_intl_idn_to_46() 90 ZSTR_VAL(buffer)[len] = '\0'; in php_intl_idn_to_46() local 91 ZSTR_LEN(buffer) = len; in php_intl_idn_to_46() 94 RETVAL_STR_COPY(buffer); in php_intl_idn_to_46() [all …]
|
/PHP-8.4/ext/standard/ |
H A D | formatted_print.c | 53 *buffer = zend_string_extend(*buffer, ZSTR_LEN(*buffer) << 1, 0); in php_sprintf_appendchar() 65 size_t nlen = ZSTR_LEN(*buffer); in php_sprintf_appendchars() 71 *buffer = zend_string_extend(*buffer, nlen, 0); in php_sprintf_appendchars() 94 *buffer, *pos, ZSTR_LEN(*buffer), add, min_width, padding, alignment)); in php_sprintf_appendstring() 112 *buffer = zend_string_extend(*buffer, size, 0); in php_sprintf_appendstring() 147 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appendint() 191 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment)); in php_sprintf_appenduint() 233 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, fmt)); in php_sprintf_appenddouble() 332 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment, n, in php_sprintf_append2n() 360 i = (endptr - *buffer); in php_sprintf_getnumber() [all …]
|
H A D | crypt_sha256.c | 248 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes() 255 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes() 258 buffer = (const char *) buffer + add; in sha256_process_bytes() 273 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes() 274 buffer = (const char *) buffer + 64; in sha256_process_bytes() 278 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes() 287 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes() 292 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes() 555 buffer = NULL; in php_sha256_crypt_r() 586 return buffer; in php_sha256_crypt_r() [all …]
|
H A D | iptc.c | 307 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 D | crypt_sha512.c | 279 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes() 287 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes() 291 buffer = (const char *) buffer + add; in sha512_process_bytes() 307 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes() 308 buffer = (const char *) buffer + 128; in sha512_process_bytes() 315 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes() 324 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes() 329 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes() 606 buffer = NULL; in php_sha512_crypt_r() 637 return buffer; in php_sha512_crypt_r() [all …]
|
/PHP-8.4/tests/output/ |
H A D | ob_start_basic_unerasable_005.phpt | 2 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 D | bug60768.phpt | 2 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 D | ob_start_basic_unerasable_003.phpt | 2 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 D | ob_start_basic_unerasable_004.phpt | 2 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 D | bug46897.phpt | 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. 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 D | ob_start_basic_unerasable_002.phpt | 2 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.4/ext/date/lib/ |
H A D | parse_tz.c | 168 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.4/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_htmlent.c | 190 buffer[0] = '&'; in mbfl_filt_conv_html_dec() 196 if (buffer[1]=='#') { in mbfl_filt_conv_html_dec() 197 if (filter->status > 2 && (buffer[2] == 'x' || buffer[2] == 'X')) { in mbfl_filt_conv_html_dec() 201 int v = buffer[pos]; in mbfl_filt_conv_html_dec() 225 int v = buffer[pos]; in mbfl_filt_conv_html_dec() 249 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec() 265 buffer[filter->status++] = ';'; in mbfl_filt_conv_html_dec() 266 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec() 280 buffer[filter->status++] = c; in mbfl_filt_conv_html_dec() 287 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec() [all …]
|
/PHP-8.4/ext/zlib/tests/ |
H A D | deflate_add_basic.phpt | 9 $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);
|
H A D | inflate_add_basic.phpt | 12 $buffer = ""; 19 $buffer .= $dataToInflate; 20 if (strlen($buffer) >= $flushSize) { 21 $inflated = inflate_add($resource, $buffer); 22 $buffer = ""; 27 $inflated = inflate_add($resource, $buffer, ZLIB_FINISH);
|
/PHP-8.4/ext/fileinfo/tests/ |
H A D | bug69107.phpt | 9 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.4/sapi/phpdbg/ |
H A D | phpdbg_cmd.c | 44 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS() 46 return buffer; in ZEND_EXTERN_MODULE_GLOBALS() 786 if (buffer && isspace(*buffer)) { in phpdbg_read_input() 792 efree(buffer); in phpdbg_read_input() 793 buffer = trimmed; in phpdbg_read_input() 796 if (buffer && strlen(buffer)) { in phpdbg_read_input() 800 PHPDBG_G(buffer) = strdup(buffer); in phpdbg_read_input() 802 if (buffer) { in phpdbg_read_input() 803 efree(buffer); in phpdbg_read_input() 805 buffer = estrdup(PHPDBG_G(buffer)); in phpdbg_read_input() [all …]
|
/PHP-8.4/ext/zlib/ |
H A D | zlib.c | 197 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex() 201 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex() 233 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex() 431 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds() 434 buffer.data = buffer.aptr; in php_zlib_inflate_rounds() 435 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds() 436 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds() 442 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds() 447 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds() 452 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds() [all …]
|