Home
last modified time | relevance | path

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

12345678910>>...12

/PHP-5.4/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.4/ext/date/lib/
H A Dparse_tz.c74 memcpy(&buffer, *tzf, sizeof(buffer)); in read_header()
92 if (!buffer) { in read_transistions()
98 buffer[i] = timelib_conv_int(buffer[i]); in read_transistions()
103 free(buffer); in read_transistions()
121 if (!buffer) { in read_types()
129 free(buffer); in read_types()
135 …tz->type[i].offset = (buffer[j] * 16777216) + (buffer[j + 1] * 65536) + (buffer[j + 2] * 256) + bu… in read_types()
139 free(buffer); in read_types()
179 free(buffer); in read_types()
193 free(buffer); in read_types()
[all …]
/PHP-5.4/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.4/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
/PHP-5.4/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.4/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.4/ext/mysqli/tests/
H A Dmysqli_set_local_infile_handler_short_len.phpt2 mysqli_set_local_infile_handler() - report shorter buffer
33 function callback_short_len($fp, &$buffer, $buflen, &$error) {
43 if (!$buffer = fread($fp, $buflen)) {
48 return strlen($buffer);
52 $lines = explode("\n", $buffer);
53 if (count($lines) != 4 && strlen($buffer) > 0) {
54 …printf("[014] Test is too simple to handle a buffer of size %d that cannot hold all lines\n", $buf…
58 $buffer = '';
71 $buffer .= implode(';', $columns);
72 $buffer .= "\n";
[all …]
H A Dmysqli_set_local_infile_handler.phpt45 return strlen($buffer);
49 $lines = explode("\n", $buffer);
55 $buffer = '';
69 $buffer .= "\n";
72 return strlen($buffer);
81 return strlen($buffer);
91 $buffer = "1;'a';\n";
95 return strlen($buffer);
102 $buffer = fread($fp, $buflen);
104 return strlen($buffer);
[all …]
H A Dmysqli_set_local_infile_handler_nested_call.phpt33 function callback_simple($fp, &$buffer, $buflen, &$error) {
43 if (!$buffer = fread($fp, $buflen)) {
48 return strlen($buffer);
52 $lines = explode("\n", $buffer);
53 if (count($lines) != 4 && strlen($buffer) > 0) {
58 $buffer = '';
71 $buffer .= implode(';', $columns);
72 $buffer .= "\n";
76 return strlen($buffer);
79 function callback_report_short_len($fp, &$buffer, $buflen, &$error) {
[all …]
H A Dmysqli_set_local_infile_handler_bad_character.phpt33 function callback_bad_character($fp, &$buffer, $buflen, &$error) {
42 $buffer = '';
44 $buffer .= chr(mt_rand(0, 255));
46 $buffer .= ';"';
49 $buffer .= chr(mt_rand(0, 255));
51 $buffer .= '";';
55 return strlen($buffer);
/PHP-5.4/ext/zlib/
H A Dzlib.c118 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
122 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
153 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
356 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
359 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
360 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
361 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
367 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
372 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
377 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
[all …]
/PHP-5.4/ext/standard/
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 Diptc.c301 unsigned char *buffer, recnum, dataset, key[ 16 ]; in PHP_FUNCTION() local
310 buffer = (unsigned char *)str; in PHP_FUNCTION()
313 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION()
321 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION()
328 dataset = buffer[ inx++ ]; in PHP_FUNCTION()
329 recnum = buffer[ inx++ ]; in PHP_FUNCTION()
331 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION()
335 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
336 (((long) buffer[ inx + 4 ]) << 8) + (((long) buffer[ inx + 5 ])); in PHP_FUNCTION()
339 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
[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 Dformatted_print.c60 *buffer = erealloc(*buffer, *size); in php_sprintf_appendchar()
63 (*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
103 *buffer = erealloc(*buffer, *size); in php_sprintf_appendstring()
107 (*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
113 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
117 memcpy(&(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
121 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
205 php_sprintf_appenddouble(char **buffer, int *pos, in php_sprintf_appenddouble() argument
327 php_sprintf_getnumber(char *buffer, int *pos) in php_sprintf_getnumber() argument
330 register long num = strtol(&buffer[*pos], &endptr, 10); in php_sprintf_getnumber()
[all …]
/PHP-5.4/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…

Completed in 117 milliseconds

12345678910>>...12