/PHP-8.0/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.0/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 | 296 pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, PCRE2_SIZE size) in pcre2_get_error_message() argument 330 buffer[i] = 0; /* Terminate partial message */ in pcre2_get_error_message() 333 buffer[i] = *message++; in pcre2_get_error_message() 336 buffer[i] = 0; in pcre2_get_error_message()
|
/PHP-8.0/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_memory_device.c | 45 device->buffer = NULL; in mbfl_memory_device_init() 64 device->buffer = erealloc(device->buffer, initsz); in mbfl_memory_device_realloc() 79 if (device->buffer) { in mbfl_memory_device_clear() 80 efree(device->buffer); in mbfl_memory_device_clear() 82 device->buffer = NULL; in mbfl_memory_device_clear() 111 device->buffer = NULL; in mbfl_memory_device_result() 140 device->buffer = erealloc(device->buffer, newlen); in mbfl_memory_device_output() 170 device->buffer = erealloc(device->buffer, newlen); in mbfl_memory_device_strncat() 191 device->buffer = NULL; in mbfl_wchar_device_init() 202 if (device->buffer) { in mbfl_wchar_device_clear() [all …]
|
/PHP-8.0/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 …]
|
H A D | php_hash_ripemd.h | 25 unsigned char buffer[64]; /* input buffer */ member 32 unsigned char buffer[64]; /* input buffer */ member 39 unsigned char buffer[64]; /* input buffer */ member 46 unsigned char buffer[64]; /* input buffer */ member
|
/PHP-8.0/ext/opcache/tests/jit/ |
H A D | bug81051.phpt | 13 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.0/ext/date/lib/ |
H A D | parse_tz.c | 164 uint32_t buffer[6]; in read_32bit_header() local 166 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header() 201 if (!buffer) { in read_64bit_transitions() 207 buffer[i] = timelib_conv_int64_signed(buffer[i]); in read_64bit_transitions() 209 if (i > 0 && !(buffer[i] > buffer[i - 1])) { in read_64bit_transitions() 245 if (!buffer) { in read_64bit_types() 260 …et += (int32_t) (((uint32_t) buffer[j]) << 24) + (buffer[j + 1] << 16) + (buffer[j + 2] << 8) + tz… in read_64bit_types() 298 if (!buffer) { in read_64bit_types() 313 if (!buffer) { in read_64bit_types() 369 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location() [all …]
|
/PHP-8.0/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_htmlent.c | 182 buffer[0] = '&'; in mbfl_filt_conv_html_dec() 188 if (buffer[1]=='#') { in mbfl_filt_conv_html_dec() 189 if (filter->status > 2 && (buffer[2] == 'x' || buffer[2] == 'X')) { in mbfl_filt_conv_html_dec() 193 int v = buffer[pos]; in mbfl_filt_conv_html_dec() 213 int v = buffer[pos]; in mbfl_filt_conv_html_dec() 238 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec() 254 buffer[filter->status++] = ';'; in mbfl_filt_conv_html_dec() 255 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec() 262 buffer[filter->status++] = c; in mbfl_filt_conv_html_dec() 269 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec() [all …]
|
/PHP-8.0/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
|
H A D | ob_end_clean_basic_001.phpt | 22 Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in %s on line %d 27 Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in %s on line %d
|
/PHP-8.0/ext/standard/ |
H A D | formatted_print.c | 56 *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 D | crypt_sha256.c | 254 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes() 261 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes() 264 buffer = (const char *) buffer + add; in sha256_process_bytes() 279 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes() 280 buffer = (const char *) buffer + 64; in sha256_process_bytes() 284 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes() 293 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes() 298 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes() 552 buffer = NULL; in php_sha256_crypt_r() 575 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 | 281 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes() 289 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes() 293 buffer = (const char *) buffer + add; in sha512_process_bytes() 309 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes() 310 buffer = (const char *) buffer + 128; in sha512_process_bytes() 317 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes() 326 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes() 331 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes() 599 buffer = NULL; in php_sha512_crypt_r() 622 return buffer; in php_sha512_crypt_r() [all …]
|
/PHP-8.0/ext/intl/idn/ |
H A D | idn.c | 125 zend_string *buffer; in php_intl_idn_to_46() local 135 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46() 137 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46() 140 zend_string_efree(buffer); in php_intl_idn_to_46() 145 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46() 147 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46() 150 zend_string_efree(buffer); in php_intl_idn_to_46() 155 ZSTR_VAL(buffer)[len] = '\0'; in php_intl_idn_to_46() local 156 ZSTR_LEN(buffer) = len; in php_intl_idn_to_46() 159 RETVAL_STR_COPY(buffer); in php_intl_idn_to_46() [all …]
|
/PHP-8.0/ext/zlib/tests/ |
H A D | deflate_add_basic.phpt | 13 $buffer = ""; 20 $buffer .= $dataToCompress; 21 if (strlen($buffer) >= $flushSize) { 22 $deflated = deflate_add($resource, $buffer, $flushType); 23 $buffer = ""; 28 $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.0/ext/fileinfo/tests/ |
H A D | bug69107.phpt | 11 var_dump($finfo->buffer("<?php\nclass A{}")); 12 var_dump($finfo->buffer("<?php class A{}")); 13 var_dump($finfo->buffer("<?php\tclass A{}")); 14 var_dump($finfo->buffer("<?php\n\rclass A{}"));
|