context 390 TSRM/TSRM.c void tsrm_free_interpreter_context(void *context) context 392 TSRM/TSRM.c tsrm_tls_entry *next, *thread_resources = (tsrm_tls_entry*)context; context 153 TSRM/TSRM.h TSRM_API void tsrm_free_interpreter_context(void *context); context 220 Zend/zend_compile.c *prev_context = CG(context); context 221 Zend/zend_compile.c CG(context).opcodes_size = INITIAL_OP_ARRAY_SIZE; context 222 Zend/zend_compile.c CG(context).vars_size = 0; context 223 Zend/zend_compile.c CG(context).literals_size = 0; context 224 Zend/zend_compile.c CG(context).current_brk_cont = -1; context 225 Zend/zend_compile.c CG(context).backpatch_count = 0; context 226 Zend/zend_compile.c CG(context).in_finally = 0; context 227 Zend/zend_compile.c CG(context).fast_call_var = -1; context 228 Zend/zend_compile.c CG(context).labels = NULL; context 234 Zend/zend_compile.c if (CG(context).labels) { context 235 Zend/zend_compile.c zend_hash_destroy(CG(context).labels); context 236 Zend/zend_compile.c FREE_HASHTABLE(CG(context).labels); context 237 Zend/zend_compile.c CG(context).labels = NULL; context 239 Zend/zend_compile.c CG(context) = *prev_context; context 319 Zend/zend_compile.c memset(&CG(context), 0, sizeof(CG(context))); context 402 Zend/zend_compile.c if (op_array->last_var > CG(context).vars_size) { context 403 Zend/zend_compile.c CG(context).vars_size += 16; /* FIXME */ context 404 Zend/zend_compile.c op_array->vars = erealloc(op_array->vars, CG(context).vars_size * sizeof(zend_string*)); context 445 Zend/zend_compile.c if (i >= CG(context).literals_size) { context 446 Zend/zend_compile.c while (i >= CG(context).literals_size) { context 447 Zend/zend_compile.c CG(context).literals_size += 16; /* FIXME */ context 449 Zend/zend_compile.c op_array->literals = (zval*)erealloc(op_array->literals, CG(context).literals_size * sizeof(zval)); context 576 Zend/zend_compile.c int parent = CG(context).current_brk_cont; context 579 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->last_brk_cont; context 587 Zend/zend_compile.c info.u.brk_cont_offset = CG(context).current_brk_cont; context 603 Zend/zend_compile.c = &CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont]; context 606 Zend/zend_compile.c CG(context).current_brk_cont = brk_cont_element->parent; context 3593 Zend/zend_compile.c if (CG(context).in_finally) { context 3596 Zend/zend_compile.c opline->op1.var = CG(context).fast_call_var; context 3670 Zend/zend_compile.c if (CG(context).current_brk_cont == -1) { context 3681 Zend/zend_compile.c opline->op1.num = CG(context).current_brk_cont; context 3694 Zend/zend_compile.c if (CG(context).labels == NULL || context 3695 Zend/zend_compile.c (dest = zend_hash_find_ptr(CG(context).labels, Z_STR_P(label))) == NULL context 3760 Zend/zend_compile.c opline->extended_value = CG(context).current_brk_cont; context 3769 Zend/zend_compile.c if (!CG(context).labels) { context 3770 Zend/zend_compile.c ALLOC_HASHTABLE(CG(context).labels); context 3771 Zend/zend_compile.c zend_hash_init(CG(context).labels, 8, NULL, label_ptr_dtor, 0); context 3774 Zend/zend_compile.c dest.brk_cont = CG(context).current_brk_cont; context 3777 Zend/zend_compile.c if (!zend_hash_add_mem(CG(context).labels, label, &dest, sizeof(zend_label))) { context 4110 Zend/zend_compile.c if (CG(context).labels) { context 4112 Zend/zend_compile.c ZEND_HASH_REVERSE_FOREACH_PTR(CG(context).labels, label) { context 4126 Zend/zend_compile.c CG(context).fast_call_var = get_temporary_variable(CG(active_op_array)); context 4132 Zend/zend_compile.c fast_call.var_num = CG(context).fast_call_var; context 4199 Zend/zend_compile.c opline->result.var = CG(context).fast_call_var; context 4203 Zend/zend_compile.c CG(context).in_finally++; context 4205 Zend/zend_compile.c CG(context).in_finally--; context 4213 Zend/zend_compile.c opline->op1.var = CG(context).fast_call_var; context 6763 Zend/zend_compile.c info->parent = CG(context).current_brk_cont; context 109 Zend/zend_globals.h zend_oparray_context context; context 436 Zend/zend_opcode.c if (next_op_num >= CG(context).opcodes_size) { context 437 Zend/zend_opcode.c CG(context).opcodes_size *= 4; context 438 Zend/zend_opcode.c op_array_alloc_ops(op_array, CG(context).opcodes_size); context 593 Zend/zend_opcode.c if (CG(context).vars_size != op_array->last_var) { context 595 Zend/zend_opcode.c CG(context).vars_size = op_array->last_var; context 597 Zend/zend_opcode.c if (CG(context).opcodes_size != op_array->last) { context 599 Zend/zend_opcode.c CG(context).opcodes_size = op_array->last; context 601 Zend/zend_opcode.c if (CG(context).literals_size != op_array->last_literal) { context 603 Zend/zend_opcode.c CG(context).literals_size = op_array->last_literal; context 54 Zend/zend_signal.c static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context); context 73 Zend/zend_signal.c void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) context 89 Zend/zend_signal.c zend_signal_handler(signo, siginfo, context); context 95 Zend/zend_signal.c zend_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.context); context 111 Zend/zend_signal.c queue->zend_signal.context = context; context 129 Zend/zend_signal.c zend_signal_handler(signo, siginfo, context); context 151 Zend/zend_signal.c zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context); context 160 Zend/zend_signal.c static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context) context 187 Zend/zend_signal.c (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context); context 47 Zend/zend_signal.h void* context; context 84 Zend/zend_signal.h void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context); context 242 ext/bz2/bz2.c php_stream_context *context STREAMS_DC) context 53 ext/bz2/php_bz2.h PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 51 ext/dom/xpath.c ZEND_ARG_OBJ_INFO(0, context, DOMNode, 1) context 57 ext/dom/xpath.c ZEND_ARG_OBJ_INFO(0, context, DOMNode, 1) context 92 ext/dom/xpath.c intern = (dom_xpath_object *) ctxt->context->userData; context 351 ext/dom/xpath.c zval *id, retval, *context = NULL; context 363 ext/dom/xpath.c if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Os|O!b", &id, dom_xpath_class_entry, &expr, &expr_len, &context, dom_node_class_entry, ®ister_node_ns) == FAILURE) { context 381 ext/dom/xpath.c if (context != NULL) { context 382 ext/dom/xpath.c DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); context 136 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 142 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 149 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 155 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 540 ext/fileinfo/fileinfo.c php_stream_context *context = php_stream_context_from_zval(zcontext, 0); context 543 ext/fileinfo/fileinfo.c if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { context 552 ext/fileinfo/fileinfo.c stream = php_stream_open_wrapper_ex(buffer, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); context 554 ext/fileinfo/fileinfo.c stream = php_stream_open_wrapper_ex(buffer, "rb", REPORT_ERRORS, NULL, context); context 387 ext/gd/libgd/gd.h int (*source) (void *context, char *buffer, int len); context 388 ext/gd/libgd/gd.h void *context; context 628 ext/gd/libgd/gd.h int (*sink) (void *context, const char *buffer, int len); context 629 ext/gd/libgd/gd.h void *context; context 86 ext/gd/libgd/gd_io_ss.c res = ((lctx->src->source) (lctx->src->context, buf, size)); context 123 ext/gd/libgd/gd_io_ss.c res = (lctx->snk->sink) (lctx->snk->context, buf, size); context 16 ext/gd/libgd/gdtest.c static int freadWrapper (void *context, char *buf, int len); context 17 ext/gd/libgd/gdtest.c static int fwriteWrapper (void *context, const char *buffer, int len); context 164 ext/gd/libgd/gdtest.c imgsrc.context = in; context 186 ext/gd/libgd/gdtest.c imgsnk.context = out; context 399 ext/gd/libgd/gdtest.c freadWrapper (void *context, char *buf, int len) context 401 ext/gd/libgd/gdtest.c int got = fread (buf, 1, len, (FILE *) context); context 406 ext/gd/libgd/gdtest.c fwriteWrapper (void *context, const char *buffer, int len) context 408 ext/gd/libgd/gdtest.c return fwrite (buffer, 1, len, (FILE *) context); context 126 ext/hash/hash.c void *context; context 150 ext/hash/hash.c context = emalloc(ops->context_size); context 151 ext/hash/hash.c ops->hash_init(context); context 158 ext/hash/hash.c ops->hash_update(context, (unsigned char *) buf, n); context 162 ext/hash/hash.c ops->hash_update(context, (unsigned char *) data, data_len); context 166 ext/hash/hash.c ops->hash_final((unsigned char *) ZSTR_VAL(digest), context); context 167 ext/hash/hash.c efree(context); context 215 ext/hash/hash.c static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) { context 219 ext/hash/hash.c ops->hash_init(context); context 220 ext/hash/hash.c ops->hash_update(context, key, key_len); context 221 ext/hash/hash.c ops->hash_final(K, context); context 229 ext/hash/hash.c static inline void php_hash_hmac_round(unsigned char *final, const php_hash_ops *ops, void *context, const unsigned char *key, const unsigned char *data, const zend_long data_size) { context 230 ext/hash/hash.c ops->hash_init(context); context 231 ext/hash/hash.c ops->hash_update(context, key, ops->block_size); context 232 ext/hash/hash.c ops->hash_update(context, data, data_size); context 233 ext/hash/hash.c ops->hash_final(final, context); context 244 ext/hash/hash.c void *context; context 269 ext/hash/hash.c context = emalloc(ops->context_size); context 274 ext/hash/hash.c php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); context 279 ext/hash/hash.c ops->hash_init(context); context 280 ext/hash/hash.c ops->hash_update(context, K, ops->block_size); context 282 ext/hash/hash.c ops->hash_update(context, (unsigned char *) buf, n); context 285 ext/hash/hash.c ops->hash_final((unsigned char *) ZSTR_VAL(digest), context); context 287 ext/hash/hash.c php_hash_hmac_round((unsigned char *) ZSTR_VAL(digest), ops, context, K, (unsigned char *) data, data_len); context 292 ext/hash/hash.c php_hash_hmac_round((unsigned char *) ZSTR_VAL(digest), ops, context, K, (unsigned char *) ZSTR_VAL(digest), ops->digest_size); context 297 ext/hash/hash.c efree(context); context 340 ext/hash/hash.c void *context; context 361 ext/hash/hash.c context = emalloc(ops->context_size); context 362 ext/hash/hash.c ops->hash_init(context); context 366 ext/hash/hash.c hash->context = context; context 378 ext/hash/hash.c ops->hash_update(context, (unsigned char *) key, key_len); context 379 ext/hash/hash.c ops->hash_final((unsigned char *) K, context); context 381 ext/hash/hash.c ops->hash_init(context); context 390 ext/hash/hash.c ops->hash_update(context, (unsigned char *) K, ops->block_size); context 415 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) data, data_len); context 452 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) buf, n); context 467 ext/hash/hash.c php_stream_context *context; context 479 ext/hash/hash.c context = php_stream_context_from_zval(zcontext, 0); context 481 ext/hash/hash.c stream = php_stream_open_wrapper_ex(filename, "rb", REPORT_ERRORS, NULL, context); context 488 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) buf, n); context 516 ext/hash/hash.c hash->ops->hash_final((unsigned char *) ZSTR_VAL(digest), hash->context); context 526 ext/hash/hash.c hash->ops->hash_init(hash->context); context 527 ext/hash/hash.c hash->ops->hash_update(hash->context, hash->key, hash->ops->block_size); context 528 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) ZSTR_VAL(digest), hash->ops->digest_size); context 529 ext/hash/hash.c hash->ops->hash_final((unsigned char *) ZSTR_VAL(digest), hash->context); context 537 ext/hash/hash.c efree(hash->context); context 538 ext/hash/hash.c hash->context = NULL; context 560 ext/hash/hash.c void *context; context 572 ext/hash/hash.c context = emalloc(hash->ops->context_size); context 573 ext/hash/hash.c hash->ops->hash_init(context); context 575 ext/hash/hash.c res = hash->ops->hash_copy(hash->ops, hash->context, context); context 577 ext/hash/hash.c efree(context); context 583 ext/hash/hash.c copy_hash->context = context; context 618 ext/hash/hash.c void *context; context 645 ext/hash/hash.c context = emalloc(ops->context_size); context 646 ext/hash/hash.c ops->hash_init(context); context 654 ext/hash/hash.c php_hash_hmac_prep_key(K1, ops, context, (unsigned char *) pass, pass_len); context 686 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K1, computed_salt, (zend_long) salt_len + 4); context 687 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); context 699 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K1, digest, ops->digest_size); context 700 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); context 715 ext/hash/hash.c efree(context); context 778 ext/hash/hash.c if (hash->context) { context 780 ext/hash/hash.c hash->ops->hash_final(dummy, hash->context); context 782 ext/hash/hash.c efree(hash->context); context 963 ext/hash/hash.c void *context; context 970 ext/hash/hash.c context = emalloc(ops->context_size); context 971 ext/hash/hash.c ops->hash_init(context); context 977 ext/hash/hash.c ops->hash_init(context); context 980 ext/hash/hash.c ops->hash_update(context, &null, 1); context 982 ext/hash/hash.c ops->hash_update(context, (unsigned char *)padded_salt, salt_len); context 983 ext/hash/hash.c ops->hash_update(context, (unsigned char *)password, password_len); context 984 ext/hash/hash.c ops->hash_final((unsigned char *)digest, context); context 991 ext/hash/hash.c efree(context); context 1165 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1170 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1176 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1178 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1182 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1187 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 25 ext/hash/hash_adler32.c PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) context 27 ext/hash/hash_adler32.c context->state = 1; context 30 ext/hash/hash_adler32.c PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) context 34 ext/hash/hash_adler32.c s[0] = context->state & 0xffff; context 35 ext/hash/hash_adler32.c s[1] = (context->state >> 16) & 0xffff; context 47 ext/hash/hash_adler32.c context->state = s[0] + (s[1] << 16); context 50 ext/hash/hash_adler32.c PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) context 52 ext/hash/hash_adler32.c digest[0] = (unsigned char) ((context->state >> 24) & 0xff); context 53 ext/hash/hash_adler32.c digest[1] = (unsigned char) ((context->state >> 16) & 0xff); context 54 ext/hash/hash_adler32.c digest[2] = (unsigned char) ((context->state >> 8) & 0xff); context 55 ext/hash/hash_adler32.c digest[3] = (unsigned char) (context->state & 0xff); context 56 ext/hash/hash_adler32.c context->state = 0; context 26 ext/hash/hash_crc32.c PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context) context 28 ext/hash/hash_crc32.c context->state = ~0; context 31 ext/hash/hash_crc32.c PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) context 36 ext/hash/hash_crc32.c context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; context 40 ext/hash/hash_crc32.c PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) context 45 ext/hash/hash_crc32.c context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; context 49 ext/hash/hash_crc32.c PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context) context 51 ext/hash/hash_crc32.c context->state=~context->state; context 52 ext/hash/hash_crc32.c digest[3] = (unsigned char) ((context->state >> 24) & 0xff); context 53 ext/hash/hash_crc32.c digest[2] = (unsigned char) ((context->state >> 16) & 0xff); context 54 ext/hash/hash_crc32.c digest[1] = (unsigned char) ((context->state >> 8) & 0xff); context 55 ext/hash/hash_crc32.c digest[0] = (unsigned char) (context->state & 0xff); context 56 ext/hash/hash_crc32.c context->state = 0; context 59 ext/hash/hash_crc32.c PHP_HASH_API void PHP_CRC32BFinal(unsigned char digest[4], PHP_CRC32_CTX *context) context 61 ext/hash/hash_crc32.c context->state=~context->state; context 62 ext/hash/hash_crc32.c digest[0] = (unsigned char) ((context->state >> 24) & 0xff); context 63 ext/hash/hash_crc32.c digest[1] = (unsigned char) ((context->state >> 16) & 0xff); context 64 ext/hash/hash_crc32.c digest[2] = (unsigned char) ((context->state >> 8) & 0xff); context 65 ext/hash/hash_crc32.c digest[3] = (unsigned char) (context->state & 0xff); context 66 ext/hash/hash_crc32.c context->state = 0; context 70 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) context 72 ext/hash/hash_fnv.c context->state = PHP_FNV1_32_INIT; context 76 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, context 79 ext/hash/hash_fnv.c context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); context 82 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, context 85 ext/hash/hash_fnv.c context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); context 88 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) context 91 ext/hash/hash_fnv.c memcpy(digest, &context->state, 4); context 94 ext/hash/hash_fnv.c unsigned char *c = (unsigned char *) &context->state; context 105 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context) context 107 ext/hash/hash_fnv.c context->state = PHP_FNV1_64_INIT; context 111 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, context 114 ext/hash/hash_fnv.c context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); context 117 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, context 120 ext/hash/hash_fnv.c context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); context 123 ext/hash/hash_fnv.c PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) context 126 ext/hash/hash_fnv.c memcpy(digest, &context->state, 8); context 129 ext/hash/hash_fnv.c unsigned char *c = (unsigned char *) &context->state; context 210 ext/hash/hash_gost.c static inline void Gost(PHP_GOST_CTX *context, php_hash_uint32 data[8]) context 213 ext/hash/hash_gost.c php_hash_uint32 l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; context 215 ext/hash/hash_gost.c memcpy(u, context->state, sizeof(u)); context 219 ext/hash/hash_gost.c PASS(*context->tables); context 227 ext/hash/hash_gost.c static inline void GostTransform(PHP_GOST_CTX *context, const unsigned char input[32]) context 235 ext/hash/hash_gost.c save = context->state[i + 8]; context 236 ext/hash/hash_gost.c context->state[i + 8] += data[i] + temp; context 237 ext/hash/hash_gost.c temp = ((context->state[i + 8] < data[i]) || (context->state[i + 8] < save)) ? 1 : 0; context 240 ext/hash/hash_gost.c Gost(context, data); context 243 ext/hash/hash_gost.c PHP_HASH_API void PHP_GOSTInit(PHP_GOST_CTX *context) context 245 ext/hash/hash_gost.c memset(context, 0, sizeof(*context)); context 246 ext/hash/hash_gost.c context->tables = &tables_test; context 249 ext/hash/hash_gost.c PHP_HASH_API void PHP_GOSTInitCrypto(PHP_GOST_CTX *context) context 251 ext/hash/hash_gost.c PHP_GOSTInit(context); context 252 ext/hash/hash_gost.c context->tables = &tables_crypto; context 257 ext/hash/hash_gost.c PHP_HASH_API void PHP_GOSTUpdate(PHP_GOST_CTX *context, const unsigned char *input, size_t len) context 259 ext/hash/hash_gost.c if ((MAX32 - context->count[0]) < (len * 8)) { context 260 ext/hash/hash_gost.c context->count[1]++; context 261 ext/hash/hash_gost.c context->count[0] = MAX32 - context->count[0]; context 262 ext/hash/hash_gost.c context->count[0] = (len * 8) - context->count[0]; context 264 ext/hash/hash_gost.c context->count[0] += len * 8; context 267 ext/hash/hash_gost.c if (context->length + len < 32) { context 268 ext/hash/hash_gost.c memcpy(&context->buffer[context->length], input, len); context 269 ext/hash/hash_gost.c context->length += len; context 271 ext/hash/hash_gost.c size_t i = 0, r = (context->length + len) % 32; context 273 ext/hash/hash_gost.c if (context->length) { context 274 ext/hash/hash_gost.c i = 32 - context->length; context 275 ext/hash/hash_gost.c memcpy(&context->buffer[context->length], input, i); context 276 ext/hash/hash_gost.c GostTransform(context, context->buffer); context 280 ext/hash/hash_gost.c GostTransform(context, input + i); context 283 ext/hash/hash_gost.c memcpy(context->buffer, input + i, r); context 284 ext/hash/hash_gost.c ZEND_SECURE_ZERO(&context->buffer[r], 32 - r); context 285 ext/hash/hash_gost.c context->length = r; context 289 ext/hash/hash_gost.c PHP_HASH_API void PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) context 293 ext/hash/hash_gost.c if (context->length) { context 294 ext/hash/hash_gost.c GostTransform(context, context->buffer); context 297 ext/hash/hash_gost.c memcpy(l, context->count, sizeof(context->count)); context 298 ext/hash/hash_gost.c Gost(context, l); context 299 ext/hash/hash_gost.c memcpy(l, &context->state[8], sizeof(l)); context 300 ext/hash/hash_gost.c Gost(context, l); context 303 ext/hash/hash_gost.c digest[j] = (unsigned char) (context->state[i] & 0xff); context 304 ext/hash/hash_gost.c digest[j + 1] = (unsigned char) ((context->state[i] >> 8) & 0xff); context 305 ext/hash/hash_gost.c digest[j + 2] = (unsigned char) ((context->state[i] >> 16) & 0xff); context 306 ext/hash/hash_gost.c digest[j + 3] = (unsigned char) ((context->state[i] >> 24) & 0xff); context 309 ext/hash/hash_gost.c ZEND_SECURE_ZERO(context, sizeof(*context)); context 259 ext/hash/hash_haval.c PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *context) \ context 260 ext/hash/hash_haval.c { int i; context->count[0] = context->count[1] = 0; \ context 261 ext/hash/hash_haval.c for(i = 0; i < 8; i++) context->state[i] = D0[i]; \ context 262 ext/hash/hash_haval.c context->passes = p; context->output = b; \ context 263 ext/hash/hash_haval.c context->Transform = PHP_##p##HAVALTransform; } context 285 ext/hash/hash_haval.c PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, unsigned int inputLen) context 290 ext/hash/hash_haval.c index = (unsigned int) ((context->count[0] >> 3) & 0x7F); context 292 ext/hash/hash_haval.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 293 ext/hash/hash_haval.c context->count[1]++; context 295 ext/hash/hash_haval.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 302 ext/hash/hash_haval.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 303 ext/hash/hash_haval.c context->Transform(context->state, context->buffer); context 306 ext/hash/hash_haval.c context->Transform(context->state, &input[i]); context 315 ext/hash/hash_haval.c memcpy((unsigned char*) &context->buffer[index], (unsigned char*) &input[i], inputLen - i); context 323 ext/hash/hash_haval.c PHP_HASH_API void PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) context 330 ext/hash/hash_haval.c ((context->passes & 0x07) << 3) | context 331 ext/hash/hash_haval.c ((context->output & 0x03) << 6); context 332 ext/hash/hash_haval.c bits[1] = (context->output >> 2); context 335 ext/hash/hash_haval.c Encode(bits + 2, context->count, 8); context 339 ext/hash/hash_haval.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 341 ext/hash/hash_haval.c PHP_HAVALUpdate(context, PADDING, padLen); context 344 ext/hash/hash_haval.c PHP_HAVALUpdate(context, bits, 10); context 347 ext/hash/hash_haval.c context->state[3] += (context->state[7] & 0xFF000000) | context 348 ext/hash/hash_haval.c (context->state[6] & 0x00FF0000) | context 349 ext/hash/hash_haval.c (context->state[5] & 0x0000FF00) | context 350 ext/hash/hash_haval.c (context->state[4] & 0x000000FF); context 352 ext/hash/hash_haval.c context->state[2] += (((context->state[7] & 0x00FF0000) | context 353 ext/hash/hash_haval.c (context->state[6] & 0x0000FF00) | context 354 ext/hash/hash_haval.c (context->state[5] & 0x000000FF)) << 8) | context 355 ext/hash/hash_haval.c ((context->state[4] & 0xFF000000) >> 24); context 357 ext/hash/hash_haval.c context->state[1] += (((context->state[7] & 0x0000FF00) | context 358 ext/hash/hash_haval.c (context->state[6] & 0x000000FF)) << 16) | context 359 ext/hash/hash_haval.c (((context->state[5] & 0xFF000000) | context 360 ext/hash/hash_haval.c (context->state[4] & 0x00FF0000)) >> 16); context 362 ext/hash/hash_haval.c context->state[0] += ((context->state[7] & 0x000000FF) << 24) | context 363 ext/hash/hash_haval.c (((context->state[6] & 0xFF000000) | context 364 ext/hash/hash_haval.c (context->state[5] & 0x00FF0000) | context 365 ext/hash/hash_haval.c (context->state[4] & 0x0000FF00)) >> 8); context 367 ext/hash/hash_haval.c Encode(digest, context->state, 16); context 371 ext/hash/hash_haval.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 377 ext/hash/hash_haval.c PHP_HASH_API void PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) context 384 ext/hash/hash_haval.c ((context->passes & 0x07) << 3) | context 385 ext/hash/hash_haval.c ((context->output & 0x03) << 6); context 386 ext/hash/hash_haval.c bits[1] = (context->output >> 2); context 389 ext/hash/hash_haval.c Encode(bits + 2, context->count, 8); context 393 ext/hash/hash_haval.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 395 ext/hash/hash_haval.c PHP_HAVALUpdate(context, PADDING, padLen); context 398 ext/hash/hash_haval.c PHP_HAVALUpdate(context, bits, 10); context 401 ext/hash/hash_haval.c context->state[4] += ((context->state[7] & 0xFE000000) | context 402 ext/hash/hash_haval.c (context->state[6] & 0x01F80000) | context 403 ext/hash/hash_haval.c (context->state[5] & 0x0007F000)) >> 12; context 405 ext/hash/hash_haval.c context->state[3] += ((context->state[7] & 0x01F80000) | context 406 ext/hash/hash_haval.c (context->state[6] & 0x0007F000) | context 407 ext/hash/hash_haval.c (context->state[5] & 0x00000FC0)) >> 6; context 409 ext/hash/hash_haval.c context->state[2] += (context->state[7] & 0x0007F000) | context 410 ext/hash/hash_haval.c (context->state[6] & 0x00000FC0) | context 411 ext/hash/hash_haval.c (context->state[5] & 0x0000003F); context 413 ext/hash/hash_haval.c context->state[1] += ROTR((context->state[7] & 0x00000FC0) | context 414 ext/hash/hash_haval.c (context->state[6] & 0x0000003F) | context 415 ext/hash/hash_haval.c (context->state[5] & 0xFE000000), 25); context 417 ext/hash/hash_haval.c context->state[0] += ROTR((context->state[7] & 0x0000003F) | context 418 ext/hash/hash_haval.c (context->state[6] & 0xFE000000) | context 419 ext/hash/hash_haval.c (context->state[5] & 0x01F80000), 19); context 421 ext/hash/hash_haval.c Encode(digest, context->state, 20); context 425 ext/hash/hash_haval.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 431 ext/hash/hash_haval.c PHP_HASH_API void PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) context 438 ext/hash/hash_haval.c ((context->passes & 0x07) << 3) | context 439 ext/hash/hash_haval.c ((context->output & 0x03) << 6); context 440 ext/hash/hash_haval.c bits[1] = (context->output >> 2); context 443 ext/hash/hash_haval.c Encode(bits + 2, context->count, 8); context 447 ext/hash/hash_haval.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 449 ext/hash/hash_haval.c PHP_HAVALUpdate(context, PADDING, padLen); context 452 ext/hash/hash_haval.c PHP_HAVALUpdate(context, bits, 10); context 455 ext/hash/hash_haval.c context->state[5] += ((context->state[7] & 0xFC000000) | (context->state[6] & 0x03E00000)) >> 21; context 456 ext/hash/hash_haval.c context->state[4] += ((context->state[7] & 0x03E00000) | (context->state[6] & 0x001F0000)) >> 16; context 457 ext/hash/hash_haval.c context->state[3] += ((context->state[7] & 0x001F0000) | (context->state[6] & 0x0000FC00)) >> 10; context 458 ext/hash/hash_haval.c context->state[2] += ((context->state[7] & 0x0000FC00) | (context->state[6] & 0x000003E0)) >> 5; context 459 ext/hash/hash_haval.c context->state[1] += (context->state[7] & 0x000003E0) | (context->state[6] & 0x0000001F); context 460 ext/hash/hash_haval.c context->state[0] += ROTR((context->state[7] & 0x0000001F) | (context->state[6] & 0xFC000000), 26); context 461 ext/hash/hash_haval.c Encode(digest, context->state, 24); context 465 ext/hash/hash_haval.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 471 ext/hash/hash_haval.c PHP_HASH_API void PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) context 478 ext/hash/hash_haval.c ((context->passes & 0x07) << 3) | context 479 ext/hash/hash_haval.c ((context->output & 0x03) << 6); context 480 ext/hash/hash_haval.c bits[1] = (context->output >> 2); context 483 ext/hash/hash_haval.c Encode(bits + 2, context->count, 8); context 487 ext/hash/hash_haval.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 489 ext/hash/hash_haval.c PHP_HAVALUpdate(context, PADDING, padLen); context 492 ext/hash/hash_haval.c PHP_HAVALUpdate(context, bits, 10); context 495 ext/hash/hash_haval.c context->state[6] += context->state[7] & 0x0000000F; context 496 ext/hash/hash_haval.c context->state[5] += (context->state[7] >> 4) & 0x0000001F; context 497 ext/hash/hash_haval.c context->state[4] += (context->state[7] >> 9) & 0x0000000F; context 498 ext/hash/hash_haval.c context->state[3] += (context->state[7] >> 13) & 0x0000001F; context 499 ext/hash/hash_haval.c context->state[2] += (context->state[7] >> 18) & 0x0000000F; context 500 ext/hash/hash_haval.c context->state[1] += (context->state[7] >> 22) & 0x0000001F; context 501 ext/hash/hash_haval.c context->state[0] += (context->state[7] >> 27) & 0x0000001F; context 502 ext/hash/hash_haval.c Encode(digest, context->state, 28); context 506 ext/hash/hash_haval.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 512 ext/hash/hash_haval.c PHP_HASH_API void PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) context 519 ext/hash/hash_haval.c ((context->passes & 0x07) << 3) | context 520 ext/hash/hash_haval.c ((context->output & 0x03) << 6); context 521 ext/hash/hash_haval.c bits[1] = (context->output >> 2); context 524 ext/hash/hash_haval.c Encode(bits + 2, context->count, 8); context 528 ext/hash/hash_haval.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 530 ext/hash/hash_haval.c PHP_HAVALUpdate(context, PADDING, padLen); context 533 ext/hash/hash_haval.c PHP_HAVALUpdate(context, bits, 10); context 536 ext/hash/hash_haval.c Encode(digest, context->state, 32); context 540 ext/hash/hash_haval.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 38 ext/hash/hash_joaat.c PHP_HASH_API void PHP_JOAATInit(PHP_JOAAT_CTX *context) context 40 ext/hash/hash_joaat.c context->state = 0; context 43 ext/hash/hash_joaat.c PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, unsigned int inputLen) context 45 ext/hash/hash_joaat.c context->state = joaat_buf((void *)input, inputLen, context->state); context 48 ext/hash/hash_joaat.c PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[4], PHP_JOAAT_CTX * context) context 51 ext/hash/hash_joaat.c memcpy(digest, &context->state, 4); context 54 ext/hash/hash_joaat.c unsigned char *c = (unsigned char *) &context->state; context 60 ext/hash/hash_joaat.c context->state = 0; context 112 ext/hash/hash_md.c PHP_MD5_CTX context; context 120 ext/hash/hash_md.c PHP_MD5Init(&context); context 121 ext/hash/hash_md.c PHP_MD5Update(&context, arg, arg_len); context 122 ext/hash/hash_md.c PHP_MD5Final(digest, &context); context 143 ext/hash/hash_md.c PHP_MD5_CTX context; context 156 ext/hash/hash_md.c PHP_MD5Init(&context); context 159 ext/hash/hash_md.c PHP_MD5Update(&context, buf, n); context 162 ext/hash/hash_md.c PHP_MD5Final(digest, &context); context 267 ext/hash/hash_md.c PHP_HASH_API void PHP_MD5Init(PHP_MD5_CTX * context) context 269 ext/hash/hash_md.c context->count[0] = context->count[1] = 0; context 272 ext/hash/hash_md.c context->state[0] = 0x67452301; context 273 ext/hash/hash_md.c context->state[1] = 0xefcdab89; context 274 ext/hash/hash_md.c context->state[2] = 0x98badcfe; context 275 ext/hash/hash_md.c context->state[3] = 0x10325476; context 284 ext/hash/hash_md.c PHP_HASH_API void PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, context 290 ext/hash/hash_md.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 293 ext/hash/hash_md.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) context 295 ext/hash/hash_md.c context->count[1]++; context 296 ext/hash/hash_md.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 304 ext/hash/hash_md.c ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 305 ext/hash/hash_md.c MD5Transform(context->state, context->buffer); context 308 ext/hash/hash_md.c MD5Transform(context->state, &input[i]); context 316 ext/hash/hash_md.c ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], context 325 ext/hash/hash_md.c PHP_HASH_API void PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) context 331 ext/hash/hash_md.c Encode(bits, context->count, 8); context 335 ext/hash/hash_md.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 337 ext/hash/hash_md.c PHP_MD5Update(context, PADDING, padLen); context 340 ext/hash/hash_md.c PHP_MD5Update(context, bits, 8); context 343 ext/hash/hash_md.c Encode(digest, context->state, 16); context 347 ext/hash/hash_md.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 527 ext/hash/hash_md.c PHP_HASH_API void PHP_MD4Init(PHP_MD4_CTX * context) context 529 ext/hash/hash_md.c context->count[0] = context->count[1] = 0; context 532 ext/hash/hash_md.c context->state[0] = 0x67452301; context 533 ext/hash/hash_md.c context->state[1] = 0xefcdab89; context 534 ext/hash/hash_md.c context->state[2] = 0x98badcfe; context 535 ext/hash/hash_md.c context->state[3] = 0x10325476; context 544 ext/hash/hash_md.c PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX * context, const unsigned char *input, unsigned int inputLen) context 549 ext/hash/hash_md.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 552 ext/hash/hash_md.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) context 554 ext/hash/hash_md.c context->count[1]++; context 555 ext/hash/hash_md.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 562 ext/hash/hash_md.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 563 ext/hash/hash_md.c MD4Transform(context->state, context->buffer); context 566 ext/hash/hash_md.c MD4Transform(context->state, &input[i]); context 575 ext/hash/hash_md.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 583 ext/hash/hash_md.c PHP_HASH_API void PHP_MD4Final(unsigned char digest[16], PHP_MD4_CTX * context) context 589 ext/hash/hash_md.c Encode(bits, context->count, 8); context 593 ext/hash/hash_md.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 595 ext/hash/hash_md.c PHP_MD4Update(context, PADDING, padLen); context 598 ext/hash/hash_md.c PHP_MD4Update(context, bits, 8); context 601 ext/hash/hash_md.c Encode(digest, context->state, 16); context 605 ext/hash/hash_md.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 629 ext/hash/hash_md.c PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context) context 631 ext/hash/hash_md.c memset(context, 0, sizeof(PHP_MD2_CTX)); context 634 ext/hash/hash_md.c static void MD2_Transform(PHP_MD2_CTX *context, const unsigned char *block) context 639 ext/hash/hash_md.c context->state[16+i] = block[i]; context 640 ext/hash/hash_md.c context->state[32+i] = (context->state[16+i] ^ context->state[i]); context 645 ext/hash/hash_md.c t = context->state[j] = context->state[j] ^ MD2_S[t]; context 651 ext/hash/hash_md.c t = context->checksum[15]; context 653 ext/hash/hash_md.c t = context->checksum[i] ^= MD2_S[block[i] ^ t]; context 657 ext/hash/hash_md.c PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) context 661 ext/hash/hash_md.c if (context->in_buffer) { context 662 ext/hash/hash_md.c if (context->in_buffer + len < 16) { context 664 ext/hash/hash_md.c memcpy(context->buffer + context->in_buffer, p, len); context 665 ext/hash/hash_md.c context->in_buffer += len; context 669 ext/hash/hash_md.c memcpy(context->buffer + context->in_buffer, p, 16 - context->in_buffer); context 670 ext/hash/hash_md.c MD2_Transform(context, context->buffer); context 671 ext/hash/hash_md.c p += 16 - context->in_buffer; context 672 ext/hash/hash_md.c context->in_buffer = 0; context 677 ext/hash/hash_md.c MD2_Transform(context, p); context 683 ext/hash/hash_md.c memcpy(context->buffer, p, e - p); context 684 ext/hash/hash_md.c context->in_buffer = e - p; context 688 ext/hash/hash_md.c PHP_HASH_API void PHP_MD2Final(unsigned char output[16], PHP_MD2_CTX *context) context 690 ext/hash/hash_md.c memset(context->buffer + context->in_buffer, 16 - context->in_buffer, 16 - context->in_buffer); context 691 ext/hash/hash_md.c MD2_Transform(context, context->buffer); context 692 ext/hash/hash_md.c MD2_Transform(context, context->checksum); context 694 ext/hash/hash_md.c memcpy(output, context->state, 16); context 71 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD128Init(PHP_RIPEMD128_CTX * context) context 73 ext/hash/hash_ripemd.c context->count[0] = context->count[1] = 0; context 76 ext/hash/hash_ripemd.c context->state[0] = 0x67452301; context 77 ext/hash/hash_ripemd.c context->state[1] = 0xEFCDAB89; context 78 ext/hash/hash_ripemd.c context->state[2] = 0x98BADCFE; context 79 ext/hash/hash_ripemd.c context->state[3] = 0x10325476; context 86 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD256Init(PHP_RIPEMD256_CTX * context) context 88 ext/hash/hash_ripemd.c context->count[0] = context->count[1] = 0; context 91 ext/hash/hash_ripemd.c context->state[0] = 0x67452301; context 92 ext/hash/hash_ripemd.c context->state[1] = 0xEFCDAB89; context 93 ext/hash/hash_ripemd.c context->state[2] = 0x98BADCFE; context 94 ext/hash/hash_ripemd.c context->state[3] = 0x10325476; context 95 ext/hash/hash_ripemd.c context->state[4] = 0x76543210; context 96 ext/hash/hash_ripemd.c context->state[5] = 0xFEDCBA98; context 97 ext/hash/hash_ripemd.c context->state[6] = 0x89ABCDEF; context 98 ext/hash/hash_ripemd.c context->state[7] = 0x01234567; context 105 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD160Init(PHP_RIPEMD160_CTX * context) context 107 ext/hash/hash_ripemd.c context->count[0] = context->count[1] = 0; context 110 ext/hash/hash_ripemd.c context->state[0] = 0x67452301; context 111 ext/hash/hash_ripemd.c context->state[1] = 0xEFCDAB89; context 112 ext/hash/hash_ripemd.c context->state[2] = 0x98BADCFE; context 113 ext/hash/hash_ripemd.c context->state[3] = 0x10325476; context 114 ext/hash/hash_ripemd.c context->state[4] = 0xC3D2E1F0; context 121 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD320Init(PHP_RIPEMD320_CTX * context) context 123 ext/hash/hash_ripemd.c context->count[0] = context->count[1] = 0; context 126 ext/hash/hash_ripemd.c context->state[0] = 0x67452301; context 127 ext/hash/hash_ripemd.c context->state[1] = 0xEFCDAB89; context 128 ext/hash/hash_ripemd.c context->state[2] = 0x98BADCFE; context 129 ext/hash/hash_ripemd.c context->state[3] = 0x10325476; context 130 ext/hash/hash_ripemd.c context->state[4] = 0xC3D2E1F0; context 131 ext/hash/hash_ripemd.c context->state[5] = 0x76543210; context 132 ext/hash/hash_ripemd.c context->state[6] = 0xFEDCBA98; context 133 ext/hash/hash_ripemd.c context->state[7] = 0x89ABCDEF; context 134 ext/hash/hash_ripemd.c context->state[8] = 0x01234567; context 135 ext/hash/hash_ripemd.c context->state[9] = 0x3C2D1E0F; context 256 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD128Update(PHP_RIPEMD128_CTX * context, const unsigned char *input, unsigned int inputLen) context 261 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 264 ext/hash/hash_ripemd.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 265 ext/hash/hash_ripemd.c context->count[1]++; context 267 ext/hash/hash_ripemd.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 274 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 275 ext/hash/hash_ripemd.c RIPEMD128Transform(context->state, context->buffer); context 278 ext/hash/hash_ripemd.c RIPEMD128Transform(context->state, &input[i]); context 287 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 354 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD256Update(PHP_RIPEMD256_CTX * context, const unsigned char *input, unsigned int inputLen) context 359 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 362 ext/hash/hash_ripemd.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 363 ext/hash/hash_ripemd.c context->count[1]++; context 365 ext/hash/hash_ripemd.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 372 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 373 ext/hash/hash_ripemd.c RIPEMD256Transform(context->state, context->buffer); context 376 ext/hash/hash_ripemd.c RIPEMD256Transform(context->state, &input[i]); context 385 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 453 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD160Update(PHP_RIPEMD160_CTX * context, const unsigned char *input, unsigned int inputLen) context 458 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 461 ext/hash/hash_ripemd.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 462 ext/hash/hash_ripemd.c context->count[1]++; context 464 ext/hash/hash_ripemd.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 471 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 472 ext/hash/hash_ripemd.c RIPEMD160Transform(context->state, context->buffer); context 475 ext/hash/hash_ripemd.c RIPEMD160Transform(context->state, &input[i]); context 484 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 561 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD320Update(PHP_RIPEMD320_CTX * context, const unsigned char *input, unsigned int inputLen) context 566 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 569 ext/hash/hash_ripemd.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 570 ext/hash/hash_ripemd.c context->count[1]++; context 572 ext/hash/hash_ripemd.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 579 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 580 ext/hash/hash_ripemd.c RIPEMD320Transform(context->state, context->buffer); context 583 ext/hash/hash_ripemd.c RIPEMD320Transform(context->state, &input[i]); context 592 ext/hash/hash_ripemd.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 624 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD128Final(unsigned char digest[16], PHP_RIPEMD128_CTX * context) context 630 ext/hash/hash_ripemd.c bits[0] = (unsigned char) (context->count[0] & 0xFF); context 631 ext/hash/hash_ripemd.c bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 632 ext/hash/hash_ripemd.c bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 633 ext/hash/hash_ripemd.c bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 634 ext/hash/hash_ripemd.c bits[4] = (unsigned char) (context->count[1] & 0xFF); context 635 ext/hash/hash_ripemd.c bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 636 ext/hash/hash_ripemd.c bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 637 ext/hash/hash_ripemd.c bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 641 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 643 ext/hash/hash_ripemd.c PHP_RIPEMD128Update(context, PADDING, padLen); context 646 ext/hash/hash_ripemd.c PHP_RIPEMD128Update(context, bits, 8); context 649 ext/hash/hash_ripemd.c RIPEMDEncode(digest, context->state, 16); context 653 ext/hash/hash_ripemd.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 661 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD256Final(unsigned char digest[32], PHP_RIPEMD256_CTX * context) context 667 ext/hash/hash_ripemd.c bits[0] = (unsigned char) (context->count[0] & 0xFF); context 668 ext/hash/hash_ripemd.c bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 669 ext/hash/hash_ripemd.c bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 670 ext/hash/hash_ripemd.c bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 671 ext/hash/hash_ripemd.c bits[4] = (unsigned char) (context->count[1] & 0xFF); context 672 ext/hash/hash_ripemd.c bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 673 ext/hash/hash_ripemd.c bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 674 ext/hash/hash_ripemd.c bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 678 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 680 ext/hash/hash_ripemd.c PHP_RIPEMD256Update(context, PADDING, padLen); context 683 ext/hash/hash_ripemd.c PHP_RIPEMD256Update(context, bits, 8); context 686 ext/hash/hash_ripemd.c RIPEMDEncode(digest, context->state, 32); context 690 ext/hash/hash_ripemd.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 698 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD160Final(unsigned char digest[20], PHP_RIPEMD160_CTX * context) context 704 ext/hash/hash_ripemd.c bits[0] = (unsigned char) (context->count[0] & 0xFF); context 705 ext/hash/hash_ripemd.c bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 706 ext/hash/hash_ripemd.c bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 707 ext/hash/hash_ripemd.c bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 708 ext/hash/hash_ripemd.c bits[4] = (unsigned char) (context->count[1] & 0xFF); context 709 ext/hash/hash_ripemd.c bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 710 ext/hash/hash_ripemd.c bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 711 ext/hash/hash_ripemd.c bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 715 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 717 ext/hash/hash_ripemd.c PHP_RIPEMD160Update(context, PADDING, padLen); context 720 ext/hash/hash_ripemd.c PHP_RIPEMD160Update(context, bits, 8); context 723 ext/hash/hash_ripemd.c RIPEMDEncode(digest, context->state, 20); context 727 ext/hash/hash_ripemd.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 735 ext/hash/hash_ripemd.c PHP_HASH_API void PHP_RIPEMD320Final(unsigned char digest[40], PHP_RIPEMD320_CTX * context) context 741 ext/hash/hash_ripemd.c bits[0] = (unsigned char) (context->count[0] & 0xFF); context 742 ext/hash/hash_ripemd.c bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 743 ext/hash/hash_ripemd.c bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 744 ext/hash/hash_ripemd.c bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 745 ext/hash/hash_ripemd.c bits[4] = (unsigned char) (context->count[1] & 0xFF); context 746 ext/hash/hash_ripemd.c bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 747 ext/hash/hash_ripemd.c bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 748 ext/hash/hash_ripemd.c bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 752 ext/hash/hash_ripemd.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 754 ext/hash/hash_ripemd.c PHP_RIPEMD320Update(context, PADDING, padLen); context 757 ext/hash/hash_ripemd.c PHP_RIPEMD320Update(context, bits, 8); context 760 ext/hash/hash_ripemd.c RIPEMDEncode(digest, context->state, 40); context 764 ext/hash/hash_ripemd.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 95 ext/hash/hash_sha.c PHP_SHA1_CTX context; context 103 ext/hash/hash_sha.c PHP_SHA1Init(&context); context 104 ext/hash/hash_sha.c PHP_SHA1Update(&context, arg, arg_len); context 105 ext/hash/hash_sha.c PHP_SHA1Final(digest, &context); context 127 ext/hash/hash_sha.c PHP_SHA1_CTX context; context 140 ext/hash/hash_sha.c PHP_SHA1Init(&context); context 143 ext/hash/hash_sha.c PHP_SHA1Update(&context, buf, n); context 146 ext/hash/hash_sha.c PHP_SHA1Final(digest, &context); context 206 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA1Init(PHP_SHA1_CTX * context) context 208 ext/hash/hash_sha.c context->count[0] = context->count[1] = 0; context 211 ext/hash/hash_sha.c context->state[0] = 0x67452301; context 212 ext/hash/hash_sha.c context->state[1] = 0xefcdab89; context 213 ext/hash/hash_sha.c context->state[2] = 0x98badcfe; context 214 ext/hash/hash_sha.c context->state[3] = 0x10325476; context 215 ext/hash/hash_sha.c context->state[4] = 0xc3d2e1f0; context 333 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, context 339 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 342 ext/hash/hash_sha.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) context 344 ext/hash/hash_sha.c context->count[1]++; context 345 ext/hash/hash_sha.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 353 ext/hash/hash_sha.c ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 354 ext/hash/hash_sha.c SHA1Transform(context->state, context->buffer); context 357 ext/hash/hash_sha.c SHA1Transform(context->state, &input[i]); context 365 ext/hash/hash_sha.c ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], context 374 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) context 380 ext/hash/hash_sha.c bits[7] = context->count[0] & 0xFF; context 381 ext/hash/hash_sha.c bits[6] = (context->count[0] >> 8) & 0xFF; context 382 ext/hash/hash_sha.c bits[5] = (context->count[0] >> 16) & 0xFF; context 383 ext/hash/hash_sha.c bits[4] = (context->count[0] >> 24) & 0xFF; context 384 ext/hash/hash_sha.c bits[3] = context->count[1] & 0xFF; context 385 ext/hash/hash_sha.c bits[2] = (context->count[1] >> 8) & 0xFF; context 386 ext/hash/hash_sha.c bits[1] = (context->count[1] >> 16) & 0xFF; context 387 ext/hash/hash_sha.c bits[0] = (context->count[1] >> 24) & 0xFF; context 391 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 393 ext/hash/hash_sha.c PHP_SHA1Update(context, PADDING, padLen); context 396 ext/hash/hash_sha.c PHP_SHA1Update(context, bits, 8); context 399 ext/hash/hash_sha.c SHAEncode32(digest, context->state, 20); context 403 ext/hash/hash_sha.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 461 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA256Init(PHP_SHA256_CTX * context) context 463 ext/hash/hash_sha.c context->count[0] = context->count[1] = 0; context 466 ext/hash/hash_sha.c context->state[0] = 0x6a09e667; context 467 ext/hash/hash_sha.c context->state[1] = 0xbb67ae85; context 468 ext/hash/hash_sha.c context->state[2] = 0x3c6ef372; context 469 ext/hash/hash_sha.c context->state[3] = 0xa54ff53a; context 470 ext/hash/hash_sha.c context->state[4] = 0x510e527f; context 471 ext/hash/hash_sha.c context->state[5] = 0x9b05688c; context 472 ext/hash/hash_sha.c context->state[6] = 0x1f83d9ab; context 473 ext/hash/hash_sha.c context->state[7] = 0x5be0cd19; context 521 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA224Init(PHP_SHA224_CTX * context) context 523 ext/hash/hash_sha.c context->count[0] = context->count[1] = 0; context 526 ext/hash/hash_sha.c context->state[0] = 0xc1059ed8; context 527 ext/hash/hash_sha.c context->state[1] = 0x367cd507; context 528 ext/hash/hash_sha.c context->state[2] = 0x3070dd17; context 529 ext/hash/hash_sha.c context->state[3] = 0xf70e5939; context 530 ext/hash/hash_sha.c context->state[4] = 0xffc00b31; context 531 ext/hash/hash_sha.c context->state[5] = 0x68581511; context 532 ext/hash/hash_sha.c context->state[6] = 0x64f98fa7; context 533 ext/hash/hash_sha.c context->state[7] = 0xbefa4fa4; context 542 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA224Update(PHP_SHA224_CTX * context, const unsigned char *input, unsigned int inputLen) context 547 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 550 ext/hash/hash_sha.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 551 ext/hash/hash_sha.c context->count[1]++; context 553 ext/hash/hash_sha.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 560 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 561 ext/hash/hash_sha.c SHA256Transform(context->state, context->buffer); context 564 ext/hash/hash_sha.c SHA256Transform(context->state, &input[i]); context 573 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 581 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA224Final(unsigned char digest[28], PHP_SHA224_CTX * context) context 587 ext/hash/hash_sha.c bits[7] = (unsigned char) (context->count[0] & 0xFF); context 588 ext/hash/hash_sha.c bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 589 ext/hash/hash_sha.c bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 590 ext/hash/hash_sha.c bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 591 ext/hash/hash_sha.c bits[3] = (unsigned char) (context->count[1] & 0xFF); context 592 ext/hash/hash_sha.c bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 593 ext/hash/hash_sha.c bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 594 ext/hash/hash_sha.c bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 598 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 600 ext/hash/hash_sha.c PHP_SHA224Update(context, PADDING, padLen); context 603 ext/hash/hash_sha.c PHP_SHA224Update(context, bits, 8); context 606 ext/hash/hash_sha.c SHAEncode32(digest, context->state, 28); context 610 ext/hash/hash_sha.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 619 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA256Update(PHP_SHA256_CTX * context, const unsigned char *input, unsigned int inputLen) context 624 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 627 ext/hash/hash_sha.c if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { context 628 ext/hash/hash_sha.c context->count[1]++; context 630 ext/hash/hash_sha.c context->count[1] += ((php_hash_uint32) inputLen >> 29); context 637 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 638 ext/hash/hash_sha.c SHA256Transform(context->state, context->buffer); context 641 ext/hash/hash_sha.c SHA256Transform(context->state, &input[i]); context 650 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 658 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA256Final(unsigned char digest[32], PHP_SHA256_CTX * context) context 664 ext/hash/hash_sha.c bits[7] = (unsigned char) (context->count[0] & 0xFF); context 665 ext/hash/hash_sha.c bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 666 ext/hash/hash_sha.c bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 667 ext/hash/hash_sha.c bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 668 ext/hash/hash_sha.c bits[3] = (unsigned char) (context->count[1] & 0xFF); context 669 ext/hash/hash_sha.c bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 670 ext/hash/hash_sha.c bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 671 ext/hash/hash_sha.c bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 675 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 677 ext/hash/hash_sha.c PHP_SHA256Update(context, PADDING, padLen); context 680 ext/hash/hash_sha.c PHP_SHA256Update(context, bits, 8); context 683 ext/hash/hash_sha.c SHAEncode32(digest, context->state, 32); context 687 ext/hash/hash_sha.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 770 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA384Init(PHP_SHA384_CTX * context) context 772 ext/hash/hash_sha.c context->count[0] = context->count[1] = 0; context 775 ext/hash/hash_sha.c context->state[0] = L64(0xcbbb9d5dc1059ed8); context 776 ext/hash/hash_sha.c context->state[1] = L64(0x629a292a367cd507); context 777 ext/hash/hash_sha.c context->state[2] = L64(0x9159015a3070dd17); context 778 ext/hash/hash_sha.c context->state[3] = L64(0x152fecd8f70e5939); context 779 ext/hash/hash_sha.c context->state[4] = L64(0x67332667ffc00b31); context 780 ext/hash/hash_sha.c context->state[5] = L64(0x8eb44a8768581511); context 781 ext/hash/hash_sha.c context->state[6] = L64(0xdb0c2e0d64f98fa7); context 782 ext/hash/hash_sha.c context->state[7] = L64(0x47b5481dbefa4fa4); context 833 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA384Update(PHP_SHA384_CTX * context, const unsigned char *input, unsigned int inputLen) context 838 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x7F); context 841 ext/hash/hash_sha.c if ((context->count[0] += ((php_hash_uint64) inputLen << 3)) < ((php_hash_uint64) inputLen << 3)) { context 842 ext/hash/hash_sha.c context->count[1]++; context 844 ext/hash/hash_sha.c context->count[1] += ((php_hash_uint64) inputLen >> 61); context 851 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 852 ext/hash/hash_sha.c SHA512Transform(context->state, context->buffer); context 855 ext/hash/hash_sha.c SHA512Transform(context->state, &input[i]); context 864 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 872 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA384Final(unsigned char digest[48], PHP_SHA384_CTX * context) context 878 ext/hash/hash_sha.c bits[15] = (unsigned char) (context->count[0] & 0xFF); context 879 ext/hash/hash_sha.c bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 880 ext/hash/hash_sha.c bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 881 ext/hash/hash_sha.c bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 882 ext/hash/hash_sha.c bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); context 883 ext/hash/hash_sha.c bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); context 884 ext/hash/hash_sha.c bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); context 885 ext/hash/hash_sha.c bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); context 886 ext/hash/hash_sha.c bits[7] = (unsigned char) (context->count[1] & 0xFF); context 887 ext/hash/hash_sha.c bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 888 ext/hash/hash_sha.c bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 889 ext/hash/hash_sha.c bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 890 ext/hash/hash_sha.c bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); context 891 ext/hash/hash_sha.c bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); context 892 ext/hash/hash_sha.c bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); context 893 ext/hash/hash_sha.c bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); context 897 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 899 ext/hash/hash_sha.c PHP_SHA384Update(context, PADDING, padLen); context 902 ext/hash/hash_sha.c PHP_SHA384Update(context, bits, 16); context 905 ext/hash/hash_sha.c SHAEncode64(digest, context->state, 48); context 909 ext/hash/hash_sha.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 926 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA512Init(PHP_SHA512_CTX * context) context 928 ext/hash/hash_sha.c context->count[0] = context->count[1] = 0; context 931 ext/hash/hash_sha.c context->state[0] = L64(0x6a09e667f3bcc908); context 932 ext/hash/hash_sha.c context->state[1] = L64(0xbb67ae8584caa73b); context 933 ext/hash/hash_sha.c context->state[2] = L64(0x3c6ef372fe94f82b); context 934 ext/hash/hash_sha.c context->state[3] = L64(0xa54ff53a5f1d36f1); context 935 ext/hash/hash_sha.c context->state[4] = L64(0x510e527fade682d1); context 936 ext/hash/hash_sha.c context->state[5] = L64(0x9b05688c2b3e6c1f); context 937 ext/hash/hash_sha.c context->state[6] = L64(0x1f83d9abfb41bd6b); context 938 ext/hash/hash_sha.c context->state[7] = L64(0x5be0cd19137e2179); context 947 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA512Update(PHP_SHA512_CTX * context, const unsigned char *input, unsigned int inputLen) context 952 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x7F); context 955 ext/hash/hash_sha.c if ((context->count[0] += ((php_hash_uint64) inputLen << 3)) < ((php_hash_uint64) inputLen << 3)) { context 956 ext/hash/hash_sha.c context->count[1]++; context 958 ext/hash/hash_sha.c context->count[1] += ((php_hash_uint64) inputLen >> 61); context 965 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 966 ext/hash/hash_sha.c SHA512Transform(context->state, context->buffer); context 969 ext/hash/hash_sha.c SHA512Transform(context->state, &input[i]); context 978 ext/hash/hash_sha.c memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); context 986 ext/hash/hash_sha.c PHP_HASH_API void PHP_SHA512Final(unsigned char digest[64], PHP_SHA512_CTX * context) context 992 ext/hash/hash_sha.c bits[15] = (unsigned char) (context->count[0] & 0xFF); context 993 ext/hash/hash_sha.c bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); context 994 ext/hash/hash_sha.c bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); context 995 ext/hash/hash_sha.c bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); context 996 ext/hash/hash_sha.c bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); context 997 ext/hash/hash_sha.c bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); context 998 ext/hash/hash_sha.c bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); context 999 ext/hash/hash_sha.c bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); context 1000 ext/hash/hash_sha.c bits[7] = (unsigned char) (context->count[1] & 0xFF); context 1001 ext/hash/hash_sha.c bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); context 1002 ext/hash/hash_sha.c bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); context 1003 ext/hash/hash_sha.c bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); context 1004 ext/hash/hash_sha.c bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); context 1005 ext/hash/hash_sha.c bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); context 1006 ext/hash/hash_sha.c bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); context 1007 ext/hash/hash_sha.c bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); context 1011 ext/hash/hash_sha.c index = (unsigned int) ((context->count[0] >> 3) & 0x7f); context 1013 ext/hash/hash_sha.c PHP_SHA512Update(context, PADDING, padLen); context 1016 ext/hash/hash_sha.c PHP_SHA512Update(context, bits, 16); context 1019 ext/hash/hash_sha.c SHAEncode64(digest, context->state, 64); context 1023 ext/hash/hash_sha.c ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); context 123 ext/hash/hash_snefru.c static inline void SnefruTransform(PHP_SNEFRU_CTX *context, const unsigned char input[32]) context 128 ext/hash/hash_snefru.c context->state[8+j] = ((input[i] & 0xff) << 24) | ((input[i+1] & 0xff) << 16) | context 131 ext/hash/hash_snefru.c Snefru(context->state); context 132 ext/hash/hash_snefru.c memset(&context->state[8], 0, sizeof(php_hash_uint32) * 8); context 135 ext/hash/hash_snefru.c PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *context) context 137 ext/hash/hash_snefru.c memset(context, 0, sizeof(*context)); context 142 ext/hash/hash_snefru.c PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) context 144 ext/hash/hash_snefru.c if ((MAX32 - context->count[1]) < (len * 8)) { context 145 ext/hash/hash_snefru.c context->count[0]++; context 146 ext/hash/hash_snefru.c context->count[1] = MAX32 - context->count[1]; context 147 ext/hash/hash_snefru.c context->count[1] = (len * 8) - context->count[1]; context 149 ext/hash/hash_snefru.c context->count[1] += len * 8; context 152 ext/hash/hash_snefru.c if (context->length + len < 32) { context 153 ext/hash/hash_snefru.c memcpy(&context->buffer[context->length], input, len); context 154 ext/hash/hash_snefru.c context->length += len; context 156 ext/hash/hash_snefru.c size_t i = 0, r = (context->length + len) % 32; context 158 ext/hash/hash_snefru.c if (context->length) { context 159 ext/hash/hash_snefru.c i = 32 - context->length; context 160 ext/hash/hash_snefru.c memcpy(&context->buffer[context->length], input, i); context 161 ext/hash/hash_snefru.c SnefruTransform(context, context->buffer); context 165 ext/hash/hash_snefru.c SnefruTransform(context, input + i); context 168 ext/hash/hash_snefru.c memcpy(context->buffer, input + i, r); context 169 ext/hash/hash_snefru.c ZEND_SECURE_ZERO(&context->buffer[r], 32 - r); context 170 ext/hash/hash_snefru.c context->length = r; context 174 ext/hash/hash_snefru.c PHP_HASH_API void PHP_SNEFRUFinal(unsigned char digest[32], PHP_SNEFRU_CTX *context) context 178 ext/hash/hash_snefru.c if (context->length) { context 179 ext/hash/hash_snefru.c SnefruTransform(context, context->buffer); context 182 ext/hash/hash_snefru.c context->state[14] = context->count[0]; context 183 ext/hash/hash_snefru.c context->state[15] = context->count[1]; context 184 ext/hash/hash_snefru.c Snefru(context->state); context 187 ext/hash/hash_snefru.c digest[j] = (unsigned char) ((context->state[i] >> 24) & 0xff); context 188 ext/hash/hash_snefru.c digest[j + 1] = (unsigned char) ((context->state[i] >> 16) & 0xff); context 189 ext/hash/hash_snefru.c digest[j + 2] = (unsigned char) ((context->state[i] >> 8) & 0xff); context 190 ext/hash/hash_snefru.c digest[j + 3] = (unsigned char) (context->state[i] & 0xff); context 193 ext/hash/hash_snefru.c ZEND_SECURE_ZERO(context, sizeof(*context)); context 139 ext/hash/hash_tiger.c static inline void TigerFinalize(PHP_TIGER_CTX *context) context 141 ext/hash/hash_tiger.c context->passed += (php_hash_uint64) context->length << 3; context 143 ext/hash/hash_tiger.c context->buffer[context->length++] = 0x1; context 144 ext/hash/hash_tiger.c if (context->length % 8) { context 145 ext/hash/hash_tiger.c memset(&context->buffer[context->length], 0, 8-context->length%8); context 146 ext/hash/hash_tiger.c context->length += 8-context->length%8; context 149 ext/hash/hash_tiger.c if (context->length > 56) { context 150 ext/hash/hash_tiger.c memset(&context->buffer[context->length], 0, 64 - context->length); context 151 ext/hash/hash_tiger.c tiger_compress(context->passes, ((php_hash_uint64 *) context->buffer), context->state); context 152 ext/hash/hash_tiger.c memset(context->buffer, 0, 56); context 154 ext/hash/hash_tiger.c memset(&context->buffer[context->length], 0, 56 - context->length); context 158 ext/hash/hash_tiger.c memcpy(&context->buffer[56], &context->passed, sizeof(php_hash_uint64)); context 160 ext/hash/hash_tiger.c context->buffer[56] = (unsigned char) (context->passed & 0xff); context 161 ext/hash/hash_tiger.c context->buffer[57] = (unsigned char) ((context->passed >> 8) & 0xff); context 162 ext/hash/hash_tiger.c context->buffer[58] = (unsigned char) ((context->passed >> 16) & 0xff); context 163 ext/hash/hash_tiger.c context->buffer[59] = (unsigned char) ((context->passed >> 24) & 0xff); context 164 ext/hash/hash_tiger.c context->buffer[60] = (unsigned char) ((context->passed >> 32) & 0xff); context 165 ext/hash/hash_tiger.c context->buffer[61] = (unsigned char) ((context->passed >> 40) & 0xff); context 166 ext/hash/hash_tiger.c context->buffer[62] = (unsigned char) ((context->passed >> 48) & 0xff); context 167 ext/hash/hash_tiger.c context->buffer[63] = (unsigned char) ((context->passed >> 56) & 0xff); context 169 ext/hash/hash_tiger.c tiger_compress(context->passes, ((php_hash_uint64 *) context->buffer), context->state); context 172 ext/hash/hash_tiger.c static inline void TigerDigest(unsigned char *digest_str, unsigned int digest_len, PHP_TIGER_CTX *context) context 177 ext/hash/hash_tiger.c digest_str[i] = (unsigned char) ((context->state[i/8] >> (8 * (i%8))) & 0xff); context 181 ext/hash/hash_tiger.c PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context) context 183 ext/hash/hash_tiger.c memset(context, 0, sizeof(*context)); context 184 ext/hash/hash_tiger.c context->state[0] = L64(0x0123456789ABCDEF); context 185 ext/hash/hash_tiger.c context->state[1] = L64(0xFEDCBA9876543210); context 186 ext/hash/hash_tiger.c context->state[2] = L64(0xF096A5B4C3B2E187); context 189 ext/hash/hash_tiger.c PHP_HASH_API void PHP_4TIGERInit(PHP_TIGER_CTX *context) context 191 ext/hash/hash_tiger.c memset(context, 0, sizeof(*context)); context 192 ext/hash/hash_tiger.c context->passes = 1; context 193 ext/hash/hash_tiger.c context->state[0] = L64(0x0123456789ABCDEF); context 194 ext/hash/hash_tiger.c context->state[1] = L64(0xFEDCBA9876543210); context 195 ext/hash/hash_tiger.c context->state[2] = L64(0xF096A5B4C3B2E187); context 198 ext/hash/hash_tiger.c PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len) context 200 ext/hash/hash_tiger.c if (context->length + len < 64) { context 201 ext/hash/hash_tiger.c memcpy(&context->buffer[context->length], input, len); context 202 ext/hash/hash_tiger.c context->length += len; context 204 ext/hash/hash_tiger.c size_t i = 0, r = (context->length + len) % 64; context 206 ext/hash/hash_tiger.c if (context->length) { context 207 ext/hash/hash_tiger.c i = 64 - context->length; context 208 ext/hash/hash_tiger.c memcpy(&context->buffer[context->length], input, i); context 209 ext/hash/hash_tiger.c tiger_compress(context->passes, ((const php_hash_uint64 *) context->buffer), context->state); context 210 ext/hash/hash_tiger.c ZEND_SECURE_ZERO(context->buffer, 64); context 211 ext/hash/hash_tiger.c context->passed += 512; context 215 ext/hash/hash_tiger.c memcpy(context->buffer, &input[i], 64); context 216 ext/hash/hash_tiger.c tiger_compress(context->passes, ((const php_hash_uint64 *) context->buffer), context->state); context 217 ext/hash/hash_tiger.c context->passed += 512; context 219 ext/hash/hash_tiger.c ZEND_SECURE_ZERO(&context->buffer[r], 64-r); context 220 ext/hash/hash_tiger.c memcpy(context->buffer, &input[i], r); context 221 ext/hash/hash_tiger.c context->length = r; context 225 ext/hash/hash_tiger.c PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) context 227 ext/hash/hash_tiger.c TigerFinalize(context); context 228 ext/hash/hash_tiger.c TigerDigest(digest, 16, context); context 229 ext/hash/hash_tiger.c ZEND_SECURE_ZERO(context, sizeof(*context)); context 232 ext/hash/hash_tiger.c PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) context 234 ext/hash/hash_tiger.c TigerFinalize(context); context 235 ext/hash/hash_tiger.c TigerDigest(digest, 20, context); context 236 ext/hash/hash_tiger.c ZEND_SECURE_ZERO(context, sizeof(*context)); context 239 ext/hash/hash_tiger.c PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) context 241 ext/hash/hash_tiger.c TigerFinalize(context); context 242 ext/hash/hash_tiger.c TigerDigest(digest, 24, context); context 243 ext/hash/hash_tiger.c ZEND_SECURE_ZERO(context, sizeof(*context)); context 41 ext/hash/hash_whirlpool.c static void WhirlpoolTransform(PHP_WHIRLPOOL_CTX *context) context 48 ext/hash/hash_whirlpool.c unsigned char *buffer = context->buffer.data; context 67 ext/hash/hash_whirlpool.c state[0] = block[0] ^ (K[0] = context->state[0]); context 68 ext/hash/hash_whirlpool.c state[1] = block[1] ^ (K[1] = context->state[1]); context 69 ext/hash/hash_whirlpool.c state[2] = block[2] ^ (K[2] = context->state[2]); context 70 ext/hash/hash_whirlpool.c state[3] = block[3] ^ (K[3] = context->state[3]); context 71 ext/hash/hash_whirlpool.c state[4] = block[4] ^ (K[4] = context->state[4]); context 72 ext/hash/hash_whirlpool.c state[5] = block[5] ^ (K[5] = context->state[5]); context 73 ext/hash/hash_whirlpool.c state[6] = block[6] ^ (K[6] = context->state[6]); context 74 ext/hash/hash_whirlpool.c state[7] = block[7] ^ (K[7] = context->state[7]); context 258 ext/hash/hash_whirlpool.c context->state[0] ^= state[0] ^ block[0]; context 259 ext/hash/hash_whirlpool.c context->state[1] ^= state[1] ^ block[1]; context 260 ext/hash/hash_whirlpool.c context->state[2] ^= state[2] ^ block[2]; context 261 ext/hash/hash_whirlpool.c context->state[3] ^= state[3] ^ block[3]; context 262 ext/hash/hash_whirlpool.c context->state[4] ^= state[4] ^ block[4]; context 263 ext/hash/hash_whirlpool.c context->state[5] ^= state[5] ^ block[5]; context 264 ext/hash/hash_whirlpool.c context->state[6] ^= state[6] ^ block[6]; context 265 ext/hash/hash_whirlpool.c context->state[7] ^= state[7] ^ block[7]; context 270 ext/hash/hash_whirlpool.c PHP_HASH_API void PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *context) context 272 ext/hash/hash_whirlpool.c memset(context, 0, sizeof(*context)); context 275 ext/hash/hash_whirlpool.c PHP_HASH_API void PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *context, const unsigned char *input, size_t len) context 280 ext/hash/hash_whirlpool.c int bufferRem = context->buffer.bits & 7; /* occupied bits on buffer[bufferPos]. */ context 282 ext/hash/hash_whirlpool.c unsigned char *buffer = context->buffer.data; context 283 ext/hash/hash_whirlpool.c unsigned char *bitLength = context->bitlength; context 284 ext/hash/hash_whirlpool.c int bufferBits = context->buffer.bits; context 285 ext/hash/hash_whirlpool.c int bufferPos = context->buffer.pos; context 318 ext/hash/hash_whirlpool.c WhirlpoolTransform(context); context 364 ext/hash/hash_whirlpool.c WhirlpoolTransform(context); context 373 ext/hash/hash_whirlpool.c context->buffer.bits = bufferBits; context 374 ext/hash/hash_whirlpool.c context->buffer.pos = bufferPos; context 377 ext/hash/hash_whirlpool.c PHP_HASH_API void PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context) context 380 ext/hash/hash_whirlpool.c unsigned char *buffer = context->buffer.data; context 381 ext/hash/hash_whirlpool.c unsigned char *bitLength = context->bitlength; context 382 ext/hash/hash_whirlpool.c int bufferBits = context->buffer.bits; context 383 ext/hash/hash_whirlpool.c int bufferPos = context->buffer.pos; context 400 ext/hash/hash_whirlpool.c WhirlpoolTransform(context); context 417 ext/hash/hash_whirlpool.c WhirlpoolTransform(context); context 422 ext/hash/hash_whirlpool.c digest[0] = (unsigned char)(context->state[i] >> 56); context 423 ext/hash/hash_whirlpool.c digest[1] = (unsigned char)(context->state[i] >> 48); context 424 ext/hash/hash_whirlpool.c digest[2] = (unsigned char)(context->state[i] >> 40); context 425 ext/hash/hash_whirlpool.c digest[3] = (unsigned char)(context->state[i] >> 32); context 426 ext/hash/hash_whirlpool.c digest[4] = (unsigned char)(context->state[i] >> 24); context 427 ext/hash/hash_whirlpool.c digest[5] = (unsigned char)(context->state[i] >> 16); context 428 ext/hash/hash_whirlpool.c digest[6] = (unsigned char)(context->state[i] >> 8); context 429 ext/hash/hash_whirlpool.c digest[7] = (unsigned char)(context->state[i] ); context 433 ext/hash/hash_whirlpool.c ZEND_SECURE_ZERO(context, sizeof(*context)); context 39 ext/hash/php_hash.h typedef void (*php_hash_init_func_t)(void *context); context 40 ext/hash/php_hash.h typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count); context 41 ext/hash/php_hash.h typedef void (*php_hash_final_func_t)(unsigned char *digest, void *context); context 57 ext/hash/php_hash.h void *context; context 30 ext/hash/php_hash_adler32.h PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context); context 31 ext/hash/php_hash_adler32.h PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len); context 32 ext/hash/php_hash_adler32.h PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context); context 30 ext/hash/php_hash_crc32.h PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context); context 31 ext/hash/php_hash_crc32.h PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len); context 32 ext/hash/php_hash_crc32.h PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len); context 33 ext/hash/php_hash_crc32.h PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context); context 57 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context); context 58 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, unsigned int inputLen); context 59 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, unsigned int inputLen); context 60 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV132Final(unsigned char digest[16], PHP_FNV132_CTX * context); context 62 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context); context 63 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, unsigned int inputLen); context 64 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, unsigned int inputLen); context 65 ext/hash/php_hash_fnv.h PHP_HASH_API void PHP_FNV164Final(unsigned char digest[16], PHP_FNV164_CTX * context); context 28 ext/hash/php_hash_joaat.h PHP_HASH_API void PHP_JOAATInit(PHP_JOAAT_CTX *context); context 29 ext/hash/php_hash_joaat.h PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, unsigned int inputLen); context 30 ext/hash/php_hash_joaat.h PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[16], PHP_JOAAT_CTX * context); context 85 ext/hash/php_hash_md.h PHP_HASH_API void PHP_MD4Update(PHP_MD4_CTX *context, const unsigned char *, unsigned int); context 96 ext/hash/php_hash_md.h PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context); context 97 ext/hash/php_hash_md.h PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *, unsigned int); context 33 ext/hash/php_hash_tiger.h PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context); context 34 ext/hash/php_hash_tiger.h PHP_HASH_API void PHP_4TIGERInit(PHP_TIGER_CTX *context); context 35 ext/hash/php_hash_tiger.h PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len); context 36 ext/hash/php_hash_tiger.h PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context); context 37 ext/hash/php_hash_tiger.h PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context); context 38 ext/hash/php_hash_tiger.h PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context); context 222 ext/intl/converter/converter.c static void php_converter_to_u_callback(const void *context, context 227 ext/intl/converter/converter.c php_converter_object *objval = (php_converter_object*)context; context 297 ext/intl/converter/converter.c static void php_converter_from_u_callback(const void *context, context 302 ext/intl/converter/converter.c php_converter_object *objval = (php_converter_object*)context; context 175 ext/intl/uchar/uchar.c static UBool enumCharType_callback(enumCharType_data *context, context 189 ext/intl/uchar/uchar.c context->fci.retval = &retval; context 190 ext/intl/uchar/uchar.c context->fci.param_count = 3; context 191 ext/intl/uchar/uchar.c context->fci.params = args; context 193 ext/intl/uchar/uchar.c if (zend_call_function(&context->fci, &context->fci_cache) == FAILURE) { context 203 ext/intl/uchar/uchar.c enumCharType_data context; context 205 ext/intl/uchar/uchar.c if (zend_parse_parameters(ZEND_NUM_ARGS(), "f", &context.fci, &context.fci_cache) == FAILURE) { context 208 ext/intl/uchar/uchar.c u_enumCharTypes((UCharEnumTypeRange*)enumCharType_callback, &context); context 292 ext/intl/uchar/uchar.c static UBool enumCharNames_callback(enumCharNames_data *context, context 303 ext/intl/uchar/uchar.c context->fci.retval = &retval; context 304 ext/intl/uchar/uchar.c context->fci.param_count = 3; context 305 ext/intl/uchar/uchar.c context->fci.params = args; context 307 ext/intl/uchar/uchar.c if (zend_call_function(&context->fci, &context->fci_cache) == FAILURE) { context 321 ext/intl/uchar/uchar.c enumCharNames_data context; context 325 ext/intl/uchar/uchar.c if ((zend_parse_parameters(ZEND_NUM_ARGS(), "zzf|l", &zstart, &zlimit, &context.fci, &context.fci_cache, &nameChoice) == FAILURE) || context 331 ext/intl/uchar/uchar.c u_enumCharNames(start, limit, (UEnumCharNamesFn*)enumCharNames_callback, &context, nameChoice, &error); context 101 ext/libxml/libxml.c ZEND_ARG_INFO(0, context) context 303 ext/libxml/libxml.c php_stream_context *context = NULL; context 360 ext/libxml/libxml.c context = php_stream_context_from_zval(Z_ISUNDEF(LIBXML(stream_context))? NULL : &LIBXML(stream_context), 0); context 362 ext/libxml/libxml.c ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context); context 379 ext/libxml/libxml.c static int php_libxml_streams_IO_read(void *context, char *buffer, int len) context 381 ext/libxml/libxml.c return php_stream_read((php_stream*)context, buffer, len); context 384 ext/libxml/libxml.c static int php_libxml_streams_IO_write(void *context, const char *buffer, int len) context 389 ext/libxml/libxml.c return php_stream_write((php_stream*)context, buffer, len); context 392 ext/libxml/libxml.c static int php_libxml_streams_IO_close(void *context) context 394 ext/libxml/libxml.c return php_stream_close((php_stream*)context); context 401 ext/libxml/libxml.c void *context = NULL; context 410 ext/libxml/libxml.c context = php_libxml_streams_IO_open_read_wrapper(URI); context 412 ext/libxml/libxml.c if (context == NULL) { context 419 ext/libxml/libxml.c ret->context = context; context 423 ext/libxml/libxml.c php_libxml_streams_IO_close(context); context 435 ext/libxml/libxml.c void *context = NULL; context 449 ext/libxml/libxml.c context = php_libxml_streams_IO_open_write_wrapper(unescaped); context 454 ext/libxml/libxml.c if (context == NULL) { context 455 ext/libxml/libxml.c context = php_libxml_streams_IO_open_write_wrapper(URI); context 458 ext/libxml/libxml.c if (context == NULL) { context 465 ext/libxml/libxml.c ret->context = context; context 575 ext/libxml/libxml.c const char *ID, xmlParserCtxtPtr context) context 588 ext/libxml/libxml.c return _php_libxml_default_entity_loader(URL, ID, context); context 605 ext/libxml/libxml.c if (context->memb == NULL) { \ context 609 ext/libxml/libxml.c (char *)context->memb); \ context 626 ext/libxml/libxml.c php_libxml_ctx_error(context, context 644 ext/libxml/libxml.c php_libxml_ctx_error(context, context 653 ext/libxml/libxml.c php_libxml_ctx_error(context, "Could not allocate parser " context 658 ext/libxml/libxml.c pib->context = stream; context 662 ext/libxml/libxml.c ret = xmlNewIOInputStream(context, pib, enc); context 680 ext/libxml/libxml.c php_libxml_ctx_error(context, context 684 ext/libxml/libxml.c ret = xmlNewInputFromFile(context, resource); context 696 ext/libxml/libxml.c const char *ID, xmlParserCtxtPtr context) context 709 ext/libxml/libxml.c return _php_libxml_external_entity_loader(URL, ID, context); context 711 ext/libxml/libxml.c return _php_libxml_default_entity_loader(URL, ID, context); context 780 ext/libxml/libxml.c PHP_LIBXML_API void php_libxml_switch_context(zval *context, zval *oldcontext) context 785 ext/libxml/libxml.c if (context) { context 786 ext/libxml/libxml.c ZVAL_COPY_VALUE(&LIBXML(stream_context), context); context 110 ext/libxml/php_libxml.h PHP_LIBXML_API void php_libxml_switch_context(zval *context, zval *oldcontext); context 330 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1_CTX context; context 335 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Init(&context); context 336 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Update(&context, password, password_len); context 337 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Final(sha1, &context); context 340 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Init(&context); context 341 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Update(&context, (zend_uchar*)sha1, SHA1_MAX_LENGTH); context 342 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Final(sha2, &context); context 345 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Init(&context); context 346 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Update(&context, scramble, SCRAMBLE_LENGTH); context 347 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Update(&context, (zend_uchar*)sha2, SHA1_MAX_LENGTH); context 348 ext/mysqlnd/mysqlnd_auth.c PHP_SHA1Final(buffer, &context); context 33 ext/mysqlnd/mysqlnd_loaddata.c php_stream_context *context = NULL; context 54 ext/mysqlnd/mysqlnd_loaddata.c info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); context 914 ext/mysqlnd/mysqlnd_net.c php_stream_context * context = php_stream_context_alloc(); context 919 ext/mysqlnd/mysqlnd_net.c if (!context) { context 926 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "local_pk", &key_zval); context 933 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "local_cert", &cert_zval); context 935 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "local_pk", &cert_zval); context 943 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "cafile", &cafile_zval); context 949 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "capath", &capath_zval); context 956 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "passphrase", &passphrase_zval); context 963 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "ciphers", &cipher_zval); context 979 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "verify_peer", &verify_peer_zval); context 980 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "verify_peer_name", &verify_peer_zval); context 983 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "allow_self_signed", &verify_peer_zval); context 987 ext/mysqlnd/mysqlnd_net.c php_stream_context_set(net_stream, context); context 989 ext/mysqlnd/mysqlnd_net.c php_stream_context_set(net_stream, context); context 2491 ext/opcache/ZendAccelerator.c PHP_MD5_CTX context; context 2496 ext/opcache/ZendAccelerator.c PHP_MD5Init(&context); context 2497 ext/opcache/ZendAccelerator.c PHP_MD5Update(&context, PHP_VERSION, sizeof(PHP_VERSION)-1); context 2498 ext/opcache/ZendAccelerator.c PHP_MD5Update(&context, ZEND_EXTENSION_BUILD_ID, sizeof(ZEND_EXTENSION_BUILD_ID)-1); context 2499 ext/opcache/ZendAccelerator.c PHP_MD5Update(&context, ZEND_BIN_ID, sizeof(ZEND_BIN_ID)-1); context 2502 ext/opcache/ZendAccelerator.c PHP_MD5Update(&context, __DATE__, sizeof(__DATE__)-1); context 2503 ext/opcache/ZendAccelerator.c PHP_MD5Update(&context, __TIME__, sizeof(__TIME__)-1); context 2505 ext/opcache/ZendAccelerator.c PHP_MD5Final(digest, &context); context 2544 ext/openssl/xp_ssl.c php_stream_context *context STREAMS_DC) context 2581 ext/openssl/xp_ssl.c sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_ANY_CLIENT); context 2602 ext/openssl/xp_ssl.c sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_TLS_CLIENT); context 4606 ext/pcre/pcrelib/pcre_jit_compile.c compare_context *context, jump_list **backtracks) context 4636 ext/pcre/pcrelib/pcre_jit_compile.c if (context->sourcereg == -1) context 4640 ext/pcre/pcrelib/pcre_jit_compile.c if (context->length >= 4) context 4641 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_SI, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4642 ext/pcre/pcrelib/pcre_jit_compile.c else if (context->length >= 2) context 4643 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_UH, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4646 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_UB, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4649 ext/pcre/pcrelib/pcre_jit_compile.c if (context->length >= 4) context 4650 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_SI, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4653 ext/pcre/pcrelib/pcre_jit_compile.c OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4655 ext/pcre/pcrelib/pcre_jit_compile.c OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4657 ext/pcre/pcrelib/pcre_jit_compile.c context->sourcereg = TMP2; context 4669 ext/pcre/pcrelib/pcre_jit_compile.c context->length -= IN_UCHARS(1); context 4675 ext/pcre/pcrelib/pcre_jit_compile.c context->c.asuchars[context->ucharptr] = *cc | othercasebit; context 4676 ext/pcre/pcrelib/pcre_jit_compile.c context->oc.asuchars[context->ucharptr] = othercasebit; context 4680 ext/pcre/pcrelib/pcre_jit_compile.c context->c.asuchars[context->ucharptr] = *cc; context 4681 ext/pcre/pcrelib/pcre_jit_compile.c context->oc.asuchars[context->ucharptr] = 0; context 4683 ext/pcre/pcrelib/pcre_jit_compile.c context->ucharptr++; context 4686 ext/pcre/pcrelib/pcre_jit_compile.c if (context->ucharptr >= 4 || context->length == 0 || (context->ucharptr == 2 && context->length == 1)) context 4688 ext/pcre/pcrelib/pcre_jit_compile.c if (context->ucharptr >= 2 || context->length == 0) context 4691 ext/pcre/pcrelib/pcre_jit_compile.c if (context->length >= 4) context 4692 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_SI, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4693 ext/pcre/pcrelib/pcre_jit_compile.c else if (context->length >= 2) context 4694 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_UH, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4696 ext/pcre/pcrelib/pcre_jit_compile.c else if (context->length >= 1) context 4697 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV_UB, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4699 ext/pcre/pcrelib/pcre_jit_compile.c context->sourcereg = context->sourcereg == TMP1 ? TMP2 : TMP1; context 4701 ext/pcre/pcrelib/pcre_jit_compile.c switch(context->ucharptr) context 4704 ext/pcre/pcrelib/pcre_jit_compile.c if (context->oc.asint != 0) context 4705 ext/pcre/pcrelib/pcre_jit_compile.c OP2(SLJIT_OR, context->sourcereg, 0, context->sourcereg, 0, SLJIT_IMM, context->oc.asint); context 4706 ext/pcre/pcrelib/pcre_jit_compile.c add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.asint | context->oc.asint)); context 4710 ext/pcre/pcrelib/pcre_jit_compile.c if (context->oc.asushort != 0) context 4711 ext/pcre/pcrelib/pcre_jit_compile.c OP2(SLJIT_OR, context->sourcereg, 0, context->sourcereg, 0, SLJIT_IMM, context->oc.asushort); context 4712 ext/pcre/pcrelib/pcre_jit_compile.c add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.asushort | context->oc.asushort)); context 4717 ext/pcre/pcrelib/pcre_jit_compile.c if (context->oc.asbyte != 0) context 4718 ext/pcre/pcrelib/pcre_jit_compile.c OP2(SLJIT_OR, context->sourcereg, 0, context->sourcereg, 0, SLJIT_IMM, context->oc.asbyte); context 4719 ext/pcre/pcrelib/pcre_jit_compile.c add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, context->c.asbyte | context->oc.asbyte)); context 4727 ext/pcre/pcrelib/pcre_jit_compile.c context->ucharptr = 0; context 4733 ext/pcre/pcrelib/pcre_jit_compile.c if (context->length >= 1) context 4734 ext/pcre/pcrelib/pcre_jit_compile.c OP1(MOV_UCHAR, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); context 4736 ext/pcre/pcrelib/pcre_jit_compile.c context->sourcereg = context->sourcereg == TMP1 ? TMP2 : TMP1; context 4740 ext/pcre/pcrelib/pcre_jit_compile.c OP2(SLJIT_OR, context->sourcereg, 0, context->sourcereg, 0, SLJIT_IMM, othercasebit); context 4741 ext/pcre/pcrelib/pcre_jit_compile.c add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, *cc | othercasebit)); context 4744 ext/pcre/pcrelib/pcre_jit_compile.c add_jump(compiler, backtracks, CMP(SLJIT_NOT_EQUAL, context->sourcereg, 0, SLJIT_IMM, *cc)); context 5290 ext/pcre/pcrelib/pcre_jit_compile.c compare_context context; context 5676 ext/pcre/pcrelib/pcre_jit_compile.c context.length = IN_UCHARS(length); context 5677 ext/pcre/pcrelib/pcre_jit_compile.c context.sourcereg = -1; context 5679 ext/pcre/pcrelib/pcre_jit_compile.c context.ucharptr = 0; context 5681 ext/pcre/pcrelib/pcre_jit_compile.c return byte_sequence_compare(common, type == OP_CHARI, cc, &context, backtracks); context 5865 ext/pcre/pcrelib/pcre_jit_compile.c compare_context context; context 5868 ext/pcre/pcrelib/pcre_jit_compile.c context.length = 0; context 5902 ext/pcre/pcrelib/pcre_jit_compile.c context.length += IN_UCHARS(size); context 5904 ext/pcre/pcrelib/pcre_jit_compile.c while (size > 0 && context.length <= 128); context 5907 ext/pcre/pcrelib/pcre_jit_compile.c if (context.length > 0) context 5910 ext/pcre/pcrelib/pcre_jit_compile.c OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, context.length); context 5913 ext/pcre/pcrelib/pcre_jit_compile.c context.sourcereg = -1; context 5915 ext/pcre/pcrelib/pcre_jit_compile.c context.ucharptr = 0; context 5917 ext/pcre/pcrelib/pcre_jit_compile.c do cc = byte_sequence_compare(common, *cc == OP_CHARI, cc + 1, &context, backtracks); while (context.length > 0); context 1185 ext/pcre/pcrelib/sljit/sljitLir.h SLJIT_API_FUNC_ATTRIBUTE void sljit_set_function_context(void** func_ptr, struct sljit_function_context* context, sljit_sw addr, void* func); context 227 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c SLJIT_API_FUNC_ATTRIBUTE void sljit_set_function_context(void** func_ptr, struct sljit_function_context* context, sljit_sw addr, void* func) context 231 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c *func_ptr = (void*)context; context 233 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c context->addr = addr ? addr : ptrs[0]; context 234 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c context->r2 = ptrs[1]; context 235 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c context->r11 = ptrs[2]; context 311 ext/pdo_sqlite/sqlite_driver.c int argc, sqlite3_value **argv, sqlite3_context *context, context 342 ext/pdo_sqlite/sqlite_driver.c agg_context = (zend_reference*)sqlite3_aggregate_context(context, sizeof(zend_reference)); context 353 ext/pdo_sqlite/sqlite_driver.c ZVAL_LONG(&zargs[1], sqlite3_aggregate_count(context)); context 402 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_int(context, Z_LVAL(retval)); context 406 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_null(context); context 410 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_double(context, Z_DVAL(retval)); context 415 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_text(context, Z_STRVAL(retval), Z_STRLEN(retval), SQLITE_TRANSIENT); context 419 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_error(context, "failed to invoke callback", 0); context 446 ext/pdo_sqlite/sqlite_driver.c static void php_sqlite3_func_callback(sqlite3_context *context, int argc, context 449 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); context 451 ext/pdo_sqlite/sqlite_driver.c do_callback(&func->afunc, &func->func, argc, argv, context, 0); context 454 ext/pdo_sqlite/sqlite_driver.c static void php_sqlite3_func_step_callback(sqlite3_context *context, int argc, context 457 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); context 459 ext/pdo_sqlite/sqlite_driver.c do_callback(&func->astep, &func->step, argc, argv, context, 1); context 462 ext/pdo_sqlite/sqlite_driver.c static void php_sqlite3_func_final_callback(sqlite3_context *context) context 464 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); context 466 ext/pdo_sqlite/sqlite_driver.c do_callback(&func->afini, &func->fini, 0, NULL, context, 1); context 469 ext/pdo_sqlite/sqlite_driver.c static int php_sqlite3_collation_callback(void *context, context 476 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_collation *collation = (struct pdo_sqlite_collation*) context; context 304 ext/phar/dirstream.c php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ context 376 ext/phar/dirstream.c return php_stream_opendir(entry->tmp, options, context); context 412 ext/phar/dirstream.c int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, php_stream_context *context) /* {{{ */ context 544 ext/phar/dirstream.c int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) /* {{{ */ context 23 ext/phar/dirstream.h int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, php_stream_context *context); context 24 ext/phar/dirstream.h int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); context 36 ext/phar/dirstream.h php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 58 ext/phar/func_interceptors.c php_stream_context *context = NULL; context 77 ext/phar/func_interceptors.c context = php_stream_context_from_zval(zcontext, 0); context 79 ext/phar/func_interceptors.c stream = php_stream_opendir(name, REPORT_ERRORS, context); context 123 ext/phar/func_interceptors.c php_stream_context *context = NULL; context 189 ext/phar/func_interceptors.c context = php_stream_context_from_zval(zcontext, 0); context 191 ext/phar/func_interceptors.c stream = php_stream_open_wrapper_ex(name, "rb", 0 | REPORT_ERRORS, NULL, context); context 253 ext/phar/func_interceptors.c php_stream_context *context = NULL; context 308 ext/phar/func_interceptors.c context = php_stream_context_from_zval(zcontext, 0); context 309 ext/phar/func_interceptors.c stream = php_stream_open_wrapper_ex(name, "rb", 0 | REPORT_ERRORS, NULL, context); context 354 ext/phar/func_interceptors.c php_stream_context *context = NULL; context 410 ext/phar/func_interceptors.c context = php_stream_context_from_zval(zcontext, 0); context 411 ext/phar/func_interceptors.c stream = php_stream_open_wrapper_ex(name, mode, 0 | REPORT_ERRORS, NULL, context); context 158 ext/phar/stream.c static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ context 211 ext/phar/stream.c if (context && Z_TYPE(context->options) != IS_UNDEF && (pzoption = zend_hash_str_find(HASH_OF(&context->options), "phar", sizeof("phar")-1)) != NULL) { context 570 ext/phar/stream.c php_stream_statbuf *ssb, php_stream_context *context) /* {{{ */ context 678 ext/phar/stream.c static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) /* {{{ */ context 752 ext/phar/stream.c static int phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) /* {{{ */ context 27 ext/phar/stream.h static php_stream* phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 28 ext/phar/stream.h static int phar_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context); context 29 ext/phar/stream.h static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); context 30 ext/phar/stream.h static int phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context); context 1610 ext/phar/util.c PHP_SHA512_CTX context; context 1612 ext/phar/util.c PHP_SHA512Init(&context); context 1622 ext/phar/util.c PHP_SHA512Update(&context, buf, len); context 1629 ext/phar/util.c PHP_SHA512Final(digest, &context); context 1643 ext/phar/util.c PHP_SHA256_CTX context; context 1645 ext/phar/util.c PHP_SHA256Init(&context); context 1655 ext/phar/util.c PHP_SHA256Update(&context, buf, len); context 1662 ext/phar/util.c PHP_SHA256Final(digest, &context); context 1684 ext/phar/util.c PHP_SHA1_CTX context; context 1686 ext/phar/util.c PHP_SHA1Init(&context); context 1696 ext/phar/util.c PHP_SHA1Update(&context, buf, len); context 1703 ext/phar/util.c PHP_SHA1Final(digest, &context); context 1717 ext/phar/util.c PHP_MD5_CTX context; context 1719 ext/phar/util.c PHP_MD5Init(&context); context 1729 ext/phar/util.c PHP_MD5Update(&context, buf, len); context 1736 ext/phar/util.c PHP_MD5Final(digest, &context); context 1774 ext/phar/util.c PHP_SHA512_CTX context; context 1776 ext/phar/util.c PHP_SHA512Init(&context); context 1779 ext/phar/util.c PHP_SHA512Update(&context, buf, sig_len); context 1782 ext/phar/util.c PHP_SHA512Final(digest, &context); context 1789 ext/phar/util.c PHP_SHA256_CTX context; context 1791 ext/phar/util.c PHP_SHA256Init(&context); context 1794 ext/phar/util.c PHP_SHA256Update(&context, buf, sig_len); context 1797 ext/phar/util.c PHP_SHA256Final(digest, &context); context 1891 ext/phar/util.c PHP_SHA1_CTX context; context 1893 ext/phar/util.c PHP_SHA1Init(&context); context 1896 ext/phar/util.c PHP_SHA1Update(&context, buf, sig_len); context 1899 ext/phar/util.c PHP_SHA1Final(digest, &context); context 1906 ext/phar/util.c PHP_MD5_CTX context; context 1908 ext/phar/util.c PHP_MD5Init(&context); context 1911 ext/phar/util.c PHP_MD5Update(&context, buf, sig_len); context 1914 ext/phar/util.c PHP_MD5Final(digest, &context); context 92 ext/soap/php_http.c void http_context_headers(php_stream_context* context, context 100 ext/soap/php_http.c if (context && context 101 ext/soap/php_http.c (tmp = php_stream_context_get_option(context, "http", "header")) != NULL && context 161 ext/soap/php_http.c static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *context, int *use_proxy) context 236 ext/soap/php_http.c context, context 357 ext/soap/php_http.c php_stream_context *context = NULL; context 427 ext/soap/php_http.c context = php_stream_context_from_zval(tmp, 0); context 430 ext/soap/php_http.c if (context && context 431 ext/soap/php_http.c (tmp = php_stream_context_get_option(context, "http", "max_redirects")) != NULL) { context 511 ext/soap/php_http.c stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy); context 538 ext/soap/php_http.c if (context && context 539 ext/soap/php_http.c (tmp = php_stream_context_get_option(context, "http", "protocol_version")) != NULL && context 595 ext/soap/php_http.c } else if (context && context 596 ext/soap/php_http.c (tmp = php_stream_context_get_option(context, "http", "user_agent")) != NULL && context 845 ext/soap/php_http.c http_context_headers(context, has_authorization, has_proxy_authorization, has_cookies, &soap_headers); context 34 ext/soap/php_http.h void http_context_headers(php_stream_context* context, context 231 ext/soap/php_sdl.c zval context; context 279 ext/soap/php_sdl.c php_libxml_switch_context(NULL, &context); context 280 ext/soap/php_sdl.c php_libxml_switch_context(&context, NULL); context 281 ext/soap/php_sdl.c if (Z_TYPE(context) != IS_UNDEF) { context 282 ext/soap/php_sdl.c zval *context_ptr = &context; context 283 ext/soap/php_sdl.c ctx->context = php_stream_context_from_zval(context_ptr, 1); context 285 ext/soap/php_sdl.c if (ctx->context && context 286 ext/soap/php_sdl.c (header = php_stream_context_get_option(ctx->context, "http", "header")) != NULL) { context 298 ext/soap/php_sdl.c php_stream_context_set_option(ctx->context, "http", "header", &new_header); context 310 ext/soap/php_sdl.c php_stream_context_set_option(ctx->context, "http", "header", &ctx->old_header); context 314 ext/soap/php_sdl.c ctx->context = NULL; context 3160 ext/soap/php_sdl.c php_stream_context *context=NULL; context 3195 ext/soap/php_sdl.c PHP_MD5_CTX context; context 3203 ext/soap/php_sdl.c PHP_MD5Init(&context); context 3204 ext/soap/php_sdl.c PHP_MD5Update(&context, (unsigned char*)uri, uri_len); context 3205 ext/soap/php_sdl.c PHP_MD5Final(digest, &context); context 3227 ext/soap/php_sdl.c context = php_stream_context_from_zval(tmp, 0); context 3229 ext/soap/php_sdl.c context = php_stream_context_alloc(); context 3255 ext/soap/php_sdl.c if (!context) { context 3256 ext/soap/php_sdl.c context = php_stream_context_alloc(); context 3258 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "proxy", &str_proxy); context 3264 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "request_fulluri", &str_proxy); context 3273 ext/soap/php_sdl.c if ((tmp = php_stream_context_get_option(context, "http", "protocol_version")) == NULL) { context 3277 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "protocol_version", &http_version); context 3284 ext/soap/php_sdl.c if (!context) { context 3285 ext/soap/php_sdl.c context = php_stream_context_alloc(); context 3287 ext/soap/php_sdl.c http_context_headers(context, has_authorization, has_proxy_authorization, 0, &headers); context 3292 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "header", &str_headers); context 3296 ext/soap/php_sdl.c if (context) { context 3297 ext/soap/php_sdl.c php_stream_context_to_zval(context, &new_context); context 3310 ext/soap/php_sdl.c if (context) { context 79 ext/soap/php_sdl.h php_stream_context *context; context 2323 ext/soap/soap.c php_stream_context *context = NULL; context 2369 ext/soap/soap.c context = php_stream_context_from_zval(tmp, 1); context 2420 ext/soap/soap.c if (!context) { context 2421 ext/soap/soap.c context = php_stream_context_alloc(); context 2423 ext/soap/soap.c php_stream_context_set_option(context, "ssl", "local_cert", tmp); context 2426 ext/soap/soap.c php_stream_context_set_option(context, "ssl", "passphrase", tmp); context 2488 ext/soap/soap.c if (context) { context 2489 ext/soap/soap.c add_property_resource(this_ptr, "_stream_context", context->res); context 274 ext/spl/spl_directory.c intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0); context 275 ext/spl/spl_directory.c intern->u.file.stream = php_stream_open_wrapper_ex(intern->file_name, intern->u.file.open_mode, (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, intern->u.file.context); context 1890 ext/spl/spl_directory.c ZEND_ARG_INFO(0, context) context 2989 ext/spl/spl_directory.c ZEND_ARG_INFO(0, context) context 88 ext/spl/spl_directory.h php_stream_context *context; context 15620 ext/sqlite3/libsqlite/sqlite3.c static int setDateTimeToCurrent(sqlite3_context *context, DateTime *p){ context 15621 ext/sqlite3/libsqlite/sqlite3.c p->iJD = sqlite3StmtCurrentTime(context); context 15647 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 15657 ext/sqlite3/libsqlite/sqlite3.c return setDateTimeToCurrent(context, p); context 16083 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16093 ext/sqlite3/libsqlite/sqlite3.c return setDateTimeToCurrent(context, p); context 16101 ext/sqlite3/libsqlite/sqlite3.c if( !z || parseDateOrTime(context, (char*)z, p) ){ context 16107 ext/sqlite3/libsqlite/sqlite3.c if( z==0 || parseModifier(context, (char*)z, p) ) return 1; context 16124 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16129 ext/sqlite3/libsqlite/sqlite3.c if( isDate(context, argc, argv, &x)==0 ){ context 16131 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_double(context, x.iJD/86400000.0); context 16141 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16146 ext/sqlite3/libsqlite/sqlite3.c if( isDate(context, argc, argv, &x)==0 ){ context 16151 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); context 16161 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16166 ext/sqlite3/libsqlite/sqlite3.c if( isDate(context, argc, argv, &x)==0 ){ context 16170 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); context 16180 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16185 ext/sqlite3/libsqlite/sqlite3.c if( isDate(context, argc, argv, &x)==0 ){ context 16189 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); context 16213 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16226 ext/sqlite3/libsqlite/sqlite3.c if( zFmt==0 || isDate(context, argc-1, argv+1, &x) ) return; context 16227 ext/sqlite3/libsqlite/sqlite3.c db = sqlite3_context_db_handle(context); context 16268 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_toobig(context); context 16273 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 16341 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, z, -1, context 16351 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16356 ext/sqlite3/libsqlite/sqlite3.c timeFunc(context, 0, 0); context 16365 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16370 ext/sqlite3/libsqlite/sqlite3.c dateFunc(context, 0, 0); context 16379 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16384 ext/sqlite3/libsqlite/sqlite3.c datetimeFunc(context, 0, 0); context 16401 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 16406 ext/sqlite3/libsqlite/sqlite3.c char *zFormat = (char *)sqlite3_user_data(context); context 16416 ext/sqlite3/libsqlite/sqlite3.c iT = sqlite3StmtCurrentTime(context); context 16429 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); context 28154 ext/sqlite3/libsqlite/sqlite3.c afpLockingContext *context; context 28159 ext/sqlite3/libsqlite/sqlite3.c context = (afpLockingContext *) pFile->lockingContext; context 28160 ext/sqlite3/libsqlite/sqlite3.c if( context->reserved ){ context 28175 ext/sqlite3/libsqlite/sqlite3.c int lrc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1,1); context 28179 ext/sqlite3/libsqlite/sqlite3.c lrc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1, 0); context 28224 ext/sqlite3/libsqlite/sqlite3.c afpLockingContext *context = (afpLockingContext *) pFile->lockingContext; context 28288 ext/sqlite3/libsqlite/sqlite3.c failed = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 1); context 28310 ext/sqlite3/libsqlite/sqlite3.c lrc1 = afpSetLock(context->dbPath, pFile, context 28316 ext/sqlite3/libsqlite/sqlite3.c lrc2 = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 0); context 28345 ext/sqlite3/libsqlite/sqlite3.c failed = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1,1); context 28347 ext/sqlite3/libsqlite/sqlite3.c context->reserved = 1; context 28356 ext/sqlite3/libsqlite/sqlite3.c if( !(failed = afpSetLock(context->dbPath, pFile, SHARED_FIRST + context 28360 ext/sqlite3/libsqlite/sqlite3.c failed = afpSetLock(context->dbPath, pFile, SHARED_FIRST, context 28362 ext/sqlite3/libsqlite/sqlite3.c if( failed && (failed2 = afpSetLock(context->dbPath, pFile, context 28406 ext/sqlite3/libsqlite/sqlite3.c afpLockingContext *context = (afpLockingContext *) pFile->lockingContext; context 28446 ext/sqlite3/libsqlite/sqlite3.c rc = afpSetLock(context->dbPath, pFile, SHARED_FIRST, SHARED_SIZE, 0); context 28450 ext/sqlite3/libsqlite/sqlite3.c rc = afpSetLock(context->dbPath, pFile, sharedLockByte, 1, 1); context 28456 ext/sqlite3/libsqlite/sqlite3.c rc = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 0); context 28458 ext/sqlite3/libsqlite/sqlite3.c if( rc==SQLITE_OK && pFile->eFileLock>=RESERVED_LOCK && context->reserved ){ context 28459 ext/sqlite3/libsqlite/sqlite3.c rc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1, 0); context 28461 ext/sqlite3/libsqlite/sqlite3.c context->reserved = 0; context 28481 ext/sqlite3/libsqlite/sqlite3.c rc = afpSetLock(context->dbPath, pFile, sharedLockByte, 1, 0); context 64496 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 64512 ext/sqlite3/libsqlite/sqlite3.c db = sqlite3_context_db_handle(context); context 64517 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 64522 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_blob(context, aRet, nRet, SQLITE_TRANSIENT); context 69642 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, /* The function calling context */ context 69646 ext/sqlite3/libsqlite/sqlite3.c const char *zName = context->pFunc->zName; context 69651 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErr, -1); context 87265 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 87278 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 87309 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zRet, -1, SQLITE_DYNAMIC); context 87330 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 87334 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 87373 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zResult, -1, SQLITE_DYNAMIC); context 87387 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 87400 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 87450 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zRet, -1, SQLITE_DYNAMIC); context 88456 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 88489 ext/sqlite3/libsqlite/sqlite3.c db = sqlite3_context_db_handle(context); context 88492 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 88535 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_blob(context, p, sizeof(*p), stat4Destructor); context 88770 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 88781 ext/sqlite3/libsqlite/sqlite3.c UNUSED_PARAMETER( context ); context 88871 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 88915 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 88930 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zRet, -1, sqlite3_free); context 88941 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, pS->u.iRowid); context 88943 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_blob(context, pS->u.aRowid, pS->nRowid, context 88962 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, (i64)aCnt[0]); context 88966 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 88976 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zRet, -1, sqlite3_free); context 90015 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 90021 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 90086 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErr, -1); context 90201 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErrDyn, -1); context 90204 ext/sqlite3/libsqlite/sqlite3.c if( rc ) sqlite3_result_error_code(context, rc); context 90216 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 90221 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 90260 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErr, -1); context 96448 ext/sqlite3/libsqlite/sqlite3.c static CollSeq *sqlite3GetFuncCollSeq(sqlite3_context *context){ context 96450 ext/sqlite3/libsqlite/sqlite3.c assert( context->pVdbe!=0 ); context 96451 ext/sqlite3/libsqlite/sqlite3.c pOp = &context->pVdbe->aOp[context->iOp-1]; context 96461 ext/sqlite3/libsqlite/sqlite3.c static void sqlite3SkipAccumulatorLoad(sqlite3_context *context){ context 96462 ext/sqlite3/libsqlite/sqlite3.c context->skipFlag = 1; context 96469 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96479 ext/sqlite3/libsqlite/sqlite3.c mask = sqlite3_user_data(context)==0 ? 0 : -1; context 96480 ext/sqlite3/libsqlite/sqlite3.c pColl = sqlite3GetFuncCollSeq(context); context 96492 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_value(context, argv[iBest]); context 96499 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96512 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, z, -1, SQLITE_STATIC); context 96520 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96532 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, sqlite3_value_bytes(argv[0])); context 96543 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, len); context 96547 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_null(context); context 96559 ext/sqlite3/libsqlite/sqlite3.c static void absFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ context 96570 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "integer overflow", -1); context 96575 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, iVal); context 96580 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_null(context); context 96591 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_double(context, rVal); context 96609 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96644 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, N); context 96651 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96659 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 96668 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, sqlite3StrAccumFinish(&str), n, context 96686 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96735 ext/sqlite3/libsqlite/sqlite3.c p2 = sqlite3_context_db_handle(context)->aLimit[SQLITE_LIMIT_LENGTH]; context 96765 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text64(context, (char*)z, z2-z, SQLITE_TRANSIENT, context 96772 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_blob64(context, (char*)&z[p1], (u64)p2, SQLITE_TRANSIENT); context 96780 ext/sqlite3/libsqlite/sqlite3.c static void roundFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ context 96804 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 96810 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_double(context, r); context 96821 ext/sqlite3/libsqlite/sqlite3.c static void *contextMalloc(sqlite3_context *context, i64 nByte){ context 96823 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 96828 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_toobig(context); context 96833 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 96842 ext/sqlite3/libsqlite/sqlite3.c static void upperFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ context 96852 ext/sqlite3/libsqlite/sqlite3.c z1 = contextMalloc(context, ((i64)n)+1); context 96857 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, z1, n, sqlite3_free); context 96861 ext/sqlite3/libsqlite/sqlite3.c static void lowerFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ context 96871 ext/sqlite3/libsqlite/sqlite3.c z1 = contextMalloc(context, ((i64)n)+1); context 96876 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, z1, n, sqlite3_free); context 96895 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96913 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, r); context 96921 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96933 ext/sqlite3/libsqlite/sqlite3.c p = contextMalloc(context, n); context 96936 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_blob(context, (char*)p, n, sqlite3_free); context 96945 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96949 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 96954 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, sqlite3_last_insert_rowid(db)); context 96965 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96969 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 96971 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, sqlite3_changes(db)); context 96979 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 96983 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 96987 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, sqlite3_total_changes(db)); context 97216 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97223 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 97235 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "LIKE or GLOB pattern too complex", -1); context 97247 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, context 97254 ext/sqlite3/libsqlite/sqlite3.c struct compareInfo *pInfo = sqlite3_user_data(context); context 97259 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, patternCompare(zB, zA, pInfo, escape)); context 97269 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97273 ext/sqlite3/libsqlite/sqlite3.c CollSeq *pColl = sqlite3GetFuncCollSeq(context); context 97276 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_value(context, argv[0]); context 97285 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97292 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, sqlite3_libversion(), -1, SQLITE_STATIC); context 97301 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97308 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, sqlite3_sourceid(), -1, SQLITE_STATIC); context 97317 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97322 ext/sqlite3/libsqlite/sqlite3.c UNUSED_PARAMETER(context); context 97333 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97345 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, sqlite3_compileoption_used(zOptName)); context 97357 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97368 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, sqlite3_compileoption_get(n), -1, SQLITE_STATIC); context 97386 ext/sqlite3/libsqlite/sqlite3.c static void quoteFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ context 97399 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); context 97403 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_value(context, argv[0]); context 97411 ext/sqlite3/libsqlite/sqlite3.c zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4); context 97422 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zText, -1, SQLITE_TRANSIENT); context 97435 ext/sqlite3/libsqlite/sqlite3.c z = contextMalloc(context, ((i64)i)+((i64)n)+3); context 97446 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, z, j, sqlite3_free); context 97452 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, "NULL", 4, SQLITE_STATIC); context 97463 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97469 ext/sqlite3/libsqlite/sqlite3.c if( z && z[0] ) sqlite3_result_int(context, sqlite3Utf8Read(&z)); context 97478 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97486 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 97511 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text64(context, (char*)z, zOut-z, sqlite3_free, SQLITE_UTF8); context 97519 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97531 ext/sqlite3/libsqlite/sqlite3.c z = zHex = contextMalloc(context, ((i64)n)*2 + 1); context 97539 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zHex, n*2, sqlite3_free); context 97547 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97552 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 97559 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_toobig(context); context 97561 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_zeroblob(context, (int)n); /* IMP: R-00293-64994 */ context 97572 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97596 ext/sqlite3/libsqlite/sqlite3.c || sqlite3_context_db_handle(context)->mallocFailed ); context 97601 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_value(context, argv[0]); context 97612 ext/sqlite3/libsqlite/sqlite3.c zOut = contextMalloc(context, (i64)nOut); context 97622 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 97627 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_toobig(context); context 97634 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 97648 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, (char*)zOut, j, sqlite3_free); context 97656 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97691 ext/sqlite3/libsqlite/sqlite3.c azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1)); context 97704 ext/sqlite3/libsqlite/sqlite3.c flags = SQLITE_PTR_TO_INT(sqlite3_user_data(context)); context 97732 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT); context 97748 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97787 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zResult, 4, SQLITE_TRANSIENT); context 97791 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, "?000", 4, SQLITE_STATIC); context 97800 ext/sqlite3/libsqlite/sqlite3.c static void loadExt(sqlite3_context *context, int argc, sqlite3_value **argv){ context 97803 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 97812 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErrMsg, -1); context 97842 ext/sqlite3/libsqlite/sqlite3.c static void sumStep(sqlite3_context *context, int argc, sqlite3_value **argv){ context 97847 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3_aggregate_context(context, sizeof(*p)); context 97863 ext/sqlite3/libsqlite/sqlite3.c static void sumFinalize(sqlite3_context *context){ context 97865 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3_aggregate_context(context, 0); context 97868 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context,"integer overflow",-1); context 97870 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_double(context, p->rSum); context 97872 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, p->iSum); context 97876 ext/sqlite3/libsqlite/sqlite3.c static void avgFinalize(sqlite3_context *context){ context 97878 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3_aggregate_context(context, 0); context 97880 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_double(context, p->rSum/(double)p->cnt); context 97883 ext/sqlite3/libsqlite/sqlite3.c static void totalFinalize(sqlite3_context *context){ context 97885 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3_aggregate_context(context, 0); context 97887 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_double(context, p ? p->rSum : (double)0); context 97902 ext/sqlite3/libsqlite/sqlite3.c static void countStep(sqlite3_context *context, int argc, sqlite3_value **argv){ context 97904 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3_aggregate_context(context, sizeof(*p)); context 97915 ext/sqlite3/libsqlite/sqlite3.c || p->n==sqlite3_aggregate_count(context) ); context 97918 ext/sqlite3/libsqlite/sqlite3.c static void countFinalize(sqlite3_context *context){ context 97920 ext/sqlite3/libsqlite/sqlite3.c p = sqlite3_aggregate_context(context, 0); context 97921 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int64(context, p ? p->n : 0); context 97928 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97936 ext/sqlite3/libsqlite/sqlite3.c pBest = (Mem *)sqlite3_aggregate_context(context, sizeof(*pBest)); context 97940 ext/sqlite3/libsqlite/sqlite3.c if( pBest->flags ) sqlite3SkipAccumulatorLoad(context); context 97944 ext/sqlite3/libsqlite/sqlite3.c CollSeq *pColl = sqlite3GetFuncCollSeq(context); context 97953 ext/sqlite3/libsqlite/sqlite3.c max = sqlite3_user_data(context)!=0; context 97958 ext/sqlite3/libsqlite/sqlite3.c sqlite3SkipAccumulatorLoad(context); context 97961 ext/sqlite3/libsqlite/sqlite3.c pBest->db = sqlite3_context_db_handle(context); context 97965 ext/sqlite3/libsqlite/sqlite3.c static void minMaxFinalize(sqlite3_context *context){ context 97967 ext/sqlite3/libsqlite/sqlite3.c pRes = (sqlite3_value *)sqlite3_aggregate_context(context, 0); context 97970 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_value(context, pRes); context 97980 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 97990 ext/sqlite3/libsqlite/sqlite3.c pAccum = (StrAccum*)sqlite3_aggregate_context(context, sizeof(*pAccum)); context 97993 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 98011 ext/sqlite3/libsqlite/sqlite3.c static void groupConcatFinalize(sqlite3_context *context){ context 98013 ext/sqlite3/libsqlite/sqlite3.c pAccum = sqlite3_aggregate_context(context, 0); context 98016 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_toobig(context); context 98018 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 98020 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, sqlite3StrAccumFinish(pAccum), -1, context 140621 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 140635 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = sqlite3_context_db_handle(context); context 140638 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, context 140647 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 140650 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "No such tokenizer module", -1); context 140657 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 140667 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 140674 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3_user_data(context) ){ context 140689 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "Error parsing expression", -1); context 140691 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error_nomem(context); context 140693 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT); context 141825 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 141836 ext/sqlite3/libsqlite/sqlite3.c pHash = (Fts3Hash *)sqlite3_user_data(context); context 141845 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "argument type mismatch", -1); context 141851 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "out of memory", -1); context 141860 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErr, -1); context 141866 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_blob(context, (void *)&pPtr, sizeof(pPtr), SQLITE_TRANSIENT); context 142013 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 142041 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "insufficient arguments", -1); context 142050 ext/sqlite3/libsqlite/sqlite3.c pHash = (Fts3Hash *)sqlite3_user_data(context); context 142055 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErr2, -1); context 142096 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, zErr, -1); context 142098 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, Tcl_GetString(pRet), -1, SQLITE_TRANSIENT); context 142172 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 142179 ext/sqlite3/libsqlite/sqlite3.c sqlite3 *db = (sqlite3 *)sqlite3_user_data(context); context 142201 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_text(context, "ok", -1, SQLITE_STATIC); context 154607 ext/sqlite3/libsqlite/sqlite3.c sqlite3_context *context, context 154619 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, "LIKE or GLOB pattern too complex", -1); context 154634 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_error(context, context 154641 ext/sqlite3/libsqlite/sqlite3.c sqlite3_result_int(context, icuLikeCompare(zA, zB, uEsc)); context 682 ext/sqlite3/sqlite3.c static int sqlite3_do_callback(struct php_sqlite3_fci *fc, zval *cb, int argc, sqlite3_value **argv, sqlite3_context *context, int is_agg) /* {{{ */ context 713 ext/sqlite3/sqlite3.c agg_context = (php_sqlite3_agg_context *)sqlite3_aggregate_context(context, sizeof(php_sqlite3_agg_context)); context 776 ext/sqlite3/sqlite3.c sqlite3_result_int64(context, Z_LVAL(retval)); context 778 ext/sqlite3/sqlite3.c sqlite3_result_int(context, Z_LVAL(retval)); context 783 ext/sqlite3/sqlite3.c sqlite3_result_null(context); context 787 ext/sqlite3/sqlite3.c sqlite3_result_double(context, Z_DVAL(retval)); context 792 ext/sqlite3/sqlite3.c sqlite3_result_text(context, Z_STRVAL(retval), Z_STRLEN(retval), SQLITE_TRANSIENT); context 796 ext/sqlite3/sqlite3.c sqlite3_result_error(context, "failed to invoke callback", 0); context 819 ext/sqlite3/sqlite3.c static void php_sqlite3_callback_func(sqlite3_context *context, int argc, sqlite3_value **argv) /* {{{ */ context 821 ext/sqlite3/sqlite3.c php_sqlite3_func *func = (php_sqlite3_func *)sqlite3_user_data(context); context 823 ext/sqlite3/sqlite3.c sqlite3_do_callback(&func->afunc, &func->func, argc, argv, context, 0); context 827 ext/sqlite3/sqlite3.c static void php_sqlite3_callback_step(sqlite3_context *context, int argc, sqlite3_value **argv) /* {{{ */ context 829 ext/sqlite3/sqlite3.c php_sqlite3_func *func = (php_sqlite3_func *)sqlite3_user_data(context); context 830 ext/sqlite3/sqlite3.c php_sqlite3_agg_context *agg_context = (php_sqlite3_agg_context *)sqlite3_aggregate_context(context, sizeof(php_sqlite3_agg_context)); context 834 ext/sqlite3/sqlite3.c sqlite3_do_callback(&func->astep, &func->step, argc, argv, context, 1); context 838 ext/sqlite3/sqlite3.c static void php_sqlite3_callback_final(sqlite3_context *context) /* {{{ */ context 840 ext/sqlite3/sqlite3.c php_sqlite3_func *func = (php_sqlite3_func *)sqlite3_user_data(context); context 841 ext/sqlite3/sqlite3.c php_sqlite3_agg_context *agg_context = (php_sqlite3_agg_context *)sqlite3_aggregate_context(context, sizeof(php_sqlite3_agg_context)); context 845 ext/sqlite3/sqlite3.c sqlite3_do_callback(&func->afini, &func->fini, 0, NULL, context, 1); context 900 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 905 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 943 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1039 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1048 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1054 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1069 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1138 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1143 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1149 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1163 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1168 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1182 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1952 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1960 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 224 ext/standard/dir.c php_stream_context *context = NULL; context 231 ext/standard/dir.c context = php_stream_context_from_zval(zcontext, 0); context 233 ext/standard/dir.c dirp = php_stream_opendir(dirname, REPORT_ERRORS, context); context 567 ext/standard/dir.c php_stream_context *context = NULL; context 579 ext/standard/dir.c context = php_stream_context_from_zval(zcontext, 0); context 583 ext/standard/dir.c n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort); context 585 ext/standard/dir.c n = php_stream_scandir(dirn, &namelist, context, NULL); context 587 ext/standard/dir.c n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasortr); context 146 ext/standard/file.c php_stream_context *context = (php_stream_context*)res->ptr; context 147 ext/standard/file.c if (Z_TYPE(context->options) != IS_UNDEF) { context 148 ext/standard/file.c zval_ptr_dtor(&context->options); context 149 ext/standard/file.c ZVAL_UNDEF(&context->options); context 151 ext/standard/file.c php_stream_context_free(context); context 524 ext/standard/file.c php_stream_context *context = NULL; context 537 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 541 ext/standard/file.c NULL, context); context 577 ext/standard/file.c php_stream_context *context = NULL; context 589 ext/standard/file.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 605 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, mode, ((flags & PHP_FILE_USE_INCLUDE_PATH) ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 718 ext/standard/file.c php_stream_context *context = NULL; context 734 ext/standard/file.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 736 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, "rb", (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 857 ext/standard/file.c php_stream_context *context = NULL; context 863 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 865 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, mode, (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 1358 ext/standard/file.c php_stream_context *context; context 1364 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1366 ext/standard/file.c RETURN_BOOL(php_stream_mkdir(dir, (int)mode, (recursive ? PHP_STREAM_MKDIR_RECURSIVE : 0) | REPORT_ERRORS, context)); context 1377 ext/standard/file.c php_stream_context *context; context 1383 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1385 ext/standard/file.c RETURN_BOOL(php_stream_rmdir(dir, REPORT_ERRORS, context)); context 1399 ext/standard/file.c php_stream_context *context = NULL; context 1405 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1407 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, "rb", (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 1472 ext/standard/file.c php_stream_context *context; context 1495 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1497 ext/standard/file.c RETURN_BOOL(wrapper->wops->rename(wrapper, old_name, new_name, 0, context)); context 1509 ext/standard/file.c php_stream_context *context = NULL; context 1515 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1528 ext/standard/file.c RETURN_BOOL(wrapper->wops->unlink(wrapper, filename, REPORT_ERRORS, context)); context 1657 ext/standard/file.c php_stream_context *context; context 1667 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1669 ext/standard/file.c if (php_copy_file_ctx(source, target, 0, context) == SUCCESS) { context 134 ext/standard/ftp_fopen_wrapper.c zend_string **opened_path, php_stream_context *context, php_stream **preuseid, context 159 ext/standard/ftp_fopen_wrapper.c stream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, context, NULL, NULL); context 166 ext/standard/ftp_fopen_wrapper.c php_stream_context_set(stream, context); context 167 ext/standard/ftp_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0); context 172 ext/standard/ftp_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result); context 262 ext/standard/ftp_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_AUTH_REQUIRED, tmp_line, 0); context 284 ext/standard/ftp_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_AUTH_RESULT, tmp_line, result); context 286 ext/standard/ftp_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_AUTH_RESULT, tmp_line, result); context 415 ext/standard/ftp_fopen_wrapper.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) context 454 ext/standard/ftp_fopen_wrapper.c if (context && context 455 ext/standard/ftp_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, "ftp", "proxy")) != NULL) { context 458 ext/standard/ftp_fopen_wrapper.c return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC); context 466 ext/standard/ftp_fopen_wrapper.c stream = php_ftp_fopen_connect(wrapper, path, mode, options, opened_path, context, &reuseid, &resource, &use_ssl, &use_ssl_on_data); context 496 ext/standard/ftp_fopen_wrapper.c php_stream_notify_file_size(context, file_size, tmp_line, result); context 500 ext/standard/ftp_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "ftp", "overwrite")) != NULL) { context 530 ext/standard/ftp_fopen_wrapper.c if (context && context 531 ext/standard/ftp_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, "ftp", "resume_pos")) != NULL && context 558 ext/standard/ftp_fopen_wrapper.c datastream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, context, NULL, NULL); context 574 ext/standard/ftp_fopen_wrapper.c php_stream_context_set(datastream, context); context 575 ext/standard/ftp_fopen_wrapper.c php_stream_notify_progress_init(context, 0, file_size); context 598 ext/standard/ftp_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result); context 687 ext/standard/ftp_fopen_wrapper.c zend_string **opened_path, php_stream_context *context STREAMS_DC) context 699 ext/standard/ftp_fopen_wrapper.c stream = php_ftp_fopen_connect(wrapper, path, mode, options, opened_path, context, &reuseid, &resource, &use_ssl, &use_ssl_on_data); context 738 ext/standard/ftp_fopen_wrapper.c php_stream_context_set(datastream, context); context 764 ext/standard/ftp_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result); context 776 ext/standard/ftp_fopen_wrapper.c static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) context 786 ext/standard/ftp_fopen_wrapper.c stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, context, NULL, &resource, NULL, NULL); context 899 ext/standard/ftp_fopen_wrapper.c static int php_stream_ftp_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) context 949 ext/standard/ftp_fopen_wrapper.c static int php_stream_ftp_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) context 1028 ext/standard/ftp_fopen_wrapper.c static int php_stream_ftp_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context) context 1122 ext/standard/ftp_fopen_wrapper.c static int php_stream_ftp_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) context 114 ext/standard/http_fopen_wrapper.c php_stream_context *context, int redirect_max, int flags STREAMS_DC) /* {{{ */ context 163 ext/standard/http_fopen_wrapper.c if (!context || context 164 ext/standard/http_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) == NULL || context 168 ext/standard/http_fopen_wrapper.c return php_stream_open_wrapper_ex(path, mode, REPORT_ERRORS, NULL, context); context 193 ext/standard/http_fopen_wrapper.c if (context && context 194 ext/standard/http_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "proxy")) != NULL && context 205 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "timeout")) != NULL) { context 225 ext/standard/http_fopen_wrapper.c NULL, &timeout, context, &errstr, NULL); context 243 ext/standard/http_fopen_wrapper.c if (!context || (tmpzval = php_stream_context_get_option(context, "ssl", "peer_name")) == NULL) { context 256 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "http", "header")) != NULL) { context 357 ext/standard/http_fopen_wrapper.c php_stream_context_set(stream, context); context 359 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0); context 361 ext/standard/http_fopen_wrapper.c if (header_init && context && (tmpzval = php_stream_context_get_option(context, "http", "max_redirects")) != NULL) { context 365 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "http", "method")) != NULL) { context 381 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "http", "protocol_version")) != NULL) { context 392 ext/standard/http_fopen_wrapper.c if (!request_fulluri && context && context 393 ext/standard/http_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, "http", "request_fulluri")) != NULL) { context 429 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "http", "header")) != NULL) { context 558 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_AUTH_REQUIRED, NULL, 0); context 593 ext/standard/http_fopen_wrapper.c if (context && context 594 ext/standard/http_fopen_wrapper.c (ua_zval = php_stream_context_get_option(context, "http", "user_agent")) != NULL && context 627 ext/standard/http_fopen_wrapper.c context && context 629 ext/standard/http_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, "http", "content")) != NULL && context 643 ext/standard/http_fopen_wrapper.c if (header_init && context && context 644 ext/standard/http_fopen_wrapper.c (tmpzval = php_stream_context_get_option(context, "http", "content")) != NULL && context 693 ext/standard/http_fopen_wrapper.c if (context && NULL != (tmpzval = php_stream_context_get_option(context, "http", "ignore_errors"))) { context 708 ext/standard/http_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_AUTH_RESULT, context 716 ext/standard/http_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, context 759 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "http", "follow_location")) != NULL) { context 770 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_MIME_TYPE_IS, http_header_line + 14, 0); context 773 ext/standard/http_fopen_wrapper.c php_stream_notify_file_size(context, file_size, http_header_line, 0); context 780 ext/standard/http_fopen_wrapper.c if (context && (tmpzval = php_stream_context_get_option(context, "http", "auto_decode")) != NULL) { context 813 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_REDIRECTED, location, 0); context 890 ext/standard/http_fopen_wrapper.c stream = php_stream_url_wrap_http_ex(wrapper, new_path, mode, options, opened_path, context, --redirect_max, HTTP_WRAPPER_REDIRECTED STREAMS_CC); context 916 ext/standard/http_fopen_wrapper.c php_stream_notify_progress_init(context, 0, file_size); context 947 ext/standard/http_fopen_wrapper.c php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ context 949 ext/standard/http_fopen_wrapper.c return php_stream_url_wrap_http_ex(wrapper, path, mode, options, opened_path, context, PHP_URL_REDIRECT_MAX, HTTP_WRAPPER_HEADER_INIT STREAMS_CC); context 52 ext/standard/md5.c PHP_MD5_CTX context; context 60 ext/standard/md5.c PHP_MD5Init(&context); context 61 ext/standard/md5.c PHP_MD5Update(&context, ZSTR_VAL(arg), ZSTR_LEN(arg)); context 62 ext/standard/md5.c PHP_MD5Final(digest, &context); context 83 ext/standard/md5.c PHP_MD5_CTX context; context 96 ext/standard/md5.c PHP_MD5Init(&context); context 99 ext/standard/md5.c PHP_MD5Update(&context, buf, n); context 105 ext/standard/md5.c PHP_MD5Final(digest, &context); context 112 ext/standard/md5.c PHP_MD5Final(digest, &context); context 175 ext/standard/php_fopen_wrapper.c zend_string **opened_path, php_stream_context *context STREAMS_DC) /* {{{ */ context 418 ext/standard/php_fopen_wrapper.c if (pipe_requested && stream && context) { context 419 ext/standard/php_fopen_wrapper.c zval *blocking_pipes = php_stream_context_get_option(context, "pipe", "blocking"); context 26 ext/standard/php_fopen_wrappers.h php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 27 ext/standard/php_fopen_wrappers.h php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 40 ext/standard/sha1.c PHP_SHA1_CTX context; context 48 ext/standard/sha1.c PHP_SHA1Init(&context); context 49 ext/standard/sha1.c PHP_SHA1Update(&context, (unsigned char *) ZSTR_VAL(arg), ZSTR_LEN(arg)); context 50 ext/standard/sha1.c PHP_SHA1Final(digest, &context); context 73 ext/standard/sha1.c PHP_SHA1_CTX context; context 86 ext/standard/sha1.c PHP_SHA1Init(&context); context 89 ext/standard/sha1.c PHP_SHA1Update(&context, buf, n); context 92 ext/standard/sha1.c PHP_SHA1Final(digest, &context); context 160 ext/standard/sha1.c PHPAPI void PHP_SHA1Init(PHP_SHA1_CTX * context) context 162 ext/standard/sha1.c context->count[0] = context->count[1] = 0; context 165 ext/standard/sha1.c context->state[0] = 0x67452301; context 166 ext/standard/sha1.c context->state[1] = 0xefcdab89; context 167 ext/standard/sha1.c context->state[2] = 0x98badcfe; context 168 ext/standard/sha1.c context->state[3] = 0x10325476; context 169 ext/standard/sha1.c context->state[4] = 0xc3d2e1f0; context 178 ext/standard/sha1.c PHPAPI void PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, context 184 ext/standard/sha1.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 187 ext/standard/sha1.c if ((context->count[0] += ((php_uint32) inputLen << 3)) context 189 ext/standard/sha1.c context->count[1]++; context 190 ext/standard/sha1.c context->count[1] += ((php_uint32) inputLen >> 29); context 198 ext/standard/sha1.c ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 199 ext/standard/sha1.c SHA1Transform(context->state, context->buffer); context 202 ext/standard/sha1.c SHA1Transform(context->state, &input[i]); context 210 ext/standard/sha1.c ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], context 219 ext/standard/sha1.c PHPAPI void PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) context 225 ext/standard/sha1.c bits[7] = context->count[0] & 0xFF; context 226 ext/standard/sha1.c bits[6] = (context->count[0] >> 8) & 0xFF; context 227 ext/standard/sha1.c bits[5] = (context->count[0] >> 16) & 0xFF; context 228 ext/standard/sha1.c bits[4] = (context->count[0] >> 24) & 0xFF; context 229 ext/standard/sha1.c bits[3] = context->count[1] & 0xFF; context 230 ext/standard/sha1.c bits[2] = (context->count[1] >> 8) & 0xFF; context 231 ext/standard/sha1.c bits[1] = (context->count[1] >> 16) & 0xFF; context 232 ext/standard/sha1.c bits[0] = (context->count[1] >> 24) & 0xFF; context 236 ext/standard/sha1.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 238 ext/standard/sha1.c PHP_SHA1Update(context, PADDING, padLen); context 241 ext/standard/sha1.c PHP_SHA1Update(context, bits, 8); context 244 ext/standard/sha1.c SHA1Encode(digest, context->state, 20); context 248 ext/standard/sha1.c memset((unsigned char*) context, 0, sizeof(*context)); context 100 ext/standard/streamsfuncs.c php_stream_context *context = NULL; context 108 ext/standard/streamsfuncs.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 135 ext/standard/streamsfuncs.c hashkey, &tv, context, &errstr, &err); context 184 ext/standard/streamsfuncs.c php_stream_context *context = NULL; context 192 ext/standard/streamsfuncs.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 194 ext/standard/streamsfuncs.c if (context) { context 195 ext/standard/streamsfuncs.c GC_REFCOUNT(context->res)++; context 209 ext/standard/streamsfuncs.c NULL, NULL, context, &errstr, &err); context 842 ext/standard/streamsfuncs.c static void user_space_stream_notifier(php_stream_context *context, int notifycode, int severity, context 845 ext/standard/streamsfuncs.c zval *callback = &context->notifier->ptr; context 878 ext/standard/streamsfuncs.c static int parse_context_options(php_stream_context *context, zval *options) context 889 ext/standard/streamsfuncs.c php_stream_context_set_option(context, ZSTR_VAL(wkey), ZSTR_VAL(okey), oval); context 901 ext/standard/streamsfuncs.c static int parse_context_params(php_stream_context *context, zval *params) context 908 ext/standard/streamsfuncs.c if (context->notifier) { context 909 ext/standard/streamsfuncs.c php_stream_notification_free(context->notifier); context 910 ext/standard/streamsfuncs.c context->notifier = NULL; context 913 ext/standard/streamsfuncs.c context->notifier = php_stream_notification_alloc(); context 914 ext/standard/streamsfuncs.c context->notifier->func = user_space_stream_notifier; context 915 ext/standard/streamsfuncs.c ZVAL_COPY(&context->notifier->ptr, tmp); context 916 ext/standard/streamsfuncs.c context->notifier->dtor = user_space_stream_notifier_dtor; context 920 ext/standard/streamsfuncs.c parse_context_options(context, tmp); context 934 ext/standard/streamsfuncs.c php_stream_context *context = NULL; context 936 ext/standard/streamsfuncs.c context = zend_fetch_resource_ex(contextresource, NULL, php_le_stream_context()); context 937 ext/standard/streamsfuncs.c if (context == NULL) { context 943 ext/standard/streamsfuncs.c context = PHP_STREAM_CONTEXT(stream); context 944 ext/standard/streamsfuncs.c if (context == NULL) { context 949 ext/standard/streamsfuncs.c context = php_stream_context_alloc(); context 950 ext/standard/streamsfuncs.c stream->ctx = context->res; context 955 ext/standard/streamsfuncs.c return context; context 964 ext/standard/streamsfuncs.c php_stream_context *context; context 976 ext/standard/streamsfuncs.c context = decode_context_param(zcontext); context 977 ext/standard/streamsfuncs.c if (!context) { context 982 ext/standard/streamsfuncs.c ZVAL_COPY(return_value, &context->options); context 991 ext/standard/streamsfuncs.c php_stream_context *context; context 1008 ext/standard/streamsfuncs.c if (!(context = decode_context_param(zcontext))) { context 1013 ext/standard/streamsfuncs.c RETURN_BOOL(parse_context_options(context, options) == SUCCESS); context 1033 ext/standard/streamsfuncs.c if (!(context = decode_context_param(zcontext))) { context 1038 ext/standard/streamsfuncs.c RETURN_BOOL(php_stream_context_set_option(context, wrappername, optionname, zvalue) == SUCCESS); context 1048 ext/standard/streamsfuncs.c php_stream_context *context; context 1061 ext/standard/streamsfuncs.c context = decode_context_param(zcontext); context 1062 ext/standard/streamsfuncs.c if (!context) { context 1067 ext/standard/streamsfuncs.c RETVAL_BOOL(parse_context_params(context, params) == SUCCESS); context 1076 ext/standard/streamsfuncs.c php_stream_context *context; context 1088 ext/standard/streamsfuncs.c context = decode_context_param(zcontext); context 1089 ext/standard/streamsfuncs.c if (!context) { context 1095 ext/standard/streamsfuncs.c if (context->notifier && Z_TYPE(context->notifier->ptr) != IS_UNDEF && context->notifier->func == user_space_stream_notifier) { context 1096 ext/standard/streamsfuncs.c add_assoc_zval_ex(return_value, "notification", sizeof("notification")-1, &context->notifier->ptr); context 1097 ext/standard/streamsfuncs.c if (Z_REFCOUNTED(context->notifier->ptr)) Z_ADDREF(context->notifier->ptr); context 1099 ext/standard/streamsfuncs.c if (Z_REFCOUNTED(context->options)) Z_ADDREF(context->options); context 1100 ext/standard/streamsfuncs.c add_assoc_zval_ex(return_value, "options", sizeof("options")-1, &context->options); context 1109 ext/standard/streamsfuncs.c php_stream_context *context; context 1118 ext/standard/streamsfuncs.c context = FG(default_context); context 1121 ext/standard/streamsfuncs.c parse_context_options(context, params); context 1124 ext/standard/streamsfuncs.c php_stream_context_to_zval(context, return_value); context 1133 ext/standard/streamsfuncs.c php_stream_context *context; context 1142 ext/standard/streamsfuncs.c context = FG(default_context); context 1144 ext/standard/streamsfuncs.c parse_context_options(context, options); context 1146 ext/standard/streamsfuncs.c php_stream_context_to_zval(context, return_value); context 1155 ext/standard/streamsfuncs.c php_stream_context *context; context 1161 ext/standard/streamsfuncs.c context = php_stream_context_alloc(); context 1164 ext/standard/streamsfuncs.c parse_context_options(context, options); context 1168 ext/standard/streamsfuncs.c parse_context_params(context, params); context 1171 ext/standard/streamsfuncs.c RETURN_RES(context->res); context 717 ext/standard/url.c php_stream_context *context; context 726 ext/standard/url.c context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_alloc()); context 728 ext/standard/url.c if (!(stream = php_stream_open_wrapper_ex(url, "r", REPORT_ERRORS | STREAM_USE_URL | STREAM_ONLY_GET_HEADERS, NULL, context))) { context 92 ext/zip/php_zip.h php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 265 ext/zip/zip_stream.c php_stream_context *context STREAMS_DC) context 68 ext/zlib/php_zlib.h php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 114 ext/zlib/zlib_fopen_wrapper.c zend_string **opened_path, php_stream_context *context STREAMS_DC) context 133 ext/zlib/zlib_fopen_wrapper.c innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context); context 59 main/output.c static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context); context 63 main/output.c static inline php_output_context *php_output_context_init(php_output_context *context, int op); context 64 main/output.c static inline void php_output_context_reset(php_output_context *context); context 65 main/output.c static inline void php_output_context_swap(php_output_context *context); context 66 main/output.c static inline void php_output_context_dtor(php_output_context *context); context 271 main/output.c php_output_context context; context 274 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_FLUSH); context 275 main/output.c php_output_handler_op(OG(active), &context); context 276 main/output.c if (context.out.data && context.out.used) { context 278 main/output.c php_output_write(context.out.data, context.out.used); context 281 main/output.c php_output_context_dtor(&context); context 302 main/output.c php_output_context context; context 305 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_CLEAN); context 306 main/output.c php_output_handler_op(OG(active), &context); context 307 main/output.c php_output_context_dtor(&context); context 318 main/output.c php_output_context context; context 321 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_CLEAN); context 322 main/output.c zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_clean, &context); context 775 main/output.c static inline php_output_context *php_output_context_init(php_output_context *context, int op) context 777 main/output.c if (!context) { context 778 main/output.c context = emalloc(sizeof(php_output_context)); context 781 main/output.c memset(context, 0, sizeof(php_output_context)); context 782 main/output.c context->op = op; context 784 main/output.c return context; context 790 main/output.c static inline void php_output_context_reset(php_output_context *context) context 792 main/output.c int op = context->op; context 793 main/output.c php_output_context_dtor(context); context 794 main/output.c memset(context, 0, sizeof(php_output_context)); context 795 main/output.c context->op = op; context 801 main/output.c static inline void php_output_context_feed(php_output_context *context, char *data, size_t size, size_t used, zend_bool free) context 803 main/output.c if (context->in.free && context->in.data) { context 804 main/output.c efree(context->in.data); context 806 main/output.c context->in.data = data; context 807 main/output.c context->in.used = used; context 808 main/output.c context->in.free = free; context 809 main/output.c context->in.size = size; context 815 main/output.c static inline void php_output_context_swap(php_output_context *context) context 817 main/output.c if (context->in.free && context->in.data) { context 818 main/output.c efree(context->in.data); context 820 main/output.c context->in.data = context->out.data; context 821 main/output.c context->in.used = context->out.used; context 822 main/output.c context->in.free = context->out.free; context 823 main/output.c context->in.size = context->out.size; context 824 main/output.c context->out.data = NULL; context 825 main/output.c context->out.used = 0; context 826 main/output.c context->out.free = 0; context 827 main/output.c context->out.size = 0; context 833 main/output.c static inline void php_output_context_pass(php_output_context *context) context 835 main/output.c context->out.data = context->in.data; context 836 main/output.c context->out.used = context->in.used; context 837 main/output.c context->out.size = context->in.size; context 838 main/output.c context->out.free = context->in.free; context 839 main/output.c context->in.data = NULL; context 840 main/output.c context->in.used = 0; context 841 main/output.c context->in.free = 0; context 842 main/output.c context->in.size = 0; context 848 main/output.c static inline void php_output_context_dtor(php_output_context *context) context 850 main/output.c if (context->in.free && context->in.data) { context 851 main/output.c efree(context->in.data); context 852 main/output.c context->in.data = NULL; context 854 main/output.c if (context->out.free && context->out.data) { context 855 main/output.c efree(context->out.data); context 856 main/output.c context->out.data = NULL; context 908 main/output.c static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context) context 911 main/output.c int original_op = context->op; context 923 main/output.c context->op, context 930 main/output.c context->in.used?context->in.data:"", context 931 main/output.c context->in.used context 935 main/output.c if (php_output_lock_error(context->op)) { context 941 main/output.c if (php_output_handler_append(handler, &context->in) && !context->op) { context 942 main/output.c context->op = original_op; context 947 main/output.c context->op |= PHP_OUTPUT_HANDLER_START; context 955 main/output.c ZVAL_LONG(&ob_mode, (zend_long) context->op); context 966 main/output.c context->out.data = estrndup(Z_STRVAL(retval), Z_STRLEN(retval)); context 967 main/output.c context->out.used = Z_STRLEN(retval); context 968 main/output.c context->out.free = 1; context 982 main/output.c php_output_context_feed(context, handler->buffer.data, handler->buffer.size, handler->buffer.used, 0); context 984 main/output.c if (SUCCESS == handler->func.internal(&handler->opaq, context)) { context 985 main/output.c if (context->out.used) { context 1003 main/output.c if (context->out.data && context->out.free) { context 1004 main/output.c efree(context->out.data); context 1007 main/output.c context->out.data = handler->buffer.data; context 1008 main/output.c context->out.used = handler->buffer.used; context 1009 main/output.c context->out.free = 1; context 1016 main/output.c php_output_context_reset(context); context 1025 main/output.c context->op = original_op; context 1035 main/output.c php_output_context context; context 1043 main/output.c php_output_context_init(&context, op); context 1051 main/output.c context.in.data = (char *) str; context 1052 main/output.c context.in.used = len; context 1055 main/output.c zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_op, &context); context 1057 main/output.c php_output_handler_op(*active, &context); context 1059 main/output.c php_output_context_pass(&context); context 1062 main/output.c context.out.data = (char *) str; context 1063 main/output.c context.out.used = len; context 1066 main/output.c if (context.out.data && context.out.used) { context 1071 main/output.c fprintf(stderr, "::: sapi_write('%s', %zu)\n", context.out.data, context.out.used); context 1073 main/output.c sapi_module.ub_write(context.out.data, context.out.used); context 1082 main/output.c php_output_context_dtor(&context); context 1093 main/output.c php_output_context *context = (php_output_context *) c; context 1098 main/output.c status = php_output_handler_op(handler, context); context 1112 main/output.c php_output_context_swap(context); context 1121 main/output.c php_output_context_pass(context); context 1126 main/output.c php_output_context_swap(context); context 1139 main/output.c php_output_context *context = (php_output_context *) c; context 1142 main/output.c php_output_handler_op(handler, context); context 1143 main/output.c php_output_context_reset(context); context 1195 main/output.c php_output_context context; context 1209 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_FINAL); context 1215 main/output.c context.op |= PHP_OUTPUT_HANDLER_START; context 1219 main/output.c context.op |= PHP_OUTPUT_HANDLER_CLEAN; context 1221 main/output.c php_output_handler_op(orphan, &context); context 1233 main/output.c if (context.out.data && context.out.used && !(flags & PHP_OUTPUT_POP_DISCARD)) { context 1234 main/output.c php_output_write(context.out.data, context.out.used); context 1239 main/output.c php_output_context_dtor(&context); context 82 main/php_streams.h #define php_stream_open_wrapper_ex_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), (context) STREAMS_REL_CC) context 137 main/php_streams.h int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 143 main/php_streams.h int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context); context 146 main/php_streams.h int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 151 main/php_streams.h int (*unlink)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); context 154 main/php_streams.h int (*rename)(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context); context 157 main/php_streams.h int (*stream_mkdir)(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context); context 158 main/php_streams.h int (*stream_rmdir)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); context 160 main/php_streams.h int (*stream_metadata)(php_stream_wrapper *wrapper, const char *url, int options, void *value, php_stream_context *context); context 346 main/php_streams.h PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context); context 348 main/php_streams.h #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (ssb), (context)) context 350 main/php_streams.h PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context); context 351 main/php_streams.h #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, context) context 353 main/php_streams.h PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context); context 354 main/php_streams.h #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) context 356 main/php_streams.h PHPAPI php_stream *_php_stream_opendir(const char *path, int options, php_stream_context *context STREAMS_DC); context 357 main/php_streams.h #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context) STREAMS_CC) context 366 main/php_streams.h PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context, context 368 main/php_streams.h #define php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist), 0, (context), (compare)) context 564 main/php_streams.h PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 569 main/php_streams.h #define php_stream_open_wrapper_ex(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), (context) STREAMS_CC) context 210 main/streams/glob_wrapper.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) context 623 main/streams/memory.c php_stream_context *context STREAMS_DC) /* {{{ */ context 24 main/streams/php_stream_context.h typedef void (*php_stream_notification_func)(php_stream_context *context, context 41 main/streams/php_stream_context.h #define php_stream_context_to_zval(context, zval) { ZVAL_RES(zval, (context)->res); GC_REFCOUNT((context)->res)++; } context 60 main/streams/php_stream_context.h PHPAPI void php_stream_context_free(php_stream_context *context); context 62 main/streams/php_stream_context.h PHPAPI zval *php_stream_context_get_option(php_stream_context *context, context 64 main/streams/php_stream_context.h PHPAPI int php_stream_context_set_option(php_stream_context *context, context 88 main/streams/php_stream_context.h PHPAPI void php_stream_notification_notify(php_stream_context *context, int notifycode, int severity, context 90 main/streams/php_stream_context.h PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream_context *context); context 93 main/streams/php_stream_context.h #define php_stream_notify_info(context, code, xmsg, xcode) do { if ((context) && (context)->notifier) { \ context 94 main/streams/php_stream_context.h php_stream_notification_notify((context), (code), PHP_STREAM_NOTIFY_SEVERITY_INFO, \ context 97 main/streams/php_stream_context.h #define php_stream_notify_progress(context, bsofar, bmax) do { if ((context) && (context)->notifier) { \ context 98 main/streams/php_stream_context.h php_stream_notification_notify((context), PHP_STREAM_NOTIFY_PROGRESS, PHP_STREAM_NOTIFY_SEVERITY_INFO, \ context 101 main/streams/php_stream_context.h #define php_stream_notify_progress_init(context, sofar, bmax) do { if ((context) && (context)->notifier) { \ context 102 main/streams/php_stream_context.h (context)->notifier->progress = (sofar); \ context 103 main/streams/php_stream_context.h (context)->notifier->progress_max = (bmax); \ context 104 main/streams/php_stream_context.h (context)->notifier->mask |= PHP_STREAM_NOTIFIER_PROGRESS; \ context 105 main/streams/php_stream_context.h php_stream_notify_progress((context), (sofar), (bmax)); } } while (0) context 107 main/streams/php_stream_context.h #define php_stream_notify_progress_increment(context, dsofar, dmax) do { if ((context) && (context)->notifier && (context)->notifier->mask & PHP_STREAM_NOTIFIER_PROGRESS) { \ context 108 main/streams/php_stream_context.h (context)->notifier->progress += (dsofar); \ context 109 main/streams/php_stream_context.h (context)->notifier->progress_max += (dmax); \ context 110 main/streams/php_stream_context.h php_stream_notify_progress((context), (context)->notifier->progress, (context)->notifier->progress_max); } } while (0) context 112 main/streams/php_stream_context.h #define php_stream_notify_file_size(context, file_size, xmsg, xcode) do { if ((context) && (context)->notifier) { \ context 113 main/streams/php_stream_context.h php_stream_notification_notify((context), PHP_STREAM_NOTIFY_FILE_SIZE_IS, PHP_STREAM_NOTIFY_SEVERITY_INFO, \ context 116 main/streams/php_stream_context.h #define php_stream_notify_error(context, code, xmsg, xcode) do { if ((context) && (context)->notifier) {\ context 117 main/streams/php_stream_context.h php_stream_notification_notify((context), (code), PHP_STREAM_NOTIFY_SEVERITY_ERR, \ context 33 main/streams/php_stream_transport.h php_stream_context *context STREAMS_DC); context 52 main/streams/php_stream_transport.h php_stream_context *context, context 57 main/streams/php_stream_transport.h #define php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode) \ context 58 main/streams/php_stream_transport.h _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC) context 913 main/streams/plain_wrapper.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) context 920 main/streams/plain_wrapper.c return php_glob_stream_wrapper.wops->dir_opener(&php_glob_stream_wrapper, path, mode, options, opened_path, context STREAMS_REL_CC); context 1048 main/streams/plain_wrapper.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) context 1057 main/streams/plain_wrapper.c static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) context 1081 main/streams/plain_wrapper.c static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) context 1107 main/streams/plain_wrapper.c static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context) context 1191 main/streams/plain_wrapper.c static int php_plain_files_mkdir(php_stream_wrapper *wrapper, const char *dir, int mode, int options, php_stream_context *context) context 1277 main/streams/plain_wrapper.c static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) context 1305 main/streams/plain_wrapper.c static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context) context 366 main/streams/streams.c php_stream_context *context = NULL; context 372 main/streams/streams.c context = PHP_STREAM_CONTEXT(stream); context 544 main/streams/streams.c if (context) { context 545 main/streams/streams.c zend_list_delete(context->res); context 1888 main/streams/streams.c PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context) context 1897 main/streams/streams.c return wrapper->wops->stream_mkdir(wrapper, path, mode, options, context); context 1903 main/streams/streams.c PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context) context 1912 main/streams/streams.c return wrapper->wops->stream_rmdir(wrapper, path, options, context); context 1917 main/streams/streams.c PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context) context 1940 main/streams/streams.c ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context); context 1967 main/streams/streams.c php_stream_context *context STREAMS_DC) context 1984 main/streams/streams.c context STREAMS_REL_CC); context 2016 main/streams/streams.c zend_string **opened_path, php_stream_context *context STREAMS_DC) context 2062 main/streams/streams.c opened_path, context STREAMS_REL_CC); context 2160 main/streams/streams.c PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream_context *context) context 2164 main/streams/streams.c if (context) { context 2165 main/streams/streams.c stream->ctx = context->res; context 2166 main/streams/streams.c GC_REFCOUNT(context->res)++; context 2177 main/streams/streams.c PHPAPI void php_stream_notification_notify(php_stream_context *context, int notifycode, int severity, context 2180 main/streams/streams.c if (context && context->notifier) context 2181 main/streams/streams.c context->notifier->func(context, notifycode, severity, xmsg, xcode, bytes_sofar, bytes_max, ptr); context 2184 main/streams/streams.c PHPAPI void php_stream_context_free(php_stream_context *context) context 2186 main/streams/streams.c if (Z_TYPE(context->options) != IS_UNDEF) { context 2187 main/streams/streams.c zval_ptr_dtor(&context->options); context 2188 main/streams/streams.c ZVAL_UNDEF(&context->options); context 2190 main/streams/streams.c if (context->notifier) { context 2191 main/streams/streams.c php_stream_notification_free(context->notifier); context 2192 main/streams/streams.c context->notifier = NULL; context 2194 main/streams/streams.c efree(context); context 2199 main/streams/streams.c php_stream_context *context; context 2201 main/streams/streams.c context = ecalloc(1, sizeof(php_stream_context)); context 2202 main/streams/streams.c context->notifier = NULL; context 2203 main/streams/streams.c array_init(&context->options); context 2205 main/streams/streams.c context->res = zend_register_resource(context, php_le_stream_context()); context 2206 main/streams/streams.c return context; context 2222 main/streams/streams.c PHPAPI zval *php_stream_context_get_option(php_stream_context *context, context 2227 main/streams/streams.c if (NULL == (wrapperhash = zend_hash_str_find(Z_ARRVAL(context->options), wrappername, strlen(wrappername)))) { context 2233 main/streams/streams.c PHPAPI int php_stream_context_set_option(php_stream_context *context, context 2239 main/streams/streams.c wrapperhash = zend_hash_str_find(Z_ARRVAL(context->options), wrappername, strlen(wrappername)); context 2242 main/streams/streams.c wrapperhash = zend_hash_str_update(Z_ARRVAL(context->options), (char*)wrappername, strlen(wrappername), &category); context 2271 main/streams/streams.c PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context, context 2284 main/streams/streams.c stream = php_stream_opendir(dirname, REPORT_ERRORS, context); context 55 main/streams/transports.c php_stream_context *context, context 134 main/streams/transports.c context STREAMS_REL_CC); context 137 main/streams/transports.c php_stream_context_set(stream, context); context 48 main/streams/userspace.c static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 49 main/streams/userspace.c static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context); context 50 main/streams/userspace.c static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); context 51 main/streams/userspace.c static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context); context 52 main/streams/userspace.c static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context); context 53 main/streams/userspace.c static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context); context 54 main/streams/userspace.c static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context); context 56 main/streams/userspace.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC); context 284 main/streams/userspace.c static void user_stream_create_object(struct php_user_stream_wrapper *uwrap, php_stream_context *context, zval *object) context 289 main/streams/userspace.c if (context) { context 290 main/streams/userspace.c add_property_resource(object, "context", context->res); context 291 main/streams/userspace.c GC_REFCOUNT(context->res)++; context 328 main/streams/userspace.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) context 359 main/streams/userspace.c user_stream_create_object(uwrap, context, &us->object); context 418 main/streams/userspace.c int options, zend_string **opened_path, php_stream_context *context STREAMS_DC) context 437 main/streams/userspace.c user_stream_create_object(uwrap, context, &us->object); context 1093 main/streams/userspace.c static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context) context 1103 main/streams/userspace.c user_stream_create_object(uwrap, context, &object); context 1137 main/streams/userspace.c int options, php_stream_context *context) context 1147 main/streams/userspace.c user_stream_create_object(uwrap, context, &object); context 1183 main/streams/userspace.c int options, php_stream_context *context) context 1193 main/streams/userspace.c user_stream_create_object(uwrap, context, &object); context 1231 main/streams/userspace.c int options, php_stream_context *context) context 1241 main/streams/userspace.c user_stream_create_object(uwrap, context, &object); context 1277 main/streams/userspace.c void *value, php_stream_context *context) context 1311 main/streams/userspace.c user_stream_create_object(uwrap, context, &object); context 1350 main/streams/userspace.c php_stream_statbuf *ssb, php_stream_context *context) context 1360 main/streams/userspace.c user_stream_create_object(uwrap, context, &object); context 859 main/streams/xp_socket.c php_stream_context *context STREAMS_DC) context 100 sapi/litespeed/lsapilib.c void lsapi_MD5Init(struct lsapi_MD5Context *context); context 101 sapi/litespeed/lsapilib.c void lsapi_MD5Update(struct lsapi_MD5Context *context, unsigned char const *buf, context 103 sapi/litespeed/lsapilib.c void lsapi_MD5Final(unsigned char digest[16], struct lsapi_MD5Context *context); context 714 sapi/phpdbg/phpdbg.c ZEND_ARG_INFO(0, context) context 932 sapi/phpdbg/phpdbg.c static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */ context 1176 sapi/phpdbg/phpdbg.c void phpdbg_sigio_handler(int sig, siginfo_t *info, void *context) /* {{{ */ context 1232 sapi/phpdbg/phpdbg.c void phpdbg_signal_handler(int sig, siginfo_t *info, void *context) /* {{{ */ context 1242 sapi/phpdbg/phpdbg.c is_handled = phpdbg_watchpoint_segfault_handler(info, context); context 807 sapi/phpdbg/phpdbg_watch.c int phpdbg_watchpoint_segfault_handler(siginfo_t *info, void *context) { context 94 sapi/phpdbg/phpdbg_watch.h int phpdbg_watchpoint_segfault_handler(siginfo_t *info, void *context);