Searched refs:context (Results 1 - 25 of 90) sorted by relevance

1234

/PHP_5_3/ext/sqlite/libsqlite/src/
H A Dfunc.c31 static void minmaxFunc(sqlite_func *context, int argc, const char **argv){ argument
38 mask = (int)sqlite_user_data(context);
52 sqlite_set_result_string(context, zBest, -1);
58 static void typeofFunc(sqlite_func *context, int argc, const char **argv){ argument
60 sqlite_set_result_string(context, argv[1], -1);
66 static void lengthFunc(sqlite_func *context, int argc, const char **argv){ argument
78 sqlite_set_result_int(context, len);
84 static void absFunc(sqlite_func *context, int argc, const char **argv){ argument
90 sqlite_set_result_string(context, z, -1);
96 static void substrFunc(sqlite_func *context, in argument
142 roundFunc(sqlite_func *context, int argc, const char **argv) argument
159 upperFunc(sqlite_func *context, int argc, const char **argv) argument
169 lowerFunc(sqlite_func *context, int argc, const char **argv) argument
185 ifnullFunc(sqlite_func *context, int argc, const char **argv) argument
198 randomFunc(sqlite_func *context, int argc, const char **argv) argument
208 last_insert_rowid(sqlite_func *context, int arg, const char **argv) argument
217 change_count(sqlite_func *context, int arg, const char **argv) argument
226 last_statement_change_count(sqlite_func *context, int arg, const char **argv) argument
241 likeFunc(sqlite_func *context, int arg, const char **argv) argument
257 globFunc(sqlite_func *context, int arg, const char **argv) argument
269 nullifFunc(sqlite_func *context, int argc, const char **argv) argument
279 versionFunc(sqlite_func *context, int argc, const char **argv) argument
294 quoteFunc(sqlite_func *context, int argc, const char **argv) argument
324 soundexFunc(sqlite_func *context, int argc, const char **argv) argument
365 randStr(sqlite_func *context, int argc, const char **argv) argument
416 sumStep(sqlite_func *context, int argc, const char **argv) argument
425 sumFinalize(sqlite_func *context) argument
430 avgFinalize(sqlite_func *context) argument
488 countStep(sqlite_func *context, int argc, const char **argv) argument
495 countFinalize(sqlite_func *context) argument
514 minmaxStep(sqlite_func *context, int argc, const char **argv) argument
547 minMaxFinalize(sqlite_func *context) argument
[all...]
/PHP_5_3/ext/hash/
H A Dhash.c126 void *context; local
146 context = emalloc(ops->context_size);
147 ops->hash_init(context);
154 ops->hash_update(context, (unsigned char *) buf, n);
158 ops->hash_update(context, (unsigned char *) data, data_len);
162 ops->hash_final((unsigned char *) digest, context);
163 efree(context);
203 void *context; local
224 context = emalloc(ops->context_size);
225 ops->hash_init(context);
317 void *context; local
439 php_stream_context *context; local
536 void *context; local
775 void *context; local
[all...]
H A Dhash_adler32.c25 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) argument
27 context->state = 1;
30 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) argument
34 s[0] = context->state & 0xffff;
35 s[1] = (context->state >> 16) & 0xffff;
40 context->state = s[0] + (s[1] << 16);
43 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) argument
45 digest[0] = (unsigned char) ((context->state >> 24) & 0xff);
46 digest[1] = (unsigned char) ((context->state >> 16) & 0xff);
47 digest[2] = (unsigned char) ((context
[all...]
H A Dhash_crc32.c26 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context) argument
28 context->state = ~0;
31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
36 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)];
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
45 context->state = (context->state >> 8) ^ crc32b_table[(context
49 PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context) argument
59 PHP_CRC32BFinal(unsigned char digest[4], PHP_CRC32_CTX *context) argument
[all...]
H A Dhash_gost.c227 static inline void GostTransform(PHP_GOST_CTX *context, const unsigned char input[32]) argument
235 save = context->state[i + 8];
236 context->state[i + 8] += data[i] + temp;
237 temp = ((context->state[i + 8] < data[i]) || (context->state[i + 8] < save)) ? 1 : 0;
240 Gost(context->state, data);
243 PHP_HASH_API void PHP_GOSTInit(PHP_GOST_CTX *context) argument
245 memset(context, 0, sizeof(*context));
250 PHP_HASH_API void PHP_GOSTUpdate(PHP_GOST_CTX *context, cons argument
282 PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) argument
[all...]
H A Dhash_haval.c259 PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *context) \
260 { int i; context->count[0] = context->count[1] = 0; \
261 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
262 context->passes = p; context->output = b; \
263 context->Transform = PHP_##p##HAVALTransform; }
285 PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, unsigned int inputLen) argument
290 index = (unsigned int) ((context->count[0] >> 3) & 0x7F);
292 if ((context
323 PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
377 PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
431 PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
471 PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
512 PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
[all...]
H A Dhash_md.c112 PHP_MD5_CTX context; local
120 PHP_MD5Init(&context);
121 PHP_MD5Update(&context, arg, arg_len);
122 PHP_MD5Final(digest, &context);
143 PHP_MD5_CTX context; local
156 PHP_MD5Init(&context);
159 PHP_MD5Update(&context, buf, n);
162 PHP_MD5Final(digest, &context);
265 * MD5 initialization. Begins an MD5 operation, writing a new context.
267 PHP_HASH_API void PHP_MD5Init(PHP_MD5_CTX * context) argument
284 PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, unsigned int inputLen) argument
325 PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) argument
527 PHP_MD4Init(PHP_MD4_CTX * context) argument
544 PHP_MD4Update(PHP_MD4_CTX * context, const unsigned char *input, unsigned int inputLen) argument
583 PHP_MD4Final(unsigned char digest[16], PHP_MD4_CTX * context) argument
629 PHP_MD2Init(PHP_MD2_CTX *context) argument
634 MD2_Transform(PHP_MD2_CTX *context, const unsigned char *block) argument
657 PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) argument
688 PHP_MD2Final(unsigned char output[16], PHP_MD2_CTX *context) argument
[all...]
H A Dhash_ripemd.c69 * ripemd128 initialization. Begins a ripemd128 operation, writing a new context.
71 PHP_HASH_API void PHP_RIPEMD128Init(PHP_RIPEMD128_CTX * context) argument
73 context->count[0] = context->count[1] = 0;
76 context->state[0] = 0x67452301;
77 context->state[1] = 0xEFCDAB89;
78 context->state[2] = 0x98BADCFE;
79 context->state[3] = 0x10325476;
84 * ripemd256 initialization. Begins a ripemd256 operation, writing a new context.
86 PHP_HASH_API void PHP_RIPEMD256Init(PHP_RIPEMD256_CTX * context) argument
105 PHP_RIPEMD160Init(PHP_RIPEMD160_CTX * context) argument
121 PHP_RIPEMD320Init(PHP_RIPEMD320_CTX * context) argument
256 PHP_RIPEMD128Update(PHP_RIPEMD128_CTX * context, const unsigned char *input, unsigned int inputLen) argument
354 PHP_RIPEMD256Update(PHP_RIPEMD256_CTX * context, const unsigned char *input, unsigned int inputLen) argument
453 PHP_RIPEMD160Update(PHP_RIPEMD160_CTX * context, const unsigned char *input, unsigned int inputLen) argument
561 PHP_RIPEMD320Update(PHP_RIPEMD320_CTX * context, const unsigned char *input, unsigned int inputLen) argument
624 PHP_RIPEMD128Final(unsigned char digest[16], PHP_RIPEMD128_CTX * context) argument
661 PHP_RIPEMD256Final(unsigned char digest[32], PHP_RIPEMD256_CTX * context) argument
698 PHP_RIPEMD160Final(unsigned char digest[20], PHP_RIPEMD160_CTX * context) argument
735 PHP_RIPEMD320Final(unsigned char digest[40], PHP_RIPEMD320_CTX * context) argument
[all...]
H A Dhash_salsa.c121 static inline void SalsaTransform(PHP_SALSA_CTX *context, const unsigned char input[64]) argument
134 if (!context->init) {
135 memcpy(context->state, a, sizeof(a));
136 context->init = 1;
139 context->Transform(context->state, a);
143 PHP_HASH_API void PHP_SALSA10Init(PHP_SALSA_CTX *context) argument
145 memset(context, 0, sizeof(*context));
146 context
149 PHP_SALSA20Init(PHP_SALSA_CTX *context) argument
155 PHP_SALSAUpdate(PHP_SALSA_CTX *context, const unsigned char *input, size_t len) argument
179 PHP_SALSAFinal(unsigned char digest[64], PHP_SALSA_CTX *context) argument
[all...]
H A Dhash_sha.c95 PHP_SHA1_CTX context; local
103 PHP_SHA1Init(&context);
104 PHP_SHA1Update(&context, arg, arg_len);
105 PHP_SHA1Final(digest, &context);
127 PHP_SHA1_CTX context; local
140 PHP_SHA1Init(&context);
143 PHP_SHA1Update(&context, buf, n);
146 PHP_SHA1Final(digest, &context);
204 * SHA1 initialization. Begins an SHA1 operation, writing a new context.
206 PHP_HASH_API void PHP_SHA1Init(PHP_SHA1_CTX * context) argument
333 PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, unsigned int inputLen) argument
374 PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) argument
461 PHP_SHA256Init(PHP_SHA256_CTX * context) argument
521 PHP_SHA224Init(PHP_SHA224_CTX * context) argument
542 PHP_SHA224Update(PHP_SHA224_CTX * context, const unsigned char *input, unsigned int inputLen) argument
581 PHP_SHA224Final(unsigned char digest[28], PHP_SHA224_CTX * context) argument
619 PHP_SHA256Update(PHP_SHA256_CTX * context, const unsigned char *input, unsigned int inputLen) argument
658 PHP_SHA256Final(unsigned char digest[32], PHP_SHA256_CTX * context) argument
770 PHP_SHA384Init(PHP_SHA384_CTX * context) argument
833 PHP_SHA384Update(PHP_SHA384_CTX * context, const unsigned char *input, unsigned int inputLen) argument
872 PHP_SHA384Final(unsigned char digest[48], PHP_SHA384_CTX * context) argument
926 PHP_SHA512Init(PHP_SHA512_CTX * context) argument
947 PHP_SHA512Update(PHP_SHA512_CTX * context, const unsigned char *input, unsigned int inputLen) argument
986 PHP_SHA512Final(unsigned char digest[64], PHP_SHA512_CTX * context) argument
[all...]
H A Dhash_snefru.c123 static inline void SnefruTransform(PHP_SNEFRU_CTX *context, const unsigned char input[32]) argument
128 context->state[8+j] = ((input[i] & 0xff) << 24) | ((input[i+1] & 0xff) << 16) |
131 Snefru(context->state);
132 memset(&context->state[8], 0, sizeof(php_hash_uint32) * 8);
135 PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *context) argument
137 memset(context, 0, sizeof(*context));
142 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) argument
144 if ((MAX32 - context->count[1]) < (len * 8)) {
145 context
174 PHP_SNEFRUFinal(unsigned char digest[32], PHP_SNEFRU_CTX *context) argument
[all...]
H A Dhash_tiger.c139 static inline void TigerFinalize(PHP_TIGER_CTX *context) argument
141 context->passed += (php_hash_uint64) context->length << 3;
143 context->buffer[context->length++] = 0x1;
144 if (context->length % 8) {
145 memset(&context->buffer[context->length], 0, 8-context->length%8);
146 context
172 PHP_3TIGERInit(PHP_TIGER_CTX *context) argument
180 PHP_4TIGERInit(PHP_TIGER_CTX *context) argument
189 PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len) argument
216 PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) argument
240 PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) argument
268 PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) argument
[all...]
H A Dhash_whirlpool.c41 static void WhirlpoolTransform(PHP_WHIRLPOOL_CTX *context) argument
48 unsigned char *buffer = context->buffer.data;
67 state[0] = block[0] ^ (K[0] = context->state[0]);
68 state[1] = block[1] ^ (K[1] = context->state[1]);
69 state[2] = block[2] ^ (K[2] = context->state[2]);
70 state[3] = block[3] ^ (K[3] = context->state[3]);
71 state[4] = block[4] ^ (K[4] = context->state[4]);
72 state[5] = block[5] ^ (K[5] = context->state[5]);
73 state[6] = block[6] ^ (K[6] = context->state[6]);
74 state[7] = block[7] ^ (K[7] = context
270 PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *context) argument
275 PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *context, const unsigned char *input, size_t len) argument
377 PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context) argument
[all...]
H A Dphp_hash_adler32.h30 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context);
31 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len);
32 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context);
H A Dphp_hash_crc32.h30 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context);
31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
32 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
33 PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context);
H A Dphp_hash_md.h61 /* MD5 context. */
77 /* MD4 context */
85 PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, unsigned int);
88 /* MD2 context */
96 PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context);
97 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, unsigned int);
H A Dphp_hash_tiger.h24 /* TIGER context */
33 PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context);
34 PHP_HASH_API void PHP_4TIGERInit(PHP_TIGER_CTX *context);
35 PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len);
36 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context);
37 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context);
38 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context);
/PHP_5_3/ext/soap/
H A Dphp_http.h36 void http_context_headers(php_stream_context* context,
/PHP_5_3/ext/standard/
H A Dhttp_fopen_wrapper.c87 php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context, int redirect_max, int flags STREAMS_DC TSRMLS_DC) /* {{{ */ argument
130 if (!context ||
131 php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == FAILURE ||
135 return php_stream_open_wrapper_ex(path, mode, ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context);
160 if (context &&
161 php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == SUCCESS &&
172 if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) == SUCCESS) {
184 NULL, &timeout, context, &errstr, NULL);
208 if (context
[all...]
H A Dphp_fopen_wrappers.h26 php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
27 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
H A Dsha1.c41 PHP_SHA1_CTX context; local
49 PHP_SHA1Init(&context);
50 PHP_SHA1Update(&context, arg, arg_len);
51 PHP_SHA1Final(digest, &context);
74 PHP_SHA1_CTX context; local
87 PHP_SHA1Init(&context);
90 PHP_SHA1Update(&context, buf, n);
93 PHP_SHA1Final(digest, &context);
163 * SHA1 initialization. Begins an SHA1 operation, writing a new context.
165 PHPAPI void PHP_SHA1Init(PHP_SHA1_CTX * context) argument
183 PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, unsigned int inputLen) argument
224 PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) argument
[all...]
H A Dstreamsfuncs.c84 /* {{{ proto resource stream_socket_client(string remoteaddress [, long &errcode [, string &errstring [, double timeout [, long flags [, resource context]]]]])
99 php_stream_context *context = NULL; local
107 context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT);
134 hashkey, &tv, context, &errstr, &err);
173 /* {{{ proto resource stream_socket_server(string localaddress [, long &errcode [, string &errstring [, long flags [, resource context]]]])
184 php_stream_context *context = NULL; local
192 context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT);
194 if (context) {
195 zend_list_addref(context->rsrc_id);
209 NULL, NULL, context,
867 user_space_stream_notifier(php_stream_context *context, int notifycode, int severity, char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr TSRMLS_DC) argument
914 parse_context_options(php_stream_context *context, zval *options TSRMLS_DC) argument
946 parse_context_params(php_stream_context *context, zval *params TSRMLS_DC) argument
980 php_stream_context *context = NULL; local
1009 php_stream_context *context; local
1029 php_stream_context *context; local
1065 php_stream_context *context; local
1086 php_stream_context *context; local
1114 php_stream_context *context; local
1138 php_stream_context *context; local
1160 php_stream_context *context; local
[all...]
/PHP_5_3/main/streams/
H A Dphp_stream_context.h21 /* Stream context and status notification related definitions */
24 typedef void (*php_stream_notification_func)(php_stream_context *context,
32 /* Attempt to fetch context from the zval passed,
33 If no context was passed, use the default context
34 The default context has not yet been created, do it now. */
41 #define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); zend_list_addref((context)->rsrc_id); }
61 PHPAPI void php_stream_context_free(php_stream_context *context);
[all...]
/PHP_5_3/ext/phar/
H A Ddirstream.h23 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, char *url_from, int mode, int options, php_stream_context *context TSRMLS_DC);
24 int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC);
36 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
H A Dstream.h27 static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
28 static int phar_wrapper_rename(php_stream_wrapper *wrapper, char *url_from, char *url_to, int options, php_stream_context *context TSRMLS_DC);
29 static int phar_wrapper_unlink(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC);
30 static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);

Completed in 52 milliseconds

1234