Searched refs:buffer (Results 1 - 25 of 146) sorted by relevance

123456

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dint2num.c49 char buffer[30]; local
62 bptr = buffer;
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.php27 echo $fi->buffer(file_get_contents($file)) . "\n";
/PHP_TRUNK/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c183 char *buffer = (char*)filter->opaque; local
188 buffer[0] = '&';
194 if (buffer[1]=='#') {
195 if (filter->status > 2 && (buffer[2] == 'x' || buffer[2] == 'X')) {
199 int v = buffer[pos];
219 int v = buffer[pos];
236 CK((*filter->output_function)(buffer[pos], filter->data));
241 /*php_error_docref("ref.mbstring" TSRMLS_CC, E_NOTICE, "mbstring decoded '%s'=%d", buffer, ent);*/
244 buffer[filte
291 unsigned char *buffer; local
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c51 device->buffer = (unsigned char *)0;
53 device->buffer = (unsigned char *)mbfl_malloc(initsz*sizeof(unsigned char));
54 if (device->buffer != NULL) {
74 tmp = (unsigned char *)mbfl_realloc((void *)device->buffer, initsz*sizeof(unsigned char));
76 device->buffer = tmp;
92 if (device->buffer) {
93 mbfl_free(device->buffer);
95 device->buffer = (unsigned char *)0;
123 result->val = device->buffer;
124 device->buffer
[all...]
/PHP_TRUNK/Zend/
H A Dzend_sprintf.c31 int zend_sprintf(char *buffer, const char *format, ...) argument
36 vsprintf(buffer, format, args);
39 return strlen(buffer);
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_ord2utf8.c59 buffer pointer to buffer for result - at least 6 pcre_uchars long
61 Returns: number of characters placed in the buffer
66 PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) argument
74 buffer += i;
77 *buffer-- = 0x80 | (cvalue & 0x3f);
80 *buffer = PRIV(utf8_table2)[i] | cvalue;
86 (void)(buffer); /* called when SUPPORT_UTF is not defined. */
/PHP_TRUNK/ext/date/lib/
H A Dparse_tz.c72 uint32_t buffer[6]; local
74 memcpy(&buffer, *tzf, sizeof(buffer));
75 tz->ttisgmtcnt = timelib_conv_int(buffer[0]);
76 tz->ttisstdcnt = timelib_conv_int(buffer[1]);
77 tz->leapcnt = timelib_conv_int(buffer[2]);
78 tz->timecnt = timelib_conv_int(buffer[3]);
79 tz->typecnt = timelib_conv_int(buffer[4]);
80 tz->charcnt = timelib_conv_int(buffer[5]);
81 *tzf += sizeof(buffer);
86 int32_t *buffer = NULL; local
116 unsigned char *buffer; local
199 uint32_t buffer[3]; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash_tiger.c143 context->buffer[context->length++] = 0x1;
145 memset(&context->buffer[context->length], 0, 8-context->length%8);
150 memset(&context->buffer[context->length], 0, 64 - context->length);
151 tiger_compress(context->passes, ((php_hash_uint64 *) context->buffer), context->state);
152 memset(context->buffer, 0, 56);
154 memset(&context->buffer[context->length], 0, 56 - context->length);
158 memcpy(&context->buffer[56], &context->passed, sizeof(php_hash_uint64));
160 context->buffer[56] = (unsigned char) (context->passed & 0xff);
161 context->buffer[57] = (unsigned char) ((context->passed >> 8) & 0xff);
162 context->buffer[5
[all...]
H A Dhash_whirlpool.c45 php_hash_uint64 block[8]; /* mu(buffer) */
48 unsigned char *buffer = context->buffer.data; local
51 * map the buffer to a block:
53 for (i = 0; i < 8; i++, buffer += 8) {
55 (((php_hash_uint64)buffer[0] ) << 56) ^
56 (((php_hash_uint64)buffer[1] & 0xffL) << 48) ^
57 (((php_hash_uint64)buffer[2] & 0xffL) << 40) ^
58 (((php_hash_uint64)buffer[3] & 0xffL) << 32) ^
59 (((php_hash_uint64)buffer[
282 unsigned char *buffer = context->buffer.data; local
380 unsigned char *buffer = context->buffer.data; local
[all...]
H A Dphp_hash_gost.h31 unsigned char buffer[32]; member in struct:__anon62
H A Dphp_hash_md.h65 unsigned char buffer[64]; /* input buffer */ member in struct:__anon65
81 unsigned char buffer[64]; member in struct:__anon66
92 unsigned char buffer[16]; member in struct:__anon67
H A Dphp_hash_ripemd.h29 unsigned char buffer[64]; /* input buffer */ member in struct:__anon68
35 unsigned char buffer[64]; /* input buffer */ member in struct:__anon69
41 unsigned char buffer[64]; /* input buffer */ member in struct:__anon70
47 unsigned char buffer[64]; /* input buffer */ member in struct:__anon71
H A Dphp_hash_sha.h41 unsigned char buffer[64]; /* input buffer */ member in struct:__anon72
57 unsigned char buffer[64]; /* input buffer */ member in struct:__anon73
68 unsigned char buffer[64]; /* input buffer */ member in struct:__anon74
79 unsigned char buffer[128]; /* input buffer */ member in struct:__anon75
90 unsigned char buffer[128]; /* input buffer */ member in struct:__anon76
[all...]
H A Dphp_hash_snefru.h35 unsigned char buffer[32]; member in struct:__anon77
H A Dphp_hash_tiger.h28 unsigned char buffer[64]; member in struct:__anon78
H A Dphp_hash_whirlpool.h32 } buffer; member in struct:__anon79
/PHP_TRUNK/ext/soap/
H A Dphp_packet_soap.h25 int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunctionPtr fn, char *fn_name, zval *return_value, zval *soap_headers TSRMLS_DC);
/PHP_TRUNK/ext/standard/
H A Dphp_crypt_r.h52 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
53 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
H A Dsha1.h30 unsigned char buffer[64]; /* input buffer */ member in struct:__anon258
H A Diptc.c303 unsigned char *buffer, recnum, dataset; local
312 buffer = (unsigned char *)str;
315 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){
323 if (buffer[ inx++ ] != 0x1c) {
330 dataset = buffer[ inx++ ];
331 recnum = buffer[ inx++ ];
333 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */
337 len = (((zend_long) buffer[ in
[all...]
H A Dcrypt_sha256.c68 char buffer[128]; /* NB: always correctly aligned for uint32_t. */ member in struct:sha256_ctx
78 /* This array contains the bytes used to pad the buffer to the next
106 static void sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) { argument
107 const uint32_t *words = buffer;
128 /* Process all bytes in the buffer with 64 bytes in each round of
219 /* Process the remaining bytes in the internal buffer and the usual
237 memcpy(&ctx->buffer[bytes], fillbuf, pad);
239 /* Put the 64-bit file length in *bits* at the end of the buffer. */
240 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3);
241 *(uint32_t *) &ctx->buffer[byte
256 sha256_process_bytes(const void *buffer, size_t len, struct sha256_ctx *ctx) argument
334 php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen) argument
599 static char *buffer; local
[all...]
H A Dformatted_print.c55 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add TSRMLS_DC) argument
57 if (!*buffer || (*pos + 1) >= (*buffer)->len) {
58 PRINTF_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(TSRMLS_C), (*buffer)->len));
59 *buffer = zend_string_realloc(*buffer, (*buffer)->len << 1, 0);
62 (*buffer)->val[(*pos)++] = add;
68 php_sprintf_appendstring(zend_string **buffer, size_ argument
125 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int always_sign) argument
169 php_sprintf_appenduint(zend_string **buffer, size_t *pos, zend_ulong number, size_t width, char padding, size_t alignment) argument
201 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, double number, size_t width, char padding, size_t alignment, int precision, int adjust, char fmt, int always_sign TSRMLS_DC) argument
293 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int n, char *chartable, int expprec) argument
324 php_sprintf_getnumber(char *buffer, size_t *pos) argument
[all...]
H A Dpassword.c85 zend_string *buffer; local
89 buffer = php_base64_encode((unsigned char*) str, str_len);
90 if (buffer->len < out_len) {
92 zend_string_release(buffer);
96 if (buffer->val[pos] == '+') {
98 } else if (buffer->val[pos] == '=') {
99 zend_string_free(buffer);
102 ret[pos] = buffer->val[pos];
105 zend_string_free(buffer);
114 char *buffer; local
347 char *buffer; local
[all...]
/PHP_TRUNK/ext/zlib/
H A Dzlib.c115 ctx->buffer.used = 0;
120 if (ctx->buffer.free < output_context->in.used) {
121 if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.free + output_context->in.used))) {
125 ctx->buffer.data = ctx->buffer.aptr;
126 ctx->buffer.free += output_context->in.used;
128 memcpy(ctx->buffer
347 php_zlib_buffer buffer = {NULL, NULL, 0, 0, 0}; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_cmd.c30 static inline const char *phpdbg_command_name(const phpdbg_command_t *command, char *buffer) { argument
34 memcpy(&buffer[pos], command->parent->name, command->parent->name_len);
36 memcpy(&buffer[pos], " ", sizeof(" ")-1);
40 memcpy(&buffer[pos], command->name, command->name_len);
42 buffer[pos] = 0;
44 return buffer;
451 char buffer[128] = {0,}; local
466 phpdbg_command_name(command, buffer));
486 phpdbg_command_name(command, buffer), \
493 phpdbg_command_name(command, buffer), \
708 char *buffer = NULL; local
[all...]

Completed in 13 milliseconds

123456