Home
last modified time | relevance | path

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

12345678910>>...13

/PHP-5.6/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()
158 device->buffer = tmp; in mbfl_memory_device_output()
185 device->buffer = tmp; in mbfl_memory_device_output2()
214 device->buffer = tmp; in mbfl_memory_device_output4()
252 device->buffer = tmp; in mbfl_memory_device_strcat()
284 device->buffer = tmp; in mbfl_memory_device_strncat()
316 dest->buffer = tmp; in mbfl_memory_device_devcat()
319 p = src->buffer; in mbfl_memory_device_devcat()
346 if (device->buffer) { in mbfl_wchar_device_clear()
[all …]
/PHP-5.6/ext/date/lib/
H A Dparse_tz.c83 uint32_t buffer[6]; in read_header() local
85 memcpy(&buffer, *tzf, sizeof(buffer)); in read_header()
111 if (!buffer) { in read_transistions()
117 buffer[i] = timelib_conv_int(buffer[i]); in read_transistions()
129 tz->trans = buffer; in read_transistions()
155 if (!buffer) { in read_types()
169 …tz->type[i].offset = (buffer[j] * 16777216) + (buffer[j + 1] * 65536) + (buffer[j + 2] * 256) + bu… in read_types()
204 if (!buffer) { in read_types()
218 if (!buffer) { in read_types()
248 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
[all …]
/PHP-5.6/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.6/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.6/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.6/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
/PHP-5.6/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.6/ext/standard/
H A Dpassword.c86 unsigned char *buffer; in php_password_salt_to64() local
93 efree(buffer); in php_password_salt_to64()
97 if (buffer[pos] == '+') { in php_password_salt_to64()
100 efree(buffer); in php_password_salt_to64()
103 ret[pos] = buffer[pos]; in php_password_salt_to64()
106 efree(buffer); in php_password_salt_to64()
115 char *buffer; in php_password_make_salt() local
129 BYTE *iv_b = (BYTE *) buffer; in php_password_make_salt()
163 efree(buffer); in php_password_make_salt()
169 efree(buffer); in php_password_make_salt()
[all …]
H A Dcrypt_sha256.c263 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
270 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
273 buffer = (const char *) buffer + add; in sha256_process_bytes()
288 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
289 buffer = (const char *) buffer + 64; in sha256_process_bytes()
293 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
302 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
307 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
564 buffer = NULL; in php_sha256_crypt_r()
588 return buffer; in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c290 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
298 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
302 buffer = (const char *) buffer + add; in sha512_process_bytes()
318 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
319 buffer = (const char *) buffer + 128; in sha512_process_bytes()
326 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
335 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
340 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
611 buffer = NULL; in php_sha512_crypt_r()
634 return buffer; in php_sha512_crypt_r()
[all …]
H A Diptc.c316 unsigned char *buffer, recnum, dataset, key[ 16 ]; in PHP_FUNCTION() local
325 buffer = (unsigned char *)str; in PHP_FUNCTION()
328 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION()
336 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION()
343 dataset = buffer[ inx++ ]; in PHP_FUNCTION()
344 recnum = buffer[ inx++ ]; in PHP_FUNCTION()
346 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION()
350 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
351 (((long) buffer[ inx + 4 ]) << 8) + (((long) buffer[ inx + 5 ])); in PHP_FUNCTION()
354 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.6/sapi/phpdbg/
H A Dphpdbg_utils.c230 char *buffer = NULL; in phpdbg_print() local
235 vspprintf(&buffer, 0, format, args); in phpdbg_print()
263 if (buffer) { in phpdbg_print()
264 rc = fprintf(fp, "%s\n", buffer); in phpdbg_print()
271 if (buffer) { in phpdbg_print()
272 rc = fprintf(fp, "%s", buffer); in phpdbg_print()
278 if (buffer) { in phpdbg_print()
289 if (buffer) { in phpdbg_print()
290 efree(buffer); in phpdbg_print()
305 char *format = NULL, *buffer = NULL; in phpdbg_rlog() local
[all …]
/PHP-5.6/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.6/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 53 milliseconds

12345678910>>...13