Home
last modified time | relevance | path

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

12345678910>>...12

/PHP-5.5/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c76 device->buffer = tmp; in mbfl_memory_device_realloc()
92 if (device->buffer) { in mbfl_memory_device_clear()
154 device->buffer = tmp; in mbfl_memory_device_output()
177 device->buffer = tmp; in mbfl_memory_device_output2()
202 device->buffer = tmp; in mbfl_memory_device_output4()
235 device->buffer = tmp; in mbfl_memory_device_strcat()
262 device->buffer = tmp; in mbfl_memory_device_strncat()
289 dest->buffer = tmp; in mbfl_memory_device_devcat()
292 p = src->buffer; in mbfl_memory_device_devcat()
319 if (device->buffer) { in mbfl_wchar_device_clear()
[all …]
/PHP-5.5/ext/date/lib/
H A Dparse_tz.c79 memcpy(&buffer, *tzf, sizeof(buffer)); in read_header()
105 if (!buffer) { in read_transistions()
111 buffer[i] = timelib_conv_int(buffer[i]); in read_transistions()
116 free(buffer); in read_transistions()
149 if (!buffer) { in read_types()
157 free(buffer); in read_types()
163 …tz->type[i].offset = (buffer[j] * 16777216) + (buffer[j + 1] * 65536) + (buffer[j + 2] * 256) + bu… in read_types()
167 free(buffer); in read_types()
207 free(buffer); in read_types()
242 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
[all …]
/PHP-5.5/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c188 buffer[0] = '&'; in mbfl_filt_conv_html_dec()
194 if (buffer[1]=='#') { in mbfl_filt_conv_html_dec()
195 if (filter->status > 2 && (buffer[2] == 'x' || buffer[2] == 'X')) { in mbfl_filt_conv_html_dec()
199 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
219 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
244 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec()
260 buffer[filter->status++] = ';'; in mbfl_filt_conv_html_dec()
261 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec()
268 buffer[filter->status++] = c; in mbfl_filt_conv_html_dec()
275 buffer[filter->status] = 0; in mbfl_filt_conv_html_dec()
[all …]
/PHP-5.5/ext/hash/
H A Dhash_whirlpool.c48 unsigned char *buffer = context->buffer.data; in WhirlpoolTransform() local
53 for (i = 0; i < 8; i++, buffer += 8) { in WhirlpoolTransform()
282 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLUpdate() local
284 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLUpdate()
285 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate()
340 buffer[bufferPos] |= b >> bufferRem; in PHP_WHIRLPOOLUpdate()
373 context->buffer.bits = bufferBits; in PHP_WHIRLPOOLUpdate()
374 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
380 unsigned char *buffer = context->buffer.data; in PHP_WHIRLPOOLFinal() local
382 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLFinal()
[all …]
H A Dhash_tiger.c143 context->buffer[context->length++] = 0x1; in TigerFinalize()
145 memset(&context->buffer[context->length], 0, 8-context->length%8); in TigerFinalize()
150 memset(&context->buffer[context->length], 0, 64 - context->length); in TigerFinalize()
152 memset(context->buffer, 0, 56); in TigerFinalize()
160 context->buffer[56] = (unsigned char) (context->passed & 0xff); in TigerFinalize()
201 memcpy(&context->buffer[context->length], input, len); in PHP_TIGERUpdate()
208 memcpy(&context->buffer[context->length], input, i); in PHP_TIGERUpdate()
210 memset(context->buffer, 0, 64); in PHP_TIGERUpdate()
215 memcpy(context->buffer, &input[i], 64); in PHP_TIGERUpdate()
219 memset(&context->buffer[r], 0, 64-r); in PHP_TIGERUpdate()
[all …]
H A Dphp_hash_sha.h41 unsigned char buffer[64]; /* input buffer */ member
57 unsigned char buffer[64]; /* input buffer */ member
68 unsigned char buffer[64]; /* input buffer */ member
79 unsigned char buffer[128]; /* input buffer */ member
90 unsigned char buffer[128]; /* input buffer */ member
H A Dphp_hash_ripemd.h29 unsigned char buffer[64]; /* input buffer */ member
35 unsigned char buffer[64]; /* input buffer */ member
41 unsigned char buffer[64]; /* input buffer */ member
47 unsigned char buffer[64]; /* input buffer */ member
/PHP-5.5/ext/standard/
H A Dpassword.c93 efree(buffer); in php_password_salt_to64()
100 efree(buffer); in php_password_salt_to64()
106 efree(buffer); in php_password_salt_to64()
115 char *buffer; in php_password_make_salt() local
163 efree(buffer); in php_password_make_salt()
169 efree(buffer); in php_password_make_salt()
356 char *buffer; in PHP_FUNCTION() local
389 efree(buffer); in PHP_FUNCTION()
395 efree(buffer); in PHP_FUNCTION()
402 efree(buffer); in PHP_FUNCTION()
[all …]
H A Dcrypt_sha256.c269 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
276 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
279 buffer = (const char *) buffer + add; in sha256_process_bytes()
294 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
295 buffer = (const char *) buffer + 64; in sha256_process_bytes()
299 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
308 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
313 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
570 buffer = NULL; in php_sha256_crypt_r()
594 return buffer; in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c296 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
304 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
308 buffer = (const char *) buffer + add; in sha512_process_bytes()
324 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
325 buffer = (const char *) buffer + 128; in sha512_process_bytes()
332 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
341 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
346 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
617 buffer = NULL; in php_sha512_crypt_r()
640 return buffer; in php_sha512_crypt_r()
[all …]
H A Diptc.c315 unsigned char *buffer, recnum, dataset, key[ 16 ]; in PHP_FUNCTION() local
324 buffer = (unsigned char *)str; in PHP_FUNCTION()
327 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION()
335 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION()
342 dataset = buffer[ inx++ ]; in PHP_FUNCTION()
343 recnum = buffer[ inx++ ]; in PHP_FUNCTION()
345 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION()
349 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
350 (((long) buffer[ inx + 4 ]) << 8) + (((long) buffer[ inx + 5 ])); in PHP_FUNCTION()
353 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
[all …]
H A Dformatted_print.c65 *buffer = erealloc(*buffer, *size); in php_sprintf_appendchar()
68 (*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
108 *buffer = erealloc(*buffer, *size); in php_sprintf_appendstring()
112 (*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
118 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
122 memcpy(&(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
126 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
210 php_sprintf_appenddouble(char **buffer, int *pos, in php_sprintf_appenddouble() argument
344 php_sprintf_getnumber(char *buffer, int *pos) in php_sprintf_getnumber() argument
347 register long num = strtol(&buffer[*pos], &endptr, 10); in php_sprintf_getnumber()
[all …]
/PHP-5.5/ext/pcre/pcrelib/
H A Dpcre_ord2utf8.c68 PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) in PRIV()
76 buffer += i; in PRIV()
79 *buffer-- = 0x80 | (cvalue & 0x3f); in PRIV()
82 *buffer = PRIV(utf8_table2)[i] | cvalue; in PRIV()
88 (void)(buffer); /* called when SUPPORT_UTF is not defined. */ in PRIV()
/PHP-5.5/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_flush_basic_001.phpt6 …Description: Flush (send) contents of the output buffer. The last buffer content is sent to next b…
21 echo "Ensure the buffer is still active after the flush.\n";
33 Notice: ob_flush(): failed to flush buffer. No buffer to flush in %s on line 12
37 Ensure the buffer is still active after the flush.
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_end_flush_basic_001.phpt6 * Description: Flush (send) the output buffer, and delete current output buffer
33 Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on li…
39 Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on li…
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
H A Dob_clean_basic_001.phpt6 * Description: Clean (delete) the current output buffer
21 echo "Ensure the buffer is still active after the clean.";
32 Notice: ob_clean(): failed to delete buffer. No buffer to delete in %s on line 12
35 Ensure the buffer is still active after the clean."
/PHP-5.5/ext/zlib/
H A Dzlib.c130 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
134 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
165 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
368 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
371 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
372 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
373 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
379 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
384 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
389 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
[all …]
/PHP-5.5/ext/standard/tests/general_functions/
H A Dob_get_flush_error.phpt8 …* Description: Get current buffer contents, flush (send) the output buffer, and delete current out…
30 Notice: ob_get_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on li…
/PHP-5.5/Zend/
H A Dzend_sprintf.c31 int zend_sprintf(char *buffer, const char *format, ...) in zend_sprintf() argument
36 vsprintf(buffer, format, args); in zend_sprintf()
39 return strlen(buffer); in zend_sprintf()

Completed in 141 milliseconds

12345678910>>...12