context 383 TSRM/TSRM.c void tsrm_free_interpreter_context(void *context) context 385 TSRM/TSRM.c tsrm_tls_entry *next, *thread_resources = (tsrm_tls_entry*)context; context 156 TSRM/TSRM.h TSRM_API void tsrm_free_interpreter_context(void *context); context 177 Zend/zend_compile.c CG(context).opcodes_size = (CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) ? INITIAL_INTERACTIVE_OP_ARRAY_SIZE : INITIAL_OP_ARRAY_SIZE; context 178 Zend/zend_compile.c CG(context).vars_size = 0; context 179 Zend/zend_compile.c CG(context).literals_size = 0; context 180 Zend/zend_compile.c CG(context).current_brk_cont = -1; context 181 Zend/zend_compile.c CG(context).backpatch_count = 0; context 182 Zend/zend_compile.c CG(context).nested_calls = 0; context 183 Zend/zend_compile.c CG(context).used_stack = 0; context 184 Zend/zend_compile.c CG(context).in_finally = 0; context 185 Zend/zend_compile.c CG(context).labels = NULL; context 228 Zend/zend_compile.c memset(&CG(context), 0, sizeof(CG(context))); context 316 Zend/zend_compile.c if (op_array->last_var > CG(context).vars_size) { context 317 Zend/zend_compile.c CG(context).vars_size += 16; /* FIXME */ context 318 Zend/zend_compile.c op_array->vars = erealloc(op_array->vars, CG(context).vars_size * sizeof(zend_compiled_variable)); context 360 Zend/zend_compile.c if (i >= CG(context).literals_size) { context 361 Zend/zend_compile.c while (i >= CG(context).literals_size) { context 362 Zend/zend_compile.c CG(context).literals_size += 16; /* FIXME */ context 364 Zend/zend_compile.c op_array->literals = (zend_literal*)erealloc(op_array->literals, CG(context).literals_size * sizeof(zend_literal)); context 1078 Zend/zend_compile.c parent = CG(context).current_brk_cont; context 1079 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->last_brk_cont; context 1092 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].start = -1; context 1094 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].cont = cont_addr; context 1095 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].brk = get_next_op_number(CG(active_op_array)); context 1096 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].parent; context 1588 Zend/zend_compile.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); context 1751 Zend/zend_compile.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); context 2009 Zend/zend_compile.c if (CG(context).nested_calls + 1 > CG(active_op_array)->nested_calls) { context 2010 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls + 1; context 2048 Zend/zend_compile.c last_op->result.num = CG(context).nested_calls; context 2053 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; context 2065 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { context 2066 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; context 2094 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; context 2101 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; context 2113 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { context 2114 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; context 2382 Zend/zend_compile.c if (!CG(context).labels) { context 2383 Zend/zend_compile.c ALLOC_HASHTABLE(CG(context).labels); context 2384 Zend/zend_compile.c zend_hash_init(CG(context).labels, 4, NULL, NULL, 0); context 2387 Zend/zend_compile.c dest.brk_cont = CG(context).current_brk_cont; context 2390 Zend/zend_compile.c if (zend_hash_add(CG(context).labels, Z_STRVAL(label->u.constant), Z_STRLEN(label->u.constant) + 1, (void**)&dest, sizeof(zend_label), NULL) == FAILURE) { context 2410 Zend/zend_compile.c if (CG(context).labels == NULL || context 2411 Zend/zend_compile.c zend_hash_find(CG(context).labels, Z_STRVAL_P(label), Z_STRLEN_P(label)+1, (void**)&dest) == FAILURE) { context 2464 Zend/zend_compile.c opline->extended_value = CG(context).current_brk_cont; context 2473 Zend/zend_compile.c if (CG(context).labels) { context 2474 Zend/zend_compile.c zend_hash_destroy(CG(context).labels); context 2475 Zend/zend_compile.c FREE_HASHTABLE(CG(context).labels); context 2476 Zend/zend_compile.c CG(context).labels = NULL; context 2482 Zend/zend_compile.c CG(context) = *ctx; context 2546 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; context 2568 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { context 2569 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; context 2594 Zend/zend_compile.c opline->op2.num = CG(context).nested_calls; context 2601 Zend/zend_compile.c opline->op2.num = --CG(context).nested_calls; context 2617 Zend/zend_compile.c if (CG(context).used_stack + 1 > CG(active_op_array)->used_stack) { context 2618 Zend/zend_compile.c CG(active_op_array)->used_stack = CG(context).used_stack + 1; context 2620 Zend/zend_compile.c CG(context).used_stack -= fcall->arg_num; context 2734 Zend/zend_compile.c if (++CG(context).used_stack > CG(active_op_array)->used_stack) { context 2735 Zend/zend_compile.c CG(active_op_array)->used_stack = CG(context).used_stack; context 2757 Zend/zend_compile.c opline->result.num = CG(context).nested_calls; context 2763 Zend/zend_compile.c ++CG(context).nested_calls; context 2844 Zend/zend_compile.c if (CG(context).in_finally) { context 3002 Zend/zend_compile.c CG(context).in_finally++; context 3082 Zend/zend_compile.c CG(context).in_finally--; context 4968 Zend/zend_compile.c opline->op1.opline_num = CG(context).current_brk_cont; context 5022 Zend/zend_compile.c CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].brk = get_next_op_number(CG(active_op_array)); context 5023 Zend/zend_compile.c CG(context).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].parent; context 5635 Zend/zend_compile.c opline->extended_value = CG(context).nested_calls; context 5642 Zend/zend_compile.c if (++CG(context).nested_calls > CG(active_op_array)->nested_calls) { context 5643 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls; context 5855 Zend/zend_compile.c opline->op2.num = CG(context).nested_calls; context 5858 Zend/zend_compile.c if (CG(context).nested_calls + 1 > CG(active_op_array)->nested_calls) { context 5859 Zend/zend_compile.c CG(active_op_array)->nested_calls = CG(context).nested_calls + 1; context 5861 Zend/zend_compile.c if (CG(context).used_stack + 2 > CG(active_op_array)->used_stack) { context 5862 Zend/zend_compile.c CG(active_op_array)->used_stack = CG(context).used_stack + 2; context 40 Zend/zend_compile.h #define INC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count++); } context 41 Zend/zend_compile.h #define DEC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count--); } context 1146 Zend/zend_execute_API.c || CG(context).backpatch_count>0 context 141 Zend/zend_globals.h zend_compiler_context context; context 586 Zend/zend_language_scanner.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); context 750 Zend/zend_language_scanner.c zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); context 432 Zend/zend_opcode.c if (next_op_num >= CG(context).opcodes_size) { context 439 Zend/zend_opcode.c CG(context).opcodes_size *= 4; context 440 Zend/zend_opcode.c op_array_alloc_ops(op_array, CG(context).opcodes_size); context 737 Zend/zend_opcode.c if (!(op_array->fn_flags & ZEND_ACC_INTERACTIVE) && CG(context).vars_size != op_array->last_var) { context 739 Zend/zend_opcode.c CG(context).vars_size = op_array->last_var; context 741 Zend/zend_opcode.c if (!(op_array->fn_flags & ZEND_ACC_INTERACTIVE) && CG(context).opcodes_size != op_array->last) { context 743 Zend/zend_opcode.c CG(context).opcodes_size = op_array->last; context 745 Zend/zend_opcode.c if (!(op_array->fn_flags & ZEND_ACC_INTERACTIVE) && CG(context).literals_size != op_array->last_literal) { context 747 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 TSRMLS_DC); context 73 Zend/zend_signal.c void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) context 86 Zend/zend_signal.c zend_signal_handler(signo, siginfo, context TSRMLS_CC); context 92 Zend/zend_signal.c zend_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.context TSRMLS_CC); context 108 Zend/zend_signal.c queue->zend_signal.context = context; context 126 Zend/zend_signal.c zend_signal_handler(signo, siginfo, context TSRMLS_CC); context 148 Zend/zend_signal.c zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context); context 157 Zend/zend_signal.c static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context TSRMLS_DC) context 184 Zend/zend_signal.c (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context); context 47 Zend/zend_signal.h void* context; context 85 Zend/zend_signal.h void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context); context 213 ext/bz2/bz2.c php_stream_context *context STREAMS_DC TSRMLS_DC) context 50 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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_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 95 ext/dom/xpath.c intern = (dom_xpath_object *) ctxt->context->userData; context 388 ext/dom/xpath.c zval *id, *retval, *context = NULL; context 400 ext/dom/xpath.c if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|O!b", &id, dom_xpath_class_entry, &expr, &expr_len, &context, dom_node_class_entry, ®ister_node_ns) == FAILURE) { context 418 ext/dom/xpath.c if (context != NULL) { context 419 ext/dom/xpath.c DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); context 141 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 147 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 154 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 160 ext/fileinfo/fileinfo.c ZEND_ARG_INFO(0, context) context 521 ext/fileinfo/fileinfo.c php_stream_context *context = php_stream_context_from_zval(zcontext, 0); context 524 ext/fileinfo/fileinfo.c if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { context 533 ext/fileinfo/fileinfo.c stream = php_stream_open_wrapper_ex(buffer, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context); context 535 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 132 ext/hash/hash.c void *context; context 156 ext/hash/hash.c context = emalloc(ops->context_size); context 157 ext/hash/hash.c ops->hash_init(context); context 164 ext/hash/hash.c ops->hash_update(context, (unsigned char *) buf, n); context 168 ext/hash/hash.c ops->hash_update(context, (unsigned char *) data, data_len); context 172 ext/hash/hash.c ops->hash_final((unsigned char *) digest, context); context 173 ext/hash/hash.c efree(context); context 221 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 int key_len) { context 225 ext/hash/hash.c ops->hash_init(context); context 226 ext/hash/hash.c ops->hash_update(context, key, key_len); context 227 ext/hash/hash.c ops->hash_final(K, context); context 235 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 long data_size) { context 236 ext/hash/hash.c ops->hash_init(context); context 237 ext/hash/hash.c ops->hash_update(context, key, ops->block_size); context 238 ext/hash/hash.c ops->hash_update(context, data, data_size); context 239 ext/hash/hash.c ops->hash_final(final, context); context 248 ext/hash/hash.c void *context; context 273 ext/hash/hash.c context = emalloc(ops->context_size); context 278 ext/hash/hash.c php_hash_hmac_prep_key((unsigned char *) K, ops, context, (unsigned char *) key, key_len); context 283 ext/hash/hash.c ops->hash_init(context); context 284 ext/hash/hash.c ops->hash_update(context, (unsigned char *) K, ops->block_size); context 286 ext/hash/hash.c ops->hash_update(context, (unsigned char *) buf, n); context 289 ext/hash/hash.c ops->hash_final((unsigned char *) digest, context); context 291 ext/hash/hash.c php_hash_hmac_round((unsigned char *) digest, ops, context, (unsigned char *) K, (unsigned char *) data, data_len); context 296 ext/hash/hash.c php_hash_hmac_round((unsigned char *) digest, ops, context, (unsigned char *) K, (unsigned char *) digest, ops->digest_size); context 301 ext/hash/hash.c efree(context); context 343 ext/hash/hash.c void *context; context 364 ext/hash/hash.c context = emalloc(ops->context_size); context 365 ext/hash/hash.c ops->hash_init(context); context 369 ext/hash/hash.c hash->context = context; context 381 ext/hash/hash.c ops->hash_update(context, (unsigned char *) key, key_len); context 382 ext/hash/hash.c ops->hash_final((unsigned char *) K, context); context 384 ext/hash/hash.c ops->hash_init(context); context 393 ext/hash/hash.c ops->hash_update(context, (unsigned char *) K, ops->block_size); context 416 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) data, data_len); context 450 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) buf, n); context 465 ext/hash/hash.c php_stream_context *context; context 475 ext/hash/hash.c context = php_stream_context_from_zval(zcontext, 0); context 477 ext/hash/hash.c stream = php_stream_open_wrapper_ex(filename, "rb", REPORT_ERRORS, NULL, context); context 484 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) buf, n); context 511 ext/hash/hash.c hash->ops->hash_final((unsigned char *) digest, hash->context); context 521 ext/hash/hash.c hash->ops->hash_init(hash->context); context 522 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) hash->key, hash->ops->block_size); context 523 ext/hash/hash.c hash->ops->hash_update(hash->context, (unsigned char *) digest, hash->ops->digest_size); context 524 ext/hash/hash.c hash->ops->hash_final((unsigned char *) digest, hash->context); context 532 ext/hash/hash.c efree(hash->context); context 533 ext/hash/hash.c hash->context = NULL; context 562 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 623 ext/hash/hash.c void *context; context 650 ext/hash/hash.c context = emalloc(ops->context_size); context 651 ext/hash/hash.c ops->hash_init(context); context 659 ext/hash/hash.c php_hash_hmac_prep_key(K1, ops, context, (unsigned char *) pass, pass_len); context 691 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K1, computed_salt, (long) salt_len + 4); context 692 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); context 704 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K1, digest, ops->digest_size); context 705 ext/hash/hash.c php_hash_hmac_round(digest, ops, context, K2, digest, ops->digest_size); context 720 ext/hash/hash.c efree(context); context 783 ext/hash/hash.c if (hash->context) { context 785 ext/hash/hash.c hash->ops->hash_final(dummy, hash->context); context 787 ext/hash/hash.c efree(hash->context); context 965 ext/hash/hash.c void *context; context 972 ext/hash/hash.c context = emalloc(ops->context_size); context 973 ext/hash/hash.c ops->hash_init(context); context 979 ext/hash/hash.c ops->hash_init(context); context 982 ext/hash/hash.c ops->hash_update(context, &null, 1); context 984 ext/hash/hash.c ops->hash_update(context, (unsigned char *)padded_salt, salt_len); context 985 ext/hash/hash.c ops->hash_update(context, (unsigned char *)password, password_len); context 986 ext/hash/hash.c ops->hash_final((unsigned char *)digest, context); context 993 ext/hash/hash.c efree(context); context 1163 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1168 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1174 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1176 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1180 ext/hash/hash.c ZEND_ARG_INFO(0, context) context 1185 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 memset(&context->buffer[r], 0, 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 memset(context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset((unsigned char*) context, 0, 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 memset(&context->buffer[r], 0, 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 memset(context, 0, 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 memset(context->buffer, 0, 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 memset(&context->buffer[r], 0, 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 memset(context, 0, 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 memset(context, 0, 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 memset(context, 0, 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 memset(context, 0, sizeof(*context)); context 38 ext/hash/php_hash.h typedef void (*php_hash_init_func_t)(void *context); context 39 ext/hash/php_hash.h typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count); context 40 ext/hash/php_hash.h typedef void (*php_hash_final_func_t)(unsigned char *digest, void *context); context 56 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 220 ext/intl/converter/converter.c static void php_converter_to_u_callback(const void *context, context 225 ext/intl/converter/converter.c php_converter_object *objval = (php_converter_object*)context; context 310 ext/intl/converter/converter.c static void php_converter_from_u_callback(const void *context, context 315 ext/intl/converter/converter.c php_converter_object *objval = (php_converter_object*)context; context 97 ext/libxml/libxml.c ZEND_ARG_INFO(0, context) context 294 ext/libxml/libxml.c php_stream_context *context = NULL; context 352 ext/libxml/libxml.c context = php_stream_context_from_zval(LIBXML(stream_context), 0); context 354 ext/libxml/libxml.c ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context); context 371 ext/libxml/libxml.c static int php_libxml_streams_IO_read(void *context, char *buffer, int len) context 374 ext/libxml/libxml.c return php_stream_read((php_stream*)context, buffer, len); context 377 ext/libxml/libxml.c static int php_libxml_streams_IO_write(void *context, const char *buffer, int len) context 380 ext/libxml/libxml.c return php_stream_write((php_stream*)context, buffer, len); context 383 ext/libxml/libxml.c static int php_libxml_streams_IO_close(void *context) context 386 ext/libxml/libxml.c return php_stream_close((php_stream*)context); context 393 ext/libxml/libxml.c void *context = NULL; context 403 ext/libxml/libxml.c context = php_libxml_streams_IO_open_read_wrapper(URI); context 405 ext/libxml/libxml.c if (context == NULL) { context 412 ext/libxml/libxml.c ret->context = context; context 416 ext/libxml/libxml.c php_libxml_streams_IO_close(context); context 428 ext/libxml/libxml.c void *context = NULL; context 442 ext/libxml/libxml.c context = php_libxml_streams_IO_open_write_wrapper(unescaped); context 447 ext/libxml/libxml.c if (context == NULL) { context 448 ext/libxml/libxml.c context = php_libxml_streams_IO_open_write_wrapper(URI); context 451 ext/libxml/libxml.c if (context == NULL) { context 458 ext/libxml/libxml.c ret->context = context; context 570 ext/libxml/libxml.c const char *ID, xmlParserCtxtPtr context) context 587 ext/libxml/libxml.c return _php_libxml_default_entity_loader(URL, ID, context); context 602 ext/libxml/libxml.c if (context->memb == NULL) { \ context 606 ext/libxml/libxml.c (char *)context->memb, 1); \ context 623 ext/libxml/libxml.c php_libxml_ctx_error(context, context 629 ext/libxml/libxml.c php_libxml_ctx_error(context, context 640 ext/libxml/libxml.c php_libxml_ctx_error(context, context 649 ext/libxml/libxml.c php_libxml_ctx_error(context, "Could not allocate parser " context 654 ext/libxml/libxml.c pib->context = stream; context 658 ext/libxml/libxml.c ret = xmlNewIOInputStream(context, pib, enc); context 677 ext/libxml/libxml.c php_libxml_ctx_error(context, context 681 ext/libxml/libxml.c ret = xmlNewInputFromFile(context, resource); context 695 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 776 ext/libxml/libxml.c PHP_LIBXML_API zval *php_libxml_switch_context(zval *context TSRMLS_DC) context 781 ext/libxml/libxml.c LIBXML(stream_context) = context; context 99 ext/libxml/php_libxml.h PHP_LIBXML_API zval *php_libxml_switch_context(zval *context TSRMLS_DC); 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 906 ext/mysqlnd/mysqlnd_net.c php_stream_context * context = php_stream_context_alloc(TSRMLS_C); context 911 ext/mysqlnd/mysqlnd_net.c if (!context) { context 918 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "local_pk", &key_zval); context 924 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "local_cert", &cert_zval); context 926 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "local_pk", &cert_zval); context 933 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "cafile", &cafile_zval); context 939 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "capath", &capath_zval); context 945 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "passphrase", &passphrase_zval); context 951 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "ciphers", &cipher_zval); context 966 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "verify_peer", &verify_peer_zval); context 967 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "verify_peer_name", &verify_peer_zval); context 970 ext/mysqlnd/mysqlnd_net.c php_stream_context_set_option(context, "ssl", "allow_self_signed", &verify_peer_zval); context 974 ext/mysqlnd/mysqlnd_net.c php_stream_context_set(net_stream, context); context 85 ext/opcache/shared_alloc_win32.c PHP_MD5_CTX context; context 95 ext/opcache/shared_alloc_win32.c PHP_MD5Init(&context); context 96 ext/opcache/shared_alloc_win32.c PHP_MD5Update(&context, PHP_VERSION, sizeof(PHP_VERSION)-1); context 97 ext/opcache/shared_alloc_win32.c PHP_MD5Update(&context, ZEND_EXTENSION_BUILD_ID, sizeof(ZEND_EXTENSION_BUILD_ID)-1); context 98 ext/opcache/shared_alloc_win32.c PHP_MD5Update(&context, ZEND_BIN_ID, sizeof(ZEND_BIN_ID)-1); context 101 ext/opcache/shared_alloc_win32.c PHP_MD5Update(&context, __DATE__, sizeof(__DATE__)-1); context 102 ext/opcache/shared_alloc_win32.c PHP_MD5Update(&context, __TIME__, sizeof(__TIME__)-1); context 104 ext/opcache/shared_alloc_win32.c PHP_MD5Final(digest, &context); context 70 ext/openssl/xp_ssl.c #define GET_VER_OPT(name) (stream->context && SUCCESS == php_stream_context_get_option(stream->context, "ssl", name, &val)) context 1046 ext/openssl/xp_ssl.c if (stream->context && SUCCESS == php_stream_context_get_option(stream->context, context 1094 ext/openssl/xp_ssl.c if (stream->context && context 1095 ext/openssl/xp_ssl.c SUCCESS == php_stream_context_get_option(stream->context, context 1107 ext/openssl/xp_ssl.c if (stream->context && context 1108 ext/openssl/xp_ssl.c SUCCESS == php_stream_context_get_option(stream->context, context 1135 ext/openssl/xp_ssl.c if (php_stream_context_get_option(stream->context, "ssl", "rsa_key_size", &val) == SUCCESS) { context 1199 ext/openssl/xp_ssl.c if (php_stream_context_get_option(stream->context, "ssl", "ecdh_curve", &val) == SUCCESS) { context 1237 ext/openssl/xp_ssl.c if (SUCCESS == php_stream_context_get_option(stream->context, "ssl", "ecdh_curve", &val)) { context 1245 ext/openssl/xp_ssl.c if (php_stream_context_get_option(stream->context, "ssl", "dh_param", &val) == SUCCESS) { context 1257 ext/openssl/xp_ssl.c stream->context, "ssl", "honor_cipher_order", &val) && context 1264 ext/openssl/xp_ssl.c stream->context, "ssl", "single_dh_use", &val) && context 1272 ext/openssl/xp_ssl.c stream->context, "ssl", "single_ecdh_use", &val) && context 1537 ext/openssl/xp_ssl.c stream->context && context 1624 ext/openssl/xp_ssl.c if (SUCCESS == php_stream_context_get_option(stream->context, context 1630 ext/openssl/xp_ssl.c php_stream_context_set_option(stream->context, "ssl", "peer_certificate", zcert); context 1635 ext/openssl/xp_ssl.c if (SUCCESS == php_stream_context_get_option(stream->context, context 1660 ext/openssl/xp_ssl.c php_stream_context_set_option(stream->context, "ssl", "peer_certificate_chain", arr); context 1757 ext/openssl/xp_ssl.c if (peer_cert && stream->context) { context 1767 ext/openssl/xp_ssl.c if (stream->context) { context 1770 ext/openssl/xp_ssl.c if (SUCCESS == php_stream_context_get_option(stream->context, context 1775 ext/openssl/xp_ssl.c php_stream_context_set_option(stream->context, "ssl", "session_meta", meta_arr); context 1786 ext/openssl/xp_ssl.c if (peer_cert && stream->context) { context 1957 ext/openssl/xp_ssl.c php_stream_notify_progress_increment(stream->context, nr_bytes, 0); context 2124 ext/openssl/xp_ssl.c xparam->outputs.client->context = stream->context; context 2125 ext/openssl/xp_ssl.c if (stream->context) { context 2126 ext/openssl/xp_ssl.c zend_list_addref(stream->context->rsrc_id); context 2381 ext/openssl/xp_ssl.c php_stream_context *context STREAMS_DC TSRMLS_DC) context 2414 ext/openssl/xp_ssl.c sslsock->method = get_crypto_method(context, STREAM_CRYPTO_METHOD_ANY_CLIENT); context 2433 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 312 ext/pdo_sqlite/sqlite_driver.c int argc, sqlite3_value **argv, sqlite3_context *context, context 344 ext/pdo_sqlite/sqlite_driver.c agg_context = (zval**)sqlite3_aggregate_context(context, sizeof(zval*)); context 353 ext/pdo_sqlite/sqlite_driver.c ZVAL_LONG(*zargs[1], sqlite3_aggregate_count(context)); context 410 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_int(context, Z_LVAL_P(retval)); context 414 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_null(context); context 418 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_double(context, Z_DVAL_P(retval)); context 423 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_text(context, Z_STRVAL_P(retval), context 428 ext/pdo_sqlite/sqlite_driver.c sqlite3_result_error(context, "failed to invoke callback", 0); context 455 ext/pdo_sqlite/sqlite_driver.c static void php_sqlite3_func_callback(sqlite3_context *context, int argc, context 458 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); context 461 ext/pdo_sqlite/sqlite_driver.c do_callback(&func->afunc, func->func, argc, argv, context, 0 TSRMLS_CC); context 464 ext/pdo_sqlite/sqlite_driver.c static void php_sqlite3_func_step_callback(sqlite3_context *context, int argc, context 467 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); context 470 ext/pdo_sqlite/sqlite_driver.c do_callback(&func->astep, func->step, argc, argv, context, 1 TSRMLS_CC); context 473 ext/pdo_sqlite/sqlite_driver.c static void php_sqlite3_func_final_callback(sqlite3_context *context) context 475 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_func *func = (struct pdo_sqlite_func*)sqlite3_user_data(context); context 478 ext/pdo_sqlite/sqlite_driver.c do_callback(&func->afini, func->fini, 0, NULL, context, 1 TSRMLS_CC); context 481 ext/pdo_sqlite/sqlite_driver.c static int php_sqlite3_collation_callback(void *context, context 489 ext/pdo_sqlite/sqlite_driver.c struct pdo_sqlite_collation *collation = (struct pdo_sqlite_collation*) context; context 302 ext/phar/dirstream.c php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ context 374 ext/phar/dirstream.c return php_stream_opendir(entry->tmp, options, context); context 411 ext/phar/dirstream.c int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, php_stream_context *context TSRMLS_DC) /* {{{ */ context 543 ext/phar/dirstream.c int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC); context 24 ext/phar/dirstream.h int phar_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC); context 36 ext/phar/dirstream.h php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_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 349 ext/phar/func_interceptors.c php_stream_context *context = NULL; context 405 ext/phar/func_interceptors.c context = php_stream_context_from_zval(zcontext, 0); context 406 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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ context 211 ext/phar/stream.c if (context && context->options && zend_hash_find(HASH_OF(context->options), "phar", sizeof("phar"), (void**)&pzoption) == SUCCESS) { context 567 ext/phar/stream.c php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) /* {{{ */ context 681 ext/phar/stream.c static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) /* {{{ */ context 757 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 TSRMLS_DC) /* {{{ */ 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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_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 TSRMLS_DC); context 29 ext/phar/stream.h static int phar_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC); 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 TSRMLS_DC); context 1651 ext/phar/util.c PHP_SHA512_CTX context; context 1653 ext/phar/util.c PHP_SHA512Init(&context); context 1663 ext/phar/util.c PHP_SHA512Update(&context, buf, len); context 1670 ext/phar/util.c PHP_SHA512Final(digest, &context); context 1684 ext/phar/util.c PHP_SHA256_CTX context; context 1686 ext/phar/util.c PHP_SHA256Init(&context); context 1696 ext/phar/util.c PHP_SHA256Update(&context, buf, len); context 1703 ext/phar/util.c PHP_SHA256Final(digest, &context); context 1725 ext/phar/util.c PHP_SHA1_CTX context; context 1727 ext/phar/util.c PHP_SHA1Init(&context); context 1737 ext/phar/util.c PHP_SHA1Update(&context, buf, len); context 1744 ext/phar/util.c PHP_SHA1Final(digest, &context); context 1758 ext/phar/util.c PHP_MD5_CTX context; context 1760 ext/phar/util.c PHP_MD5Init(&context); context 1770 ext/phar/util.c PHP_MD5Update(&context, buf, len); context 1777 ext/phar/util.c PHP_MD5Final(digest, &context); context 1815 ext/phar/util.c PHP_SHA512_CTX context; context 1817 ext/phar/util.c PHP_SHA512Init(&context); context 1820 ext/phar/util.c PHP_SHA512Update(&context, buf, sig_len); context 1823 ext/phar/util.c PHP_SHA512Final(digest, &context); context 1830 ext/phar/util.c PHP_SHA256_CTX context; context 1832 ext/phar/util.c PHP_SHA256Init(&context); context 1835 ext/phar/util.c PHP_SHA256Update(&context, buf, sig_len); context 1838 ext/phar/util.c PHP_SHA256Final(digest, &context); context 1932 ext/phar/util.c PHP_SHA1_CTX context; context 1934 ext/phar/util.c PHP_SHA1Init(&context); context 1937 ext/phar/util.c PHP_SHA1Update(&context, buf, sig_len); context 1940 ext/phar/util.c PHP_SHA1Final(digest, &context); context 1947 ext/phar/util.c PHP_MD5_CTX context; context 1949 ext/phar/util.c PHP_MD5Init(&context); context 1952 ext/phar/util.c PHP_MD5Update(&context, buf, sig_len); context 1955 ext/phar/util.c PHP_MD5Final(digest, &context); context 94 ext/soap/php_http.c void http_context_headers(php_stream_context* context, context 102 ext/soap/php_http.c if (context && context 103 ext/soap/php_http.c php_stream_context_get_option(context, "http", "header", &tmp) == SUCCESS && context 163 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 TSRMLS_DC) context 238 ext/soap/php_http.c context, context 361 ext/soap/php_http.c php_stream_context *context = NULL; context 434 ext/soap/php_http.c context = php_stream_context_from_zval(*tmp, 0); context 437 ext/soap/php_http.c if (context && context 438 ext/soap/php_http.c php_stream_context_get_option(context, "http", "max_redirects", &tmp) == SUCCESS) { context 512 ext/soap/php_http.c stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy TSRMLS_CC); context 535 ext/soap/php_http.c if (context && context 536 ext/soap/php_http.c php_stream_context_get_option(context, "http", "protocol_version", &tmp) == SUCCESS && context 593 ext/soap/php_http.c } else if (context && context 594 ext/soap/php_http.c php_stream_context_get_option(context, "http", "user_agent", &tmp) == SUCCESS && context 855 ext/soap/php_http.c http_context_headers(context, has_authorization, has_proxy_authorization, has_cookies, &soap_headers TSRMLS_CC); context 36 ext/soap/php_http.h void http_context_headers(php_stream_context* context, context 233 ext/soap/php_sdl.c zval *context = NULL; context 281 ext/soap/php_sdl.c context = php_libxml_switch_context(NULL TSRMLS_CC); context 282 ext/soap/php_sdl.c php_libxml_switch_context(context TSRMLS_CC); context 283 ext/soap/php_sdl.c if (context) { context 284 ext/soap/php_sdl.c ctx->context = php_stream_context_from_zval(context, 1); context 286 ext/soap/php_sdl.c if (ctx->context && context 287 ext/soap/php_sdl.c php_stream_context_get_option(ctx->context, "http", "header", &header) == SUCCESS) { context 302 ext/soap/php_sdl.c php_stream_context_set_option(ctx->context, "http", "header", &new_header); context 314 ext/soap/php_sdl.c php_stream_context_set_option(ctx->context, "http", "header", ctx->old_header); context 318 ext/soap/php_sdl.c ctx->context = NULL; context 3197 ext/soap/php_sdl.c php_stream_context *context=NULL; context 3230 ext/soap/php_sdl.c PHP_MD5_CTX context; context 3238 ext/soap/php_sdl.c PHP_MD5Init(&context); context 3239 ext/soap/php_sdl.c PHP_MD5Update(&context, (unsigned char*)uri, uri_len); context 3240 ext/soap/php_sdl.c PHP_MD5Final(digest, &context); context 3262 ext/soap/php_sdl.c context = php_stream_context_from_zval(*tmp, 0); context 3264 ext/soap/php_sdl.c context = php_stream_context_alloc(TSRMLS_C); context 3293 ext/soap/php_sdl.c if (!context) { context 3294 ext/soap/php_sdl.c context = php_stream_context_alloc(TSRMLS_C); context 3296 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "proxy", str_proxy); context 3303 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "request_fulluri", str_proxy); context 3313 ext/soap/php_sdl.c if (php_stream_context_get_option(context, "http", "protocol_version", &tmp) == FAILURE) { context 3317 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "protocol_version", http_version); context 3325 ext/soap/php_sdl.c if (!context) { context 3326 ext/soap/php_sdl.c context = php_stream_context_alloc(TSRMLS_C); context 3328 ext/soap/php_sdl.c http_context_headers(context, has_authorization, has_proxy_authorization, 0, &headers TSRMLS_CC); context 3334 ext/soap/php_sdl.c php_stream_context_set_option(context, "http", "header", str_headers); context 3339 ext/soap/php_sdl.c if (context) { context 3341 ext/soap/php_sdl.c php_stream_context_to_zval(context, new_context); context 3354 ext/soap/php_sdl.c if (context) { context 79 ext/soap/php_sdl.h php_stream_context *context; context 2333 ext/soap/soap.c php_stream_context *context = NULL; context 2378 ext/soap/soap.c context = php_stream_context_from_zval(*tmp, 1); context 2379 ext/soap/soap.c zend_list_addref(context->rsrc_id); context 2426 ext/soap/soap.c if (!context) { context 2427 ext/soap/soap.c context = php_stream_context_alloc(TSRMLS_C); context 2429 ext/soap/soap.c php_stream_context_set_option(context, "ssl", "local_cert", *tmp); context 2432 ext/soap/soap.c php_stream_context_set_option(context, "ssl", "passphrase", *tmp); context 2497 ext/soap/soap.c if (context) { context 2498 ext/soap/soap.c add_property_resource(this_ptr, "_stream_context", context->rsrc_id); context 288 ext/spl/spl_directory.c intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0); context 289 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 1935 ext/spl/spl_directory.c ZEND_ARG_INFO(0, context) context 3023 ext/spl/spl_directory.c ZEND_ARG_INFO(0, context) context 89 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 700 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 TSRMLS_DC) /* {{{ */ context 731 ext/sqlite3/sqlite3.c agg_context = (php_sqlite3_agg_context *)sqlite3_aggregate_context(context, sizeof(php_sqlite3_agg_context)); context 799 ext/sqlite3/sqlite3.c sqlite3_result_int64(context, Z_LVAL_P(retval)); context 801 ext/sqlite3/sqlite3.c sqlite3_result_int(context, Z_LVAL_P(retval)); context 806 ext/sqlite3/sqlite3.c sqlite3_result_null(context); context 810 ext/sqlite3/sqlite3.c sqlite3_result_double(context, Z_DVAL_P(retval)); context 815 ext/sqlite3/sqlite3.c sqlite3_result_text(context, Z_STRVAL_P(retval), Z_STRLEN_P(retval), SQLITE_TRANSIENT); context 819 ext/sqlite3/sqlite3.c sqlite3_result_error(context, "failed to invoke callback", 0); context 846 ext/sqlite3/sqlite3.c static void php_sqlite3_callback_func(sqlite3_context *context, int argc, sqlite3_value **argv) /* {{{ */ context 848 ext/sqlite3/sqlite3.c php_sqlite3_func *func = (php_sqlite3_func *)sqlite3_user_data(context); context 851 ext/sqlite3/sqlite3.c sqlite3_do_callback(&func->afunc, func->func, argc, argv, context, 0 TSRMLS_CC); context 855 ext/sqlite3/sqlite3.c static void php_sqlite3_callback_step(sqlite3_context *context, int argc, sqlite3_value **argv) /* {{{ */ context 857 ext/sqlite3/sqlite3.c php_sqlite3_func *func = (php_sqlite3_func *)sqlite3_user_data(context); context 858 ext/sqlite3/sqlite3.c php_sqlite3_agg_context *agg_context = (php_sqlite3_agg_context *)sqlite3_aggregate_context(context, sizeof(php_sqlite3_agg_context)); context 863 ext/sqlite3/sqlite3.c sqlite3_do_callback(&func->astep, func->step, argc, argv, context, 1 TSRMLS_CC); context 867 ext/sqlite3/sqlite3.c static void php_sqlite3_callback_final(sqlite3_context *context) /* {{{ */ context 869 ext/sqlite3/sqlite3.c php_sqlite3_func *func = (php_sqlite3_func *)sqlite3_user_data(context); context 870 ext/sqlite3/sqlite3.c php_sqlite3_agg_context *agg_context = (php_sqlite3_agg_context *)sqlite3_aggregate_context(context, sizeof(php_sqlite3_agg_context)); context 875 ext/sqlite3/sqlite3.c sqlite3_do_callback(&func->afini, func->fini, 0, NULL, context, 1 TSRMLS_CC); context 912 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 917 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 955 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1051 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1060 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1066 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1081 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1150 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1155 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1161 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1175 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1180 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1194 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1947 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 1955 ext/standard/basic_functions.c ZEND_ARG_INFO(0, context) context 219 ext/standard/dir.c php_stream_context *context = NULL; context 226 ext/standard/dir.c context = php_stream_context_from_zval(zcontext, 0); context 228 ext/standard/dir.c dirp = php_stream_opendir(dirname, REPORT_ERRORS, context); context 560 ext/standard/dir.c php_stream_context *context = NULL; context 572 ext/standard/dir.c context = php_stream_context_from_zval(zcontext, 0); context 576 ext/standard/dir.c n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort); context 578 ext/standard/dir.c n = php_stream_scandir(dirn, &namelist, context, NULL); context 580 ext/standard/dir.c n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasortr); context 151 ext/standard/file.c php_stream_context *context = (php_stream_context*)rsrc->ptr; context 152 ext/standard/file.c if (context->options) { context 153 ext/standard/file.c zval_ptr_dtor(&context->options); context 154 ext/standard/file.c context->options = NULL; context 156 ext/standard/file.c php_stream_context_free(context); context 534 ext/standard/file.c php_stream_context *context = NULL; context 546 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 550 ext/standard/file.c NULL, context); context 588 ext/standard/file.c php_stream_context *context = NULL; context 600 ext/standard/file.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 616 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 738 ext/standard/file.c php_stream_context *context = NULL; context 753 ext/standard/file.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 755 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, "rb", (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 877 ext/standard/file.c php_stream_context *context = NULL; context 883 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 885 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, mode, (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 1329 ext/standard/file.c php_stream_context *context; context 1335 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1337 ext/standard/file.c RETURN_BOOL(php_stream_mkdir(dir, mode, (recursive ? PHP_STREAM_MKDIR_RECURSIVE : 0) | REPORT_ERRORS, context)); context 1348 ext/standard/file.c php_stream_context *context; context 1354 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1356 ext/standard/file.c RETURN_BOOL(php_stream_rmdir(dir, REPORT_ERRORS, context)); context 1370 ext/standard/file.c php_stream_context *context = NULL; context 1376 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1378 ext/standard/file.c stream = php_stream_open_wrapper_ex(filename, "rb", (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, context); context 1443 ext/standard/file.c php_stream_context *context; context 1466 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1468 ext/standard/file.c RETURN_BOOL(wrapper->wops->rename(wrapper, old_name, new_name, 0, context TSRMLS_CC)); context 1480 ext/standard/file.c php_stream_context *context = NULL; context 1486 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1499 ext/standard/file.c RETURN_BOOL(wrapper->wops->unlink(wrapper, filename, REPORT_ERRORS, context TSRMLS_CC)); context 1616 ext/standard/file.c php_stream_context *context; context 1626 ext/standard/file.c context = php_stream_context_from_zval(zcontext, 0); context 1628 ext/standard/file.c if (php_copy_file_ctx(source, target, 0, context TSRMLS_CC) == SUCCESS) { context 134 ext/standard/ftp_fopen_wrapper.c char **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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 454 ext/standard/ftp_fopen_wrapper.c if (context && context 455 ext/standard/ftp_fopen_wrapper.c php_stream_context_get_option(context, "ftp", "proxy", &tmpzval) == SUCCESS) { context 458 ext/standard/ftp_fopen_wrapper.c return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC TSRMLS_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 TSRMLS_CC); 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 && php_stream_context_get_option(context, "ftp", "overwrite", &tmpzval) == SUCCESS) { context 530 ext/standard/ftp_fopen_wrapper.c if (context && context 531 ext/standard/ftp_fopen_wrapper.c php_stream_context_get_option(context, "ftp", "resume_pos", &tmpzval) == SUCCESS && 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 696 ext/standard/ftp_fopen_wrapper.c char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 708 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 TSRMLS_CC); context 747 ext/standard/ftp_fopen_wrapper.c php_stream_context_set(datastream, context); context 773 ext/standard/ftp_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result); context 785 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 TSRMLS_DC) context 795 ext/standard/ftp_fopen_wrapper.c stream = php_ftp_fopen_connect(wrapper, url, "r", 0, NULL, context, NULL, &resource, NULL, NULL TSRMLS_CC); context 908 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 TSRMLS_DC) context 958 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 TSRMLS_DC) context 1037 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 TSRMLS_DC) context 1131 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 TSRMLS_DC) context 114 ext/standard/http_fopen_wrapper.c php_stream_context *context, int redirect_max, int flags STREAMS_DC TSRMLS_DC) /* {{{ */ context 158 ext/standard/http_fopen_wrapper.c if (!context || context 159 ext/standard/http_fopen_wrapper.c php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == FAILURE || context 163 ext/standard/http_fopen_wrapper.c return php_stream_open_wrapper_ex(path, mode, REPORT_ERRORS, NULL, context); context 188 ext/standard/http_fopen_wrapper.c if (context && context 189 ext/standard/http_fopen_wrapper.c php_stream_context_get_option(context, wrapper->wops->label, "proxy", &tmpzval) == SUCCESS && context 200 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) == SUCCESS) { context 212 ext/standard/http_fopen_wrapper.c NULL, &timeout, context, &errstr, NULL); context 230 ext/standard/http_fopen_wrapper.c if (!context || php_stream_context_get_option(context, "ssl", "peer_name", &tmpzval) == FAILURE) { context 233 ext/standard/http_fopen_wrapper.c php_stream_context_set_option(stream->context, "ssl", "peer_name", ssl_proxy_peer_name); context 243 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, "http", "header", &tmpzval) == SUCCESS) { context 347 ext/standard/http_fopen_wrapper.c php_stream_context_set(stream, context); context 349 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0); context 351 ext/standard/http_fopen_wrapper.c if (header_init && context && php_stream_context_get_option(context, "http", "max_redirects", &tmpzval) == SUCCESS) { context 357 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, "http", "method", &tmpzval) == SUCCESS) { context 373 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, "http", "protocol_version", &tmpzval) == SUCCESS) { context 387 ext/standard/http_fopen_wrapper.c context && context 388 ext/standard/http_fopen_wrapper.c php_stream_context_get_option(context, "http", "request_fulluri", &tmpzval) == SUCCESS) { context 429 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, "http", "header", &tmpzval) == SUCCESS) { context 553 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_AUTH_REQUIRED, NULL, 0); context 589 ext/standard/http_fopen_wrapper.c if (context && context 590 ext/standard/http_fopen_wrapper.c php_stream_context_get_option(context, "http", "user_agent", &ua_zval) == SUCCESS && context 626 ext/standard/http_fopen_wrapper.c context && context 628 ext/standard/http_fopen_wrapper.c php_stream_context_get_option(context, "http", "content", &tmpzval) == SUCCESS && context 642 ext/standard/http_fopen_wrapper.c if (header_init && context && context 643 ext/standard/http_fopen_wrapper.c php_stream_context_get_option(context, "http", "content", &tmpzval) == SUCCESS && context 695 ext/standard/http_fopen_wrapper.c if (context && SUCCESS==php_stream_context_get_option(context, "http", "ignore_errors", &tmpzval)) { context 710 ext/standard/http_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_AUTH_RESULT, context 718 ext/standard/http_fopen_wrapper.c php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, context 762 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, "http", "follow_location", &tmpzval) == SUCCESS) { context 775 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_MIME_TYPE_IS, http_header_line + 14, 0); context 778 ext/standard/http_fopen_wrapper.c php_stream_notify_file_size(context, file_size, http_header_line, 0); context 785 ext/standard/http_fopen_wrapper.c if (context && php_stream_context_get_option(context, "http", "auto_decode", &tmpzval) == SUCCESS) { context 822 ext/standard/http_fopen_wrapper.c php_stream_notify_info(context, PHP_STREAM_NOTIFY_REDIRECTED, location, 0); context 899 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 TSRMLS_CC); context 929 ext/standard/http_fopen_wrapper.c php_stream_notify_progress_init(context, 0, file_size); context 961 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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ context 963 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 TSRMLS_CC); context 53 ext/standard/md5.c PHP_MD5_CTX context; context 61 ext/standard/md5.c PHP_MD5Init(&context); context 62 ext/standard/md5.c PHP_MD5Update(&context, arg, arg_len); context 63 ext/standard/md5.c PHP_MD5Final(digest, &context); context 84 ext/standard/md5.c PHP_MD5_CTX context; context 97 ext/standard/md5.c PHP_MD5Init(&context); context 100 ext/standard/md5.c PHP_MD5Update(&context, buf, n); context 103 ext/standard/md5.c PHP_MD5Final(digest, &context); context 175 ext/standard/php_fopen_wrapper.c char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ 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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 41 ext/standard/sha1.c PHP_SHA1_CTX context; context 49 ext/standard/sha1.c PHP_SHA1Init(&context); context 50 ext/standard/sha1.c PHP_SHA1Update(&context, arg, arg_len); context 51 ext/standard/sha1.c PHP_SHA1Final(digest, &context); context 74 ext/standard/sha1.c PHP_SHA1_CTX context; context 87 ext/standard/sha1.c PHP_SHA1Init(&context); context 90 ext/standard/sha1.c PHP_SHA1Update(&context, buf, n); context 93 ext/standard/sha1.c PHP_SHA1Final(digest, &context); context 165 ext/standard/sha1.c PHPAPI void PHP_SHA1Init(PHP_SHA1_CTX * context) context 167 ext/standard/sha1.c context->count[0] = context->count[1] = 0; context 170 ext/standard/sha1.c context->state[0] = 0x67452301; context 171 ext/standard/sha1.c context->state[1] = 0xefcdab89; context 172 ext/standard/sha1.c context->state[2] = 0x98badcfe; context 173 ext/standard/sha1.c context->state[3] = 0x10325476; context 174 ext/standard/sha1.c context->state[4] = 0xc3d2e1f0; context 183 ext/standard/sha1.c PHPAPI void PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, context 189 ext/standard/sha1.c index = (unsigned int) ((context->count[0] >> 3) & 0x3F); context 192 ext/standard/sha1.c if ((context->count[0] += ((php_uint32) inputLen << 3)) context 194 ext/standard/sha1.c context->count[1]++; context 195 ext/standard/sha1.c context->count[1] += ((php_uint32) inputLen >> 29); context 203 ext/standard/sha1.c ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); context 204 ext/standard/sha1.c SHA1Transform(context->state, context->buffer); context 207 ext/standard/sha1.c SHA1Transform(context->state, &input[i]); context 215 ext/standard/sha1.c ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], context 224 ext/standard/sha1.c PHPAPI void PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) context 230 ext/standard/sha1.c bits[7] = context->count[0] & 0xFF; context 231 ext/standard/sha1.c bits[6] = (context->count[0] >> 8) & 0xFF; context 232 ext/standard/sha1.c bits[5] = (context->count[0] >> 16) & 0xFF; context 233 ext/standard/sha1.c bits[4] = (context->count[0] >> 24) & 0xFF; context 234 ext/standard/sha1.c bits[3] = context->count[1] & 0xFF; context 235 ext/standard/sha1.c bits[2] = (context->count[1] >> 8) & 0xFF; context 236 ext/standard/sha1.c bits[1] = (context->count[1] >> 16) & 0xFF; context 237 ext/standard/sha1.c bits[0] = (context->count[1] >> 24) & 0xFF; context 241 ext/standard/sha1.c index = (unsigned int) ((context->count[0] >> 3) & 0x3f); context 243 ext/standard/sha1.c PHP_SHA1Update(context, PADDING, padLen); context 246 ext/standard/sha1.c PHP_SHA1Update(context, bits, 8); context 249 ext/standard/sha1.c SHA1Encode(digest, context->state, 20); context 253 ext/standard/sha1.c memset((unsigned char*) context, 0, sizeof(*context)); context 43 ext/standard/streamsfuncs.c #define GET_CTX_OPT(stream, wrapper, name, val) (stream->context && SUCCESS == php_stream_context_get_option(stream->context, wrapper, name, &val)) context 101 ext/standard/streamsfuncs.c php_stream_context *context = NULL; context 109 ext/standard/streamsfuncs.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 136 ext/standard/streamsfuncs.c hashkey, &tv, context, &errstr, &err); context 186 ext/standard/streamsfuncs.c php_stream_context *context = NULL; context 194 ext/standard/streamsfuncs.c context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); context 196 ext/standard/streamsfuncs.c if (context) { context 197 ext/standard/streamsfuncs.c zend_list_addref(context->rsrc_id); context 211 ext/standard/streamsfuncs.c NULL, NULL, context, &errstr, &err); context 869 ext/standard/streamsfuncs.c static void user_space_stream_notifier(php_stream_context *context, int notifycode, int severity, context 872 ext/standard/streamsfuncs.c zval *callback = (zval*)context->notifier->ptr; context 916 ext/standard/streamsfuncs.c static int parse_context_options(php_stream_context *context, zval *options TSRMLS_DC) context 934 ext/standard/streamsfuncs.c php_stream_context_set_option(context, wkey, okey, *oval); context 948 ext/standard/streamsfuncs.c static int parse_context_params(php_stream_context *context, zval *params TSRMLS_DC) context 955 ext/standard/streamsfuncs.c if (context->notifier) { context 956 ext/standard/streamsfuncs.c php_stream_notification_free(context->notifier); context 957 ext/standard/streamsfuncs.c context->notifier = NULL; context 960 ext/standard/streamsfuncs.c context->notifier = php_stream_notification_alloc(); context 961 ext/standard/streamsfuncs.c context->notifier->func = user_space_stream_notifier; context 962 ext/standard/streamsfuncs.c context->notifier->ptr = *tmp; context 964 ext/standard/streamsfuncs.c context->notifier->dtor = user_space_stream_notifier_dtor; context 968 ext/standard/streamsfuncs.c parse_context_options(context, *tmp TSRMLS_CC); context 982 ext/standard/streamsfuncs.c php_stream_context *context = NULL; context 984 ext/standard/streamsfuncs.c context = zend_fetch_resource(&contextresource TSRMLS_CC, -1, NULL, NULL, 1, php_le_stream_context(TSRMLS_C)); context 985 ext/standard/streamsfuncs.c if (context == NULL) { context 991 ext/standard/streamsfuncs.c context = stream->context; context 992 ext/standard/streamsfuncs.c if (context == NULL) { context 997 ext/standard/streamsfuncs.c context = stream->context = php_stream_context_alloc(TSRMLS_C); context 1002 ext/standard/streamsfuncs.c return context; context 1011 ext/standard/streamsfuncs.c php_stream_context *context; context 1016 ext/standard/streamsfuncs.c context = decode_context_param(zcontext TSRMLS_CC); context 1017 ext/standard/streamsfuncs.c if (!context) { context 1022 ext/standard/streamsfuncs.c RETURN_ZVAL(context->options, 1, 0); context 1031 ext/standard/streamsfuncs.c php_stream_context *context; context 1046 ext/standard/streamsfuncs.c context = decode_context_param(zcontext TSRMLS_CC); context 1047 ext/standard/streamsfuncs.c if (!context) { context 1054 ext/standard/streamsfuncs.c RETVAL_BOOL(parse_context_options(context, options TSRMLS_CC) == SUCCESS); context 1056 ext/standard/streamsfuncs.c php_stream_context_set_option(context, wrappername, optionname, zvalue); context 1067 ext/standard/streamsfuncs.c php_stream_context *context; context 1073 ext/standard/streamsfuncs.c context = decode_context_param(zcontext TSRMLS_CC); context 1074 ext/standard/streamsfuncs.c if (!context) { context 1079 ext/standard/streamsfuncs.c RETVAL_BOOL(parse_context_params(context, params TSRMLS_CC) == SUCCESS); context 1088 ext/standard/streamsfuncs.c php_stream_context *context; context 1094 ext/standard/streamsfuncs.c context = decode_context_param(zcontext TSRMLS_CC); context 1095 ext/standard/streamsfuncs.c if (!context) { context 1101 ext/standard/streamsfuncs.c if (context->notifier && context->notifier->ptr && context->notifier->func == user_space_stream_notifier) { context 1102 ext/standard/streamsfuncs.c add_assoc_zval_ex(return_value, ZEND_STRS("notification"), context->notifier->ptr); context 1103 ext/standard/streamsfuncs.c Z_ADDREF_P(context->notifier->ptr); context 1106 ext/standard/streamsfuncs.c ZVAL_ZVAL(options, context->options, 1, 0); context 1116 ext/standard/streamsfuncs.c php_stream_context *context; context 1125 ext/standard/streamsfuncs.c context = FG(default_context); context 1128 ext/standard/streamsfuncs.c parse_context_options(context, params TSRMLS_CC); context 1131 ext/standard/streamsfuncs.c php_stream_context_to_zval(context, return_value); context 1140 ext/standard/streamsfuncs.c php_stream_context *context; context 1149 ext/standard/streamsfuncs.c context = FG(default_context); context 1151 ext/standard/streamsfuncs.c parse_context_options(context, options TSRMLS_CC); context 1153 ext/standard/streamsfuncs.c php_stream_context_to_zval(context, return_value); context 1162 ext/standard/streamsfuncs.c php_stream_context *context; context 1168 ext/standard/streamsfuncs.c context = php_stream_context_alloc(TSRMLS_C); context 1171 ext/standard/streamsfuncs.c parse_context_options(context, options TSRMLS_CC); context 1175 ext/standard/streamsfuncs.c parse_context_params(context, params TSRMLS_CC); context 1178 ext/standard/streamsfuncs.c RETURN_RESOURCE(context->rsrc_id); context 702 ext/standard/url.c php_stream_context *context; context 712 ext/standard/url.c context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_alloc(TSRMLS_C)); context 714 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 386 ext/sybase_ct/php_sybase_ct.c static CS_RETCODE CS_PUBLIC _client_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_CLIENTMSG *errmsg) context 466 ext/sybase_ct/php_sybase_ct.c static CS_RETCODE CS_PUBLIC _server_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_SERVERMSG *srvmsg) context 528 ext/sybase_ct/php_sybase_ct.c if (cs_ctx_alloc(CTLIB_VERSION, &sybase_globals->context)!=CS_SUCCEED || ct_init(sybase_globals->context, CTLIB_VERSION)!=CS_SUCCEED) { context 533 ext/sybase_ct/php_sybase_ct.c if (ct_callback(sybase_globals->context, NULL, CS_SET, CS_SERVERMSG_CB, (CS_VOID *)_server_message_handler)!=CS_SUCCEED) { context 537 ext/sybase_ct/php_sybase_ct.c if (ct_callback(sybase_globals->context, NULL, CS_SET, CS_CLIENTMSG_CB, (CS_VOID *)_client_message_handler)!=CS_SUCCEED) { context 549 ext/sybase_ct/php_sybase_ct.c if (cs_dt_info(sybase_globals->context, CS_SET, NULL, CS_DT_CONVFMT, CS_UNUSED, &dt_convfmt, sizeof(dt_convfmt), NULL)!=CS_SUCCEED) { context 564 ext/sybase_ct/php_sybase_ct.c if (ct_config(sybase_globals->context, CS_SET, CS_TIMEOUT, &cs_timeout, CS_UNUSED, NULL)!=CS_SUCCEED) { context 576 ext/sybase_ct/php_sybase_ct.c ct_exit(sybase_globals->context, CS_UNUSED); context 577 ext/sybase_ct/php_sybase_ct.c cs_ctx_drop(sybase_globals->context); context 608 ext/sybase_ct/php_sybase_ct.c ct_exit(context, CS_UNUSED); context 609 ext/sybase_ct/php_sybase_ct.c cs_ctx_drop(context); context 635 ext/sybase_ct/php_sybase_ct.c if (ct_con_alloc(SybCtG(context), &sybase->connection)!=CS_SUCCEED) { context 664 ext/sybase_ct/php_sybase_ct.c if (cs_loc_alloc(SybCtG(context), &tmp_locale)!=CS_SUCCEED) { context 667 ext/sybase_ct/php_sybase_ct.c if (cs_locale(SybCtG(context), CS_SET, tmp_locale, CS_LC_ALL, NULL, CS_NULLTERM, NULL)!=CS_SUCCEED) { context 670 ext/sybase_ct/php_sybase_ct.c if (cs_locale(SybCtG(context), CS_SET, tmp_locale, CS_SYB_CHARSET, charset, CS_NULLTERM, NULL)!=CS_SUCCEED) { context 701 ext/sybase_ct/php_sybase_ct.c if (ct_config(SybCtG(context), CS_SET, CS_LOGIN_TIMEOUT, &cs_login_timeout, CS_UNUSED, NULL)!=CS_SUCCEED) { context 76 ext/sybase_ct/php_sybase_ct.h CS_CONTEXT *context; context 688 ext/xmlwriter/php_xmlwriter.c static int php_xmlwriter_streams_IO_write(void *context, const char *buffer, int len) context 691 ext/xmlwriter/php_xmlwriter.c return php_stream_write((php_stream*)context, buffer, len); context 696 ext/xmlwriter/php_xmlwriter.c static int php_xmlwriter_streams_IO_close(void *context) context 699 ext/xmlwriter/php_xmlwriter.c return php_stream_close((php_stream*)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, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 257 ext/zip/zip_stream.c php_stream_context *context STREAMS_DC TSRMLS_DC) context 61 ext/zlib/php_zlib.h php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 112 ext/zlib/zlib_fopen_wrapper.c char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 131 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 TSRMLS_DC); 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 281 main/output.c php_output_context context; context 284 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_FLUSH TSRMLS_CC); context 285 main/output.c php_output_handler_op(OG(active), &context); context 286 main/output.c if (context.out.data && context.out.used) { context 288 main/output.c php_output_write(context.out.data, context.out.used TSRMLS_CC); context 291 main/output.c php_output_context_dtor(&context); context 312 main/output.c php_output_context context; context 315 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_CLEAN TSRMLS_CC); context 316 main/output.c php_output_handler_op(OG(active), &context); context 317 main/output.c php_output_context_dtor(&context); context 328 main/output.c php_output_context context; context 331 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_CLEAN TSRMLS_CC); context 332 main/output.c zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_clean, &context); context 788 main/output.c static inline php_output_context *php_output_context_init(php_output_context *context, int op TSRMLS_DC) context 790 main/output.c if (!context) { context 791 main/output.c context = emalloc(sizeof(php_output_context)); context 794 main/output.c memset(context, 0, sizeof(php_output_context)); context 795 main/output.c TSRMLS_SET_CTX(context->tsrm_ls); context 796 main/output.c context->op = op; context 798 main/output.c return context; context 804 main/output.c static inline void php_output_context_reset(php_output_context *context) context 806 main/output.c int op = context->op; context 807 main/output.c php_output_context_dtor(context); context 808 main/output.c memset(context, 0, sizeof(php_output_context)); context 809 main/output.c context->op = op; context 815 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 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 = data; context 821 main/output.c context->in.used = used; context 822 main/output.c context->in.free = free; context 823 main/output.c context->in.size = size; context 829 main/output.c static inline void php_output_context_swap(php_output_context *context) context 831 main/output.c if (context->in.free && context->in.data) { context 832 main/output.c efree(context->in.data); context 834 main/output.c context->in.data = context->out.data; context 835 main/output.c context->in.used = context->out.used; context 836 main/output.c context->in.free = context->out.free; context 837 main/output.c context->in.size = context->out.size; context 838 main/output.c context->out.data = NULL; context 839 main/output.c context->out.used = 0; context 840 main/output.c context->out.free = 0; context 841 main/output.c context->out.size = 0; context 847 main/output.c static inline void php_output_context_pass(php_output_context *context) context 849 main/output.c context->out.data = context->in.data; context 850 main/output.c context->out.used = context->in.used; context 851 main/output.c context->out.size = context->in.size; context 852 main/output.c context->out.free = context->in.free; context 853 main/output.c context->in.data = NULL; context 854 main/output.c context->in.used = 0; context 855 main/output.c context->in.free = 0; context 856 main/output.c context->in.size = 0; context 862 main/output.c static inline void php_output_context_dtor(php_output_context *context) context 864 main/output.c if (context->in.free && context->in.data) { context 865 main/output.c efree(context->in.data); context 866 main/output.c context->in.data = NULL; context 868 main/output.c if (context->out.free && context->out.data) { context 869 main/output.c efree(context->out.data); context 870 main/output.c context->out.data = NULL; context 923 main/output.c static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context) context 926 main/output.c int original_op = context->op; context 927 main/output.c PHP_OUTPUT_TSRMLS(context); context 939 main/output.c context->op, context 946 main/output.c context->in.used?context->in.data:"", context 947 main/output.c context->in.used context 951 main/output.c if (php_output_lock_error(context->op TSRMLS_CC)) { context 957 main/output.c if (php_output_handler_append(handler, &context->in TSRMLS_CC) && !context->op) { context 958 main/output.c context->op = original_op; context 963 main/output.c context->op |= PHP_OUTPUT_HANDLER_START; context 973 main/output.c ZVAL_LONG(ob_mode, (long) context->op); context 983 main/output.c context->out.data = estrndup(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); context 984 main/output.c context->out.used = Z_STRLEN_P(retval); context 985 main/output.c context->out.free = 1; context 1003 main/output.c php_output_context_feed(context, handler->buffer.data, handler->buffer.size, handler->buffer.used, 0); context 1005 main/output.c if (SUCCESS == handler->func.internal(&handler->opaq, context)) { context 1006 main/output.c if (context->out.used) { context 1024 main/output.c if (context->out.data && context->out.free) { context 1025 main/output.c efree(context->out.data); context 1028 main/output.c context->out.data = handler->buffer.data; context 1029 main/output.c context->out.used = handler->buffer.used; context 1030 main/output.c context->out.free = 1; context 1037 main/output.c php_output_context_reset(context); context 1046 main/output.c context->op = original_op; context 1056 main/output.c php_output_context context; context 1064 main/output.c php_output_context_init(&context, op TSRMLS_CC); context 1072 main/output.c context.in.data = (char *) str; context 1073 main/output.c context.in.used = len; context 1076 main/output.c zend_stack_apply_with_argument(&OG(handlers), ZEND_STACK_APPLY_TOPDOWN, php_output_stack_apply_op, &context); context 1078 main/output.c php_output_handler_op(*active, &context); context 1080 main/output.c php_output_context_pass(&context); context 1083 main/output.c context.out.data = (char *) str; context 1084 main/output.c context.out.used = len; context 1087 main/output.c if (context.out.data && context.out.used) { context 1092 main/output.c fprintf(stderr, "::: sapi_write('%s', %zu)\n", context.out.data, context.out.used); context 1094 main/output.c sapi_module.ub_write(context.out.data, context.out.used TSRMLS_CC); context 1103 main/output.c php_output_context_dtor(&context); context 1114 main/output.c php_output_context *context = (php_output_context *) c; context 1119 main/output.c status = php_output_handler_op(handler, context); context 1133 main/output.c php_output_context_swap(context); context 1142 main/output.c php_output_context_pass(context); context 1147 main/output.c php_output_context_swap(context); context 1160 main/output.c php_output_context *context = (php_output_context *) c; context 1163 main/output.c php_output_handler_op(handler, context); context 1164 main/output.c php_output_context_reset(context); context 1218 main/output.c php_output_context context; context 1232 main/output.c php_output_context_init(&context, PHP_OUTPUT_HANDLER_FINAL TSRMLS_CC); context 1238 main/output.c context.op |= PHP_OUTPUT_HANDLER_START; context 1242 main/output.c context.op |= PHP_OUTPUT_HANDLER_CLEAN; context 1244 main/output.c php_output_handler_op(orphan, &context); context 1256 main/output.c if (context.out.data && context.out.used && !(flags & PHP_OUTPUT_POP_DISCARD)) { context 1257 main/output.c php_output_write(context.out.data, context.out.used TSRMLS_CC); context 1262 main/output.c php_output_context_dtor(&context); context 80 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 TSRMLS_CC) context 135 main/php_streams.h int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 141 main/php_streams.h int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); context 144 main/php_streams.h int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 149 main/php_streams.h int (*unlink)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC); context 152 main/php_streams.h int (*rename)(php_stream_wrapper *wrapper, const char *url_from, const char *url_to, int options, php_stream_context *context TSRMLS_DC); context 155 main/php_streams.h int (*stream_mkdir)(php_stream_wrapper *wrapper, const char *url, int mode, int options, php_stream_context *context TSRMLS_DC); context 156 main/php_streams.h int (*stream_rmdir)(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC); context 158 main/php_streams.h int (*stream_metadata)(php_stream_wrapper *wrapper, const char *url, int options, void *value, php_stream_context *context TSRMLS_DC); context 210 main/php_streams.h php_stream_context *context; context 337 main/php_streams.h PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); context 339 main/php_streams.h #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (ssb), (context) TSRMLS_CC) context 341 main/php_streams.h PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context TSRMLS_DC); context 342 main/php_streams.h #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, context TSRMLS_CC) context 344 main/php_streams.h PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context TSRMLS_DC); context 345 main/php_streams.h #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context TSRMLS_CC) context 347 main/php_streams.h PHPAPI php_stream *_php_stream_opendir(const char *path, int options, php_stream_context *context STREAMS_DC TSRMLS_DC); context 348 main/php_streams.h #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context) STREAMS_CC TSRMLS_CC) context 357 main/php_streams.h PHPAPI int _php_stream_scandir(const char *dirname, char **namelist[], int flags, php_stream_context *context, context 359 main/php_streams.h #define php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist), 0, (context), (compare) TSRMLS_CC) context 551 main/php_streams.h PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 556 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 TSRMLS_CC) context 558 main/php_streams.h #define php_stream_get_from_zval(stream, zstream, mode, options, opened, context) \ context 562 main/php_streams.h php_stream_open_wrapper_ex(Z_STRVAL_PP((zstream)), (mode), (options), (opened), (context)) : NULL context 210 main/streams/glob_wrapper.c int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 624 main/streams/memory.c php_stream_context *context STREAMS_DC TSRMLS_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_RESOURCE(zval, (context)->rsrc_id); zend_list_addref((context)->rsrc_id); } 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 int 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 TSRMLS_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 TSRMLS_CC) context 880 main/streams/plain_wrapper.c int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 887 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 TSRMLS_CC); context 1018 main/streams/plain_wrapper.c int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 1027 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 TSRMLS_DC) context 1053 main/streams/plain_wrapper.c static int php_plain_files_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) context 1079 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 TSRMLS_DC) context 1163 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 TSRMLS_DC) context 1249 main/streams/plain_wrapper.c static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) context 1277 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 TSRMLS_DC) context 92 main/streams/streams.c if (stream->context) { context 95 main/streams/streams.c stream->context TSRMLS_CC); context 96 main/streams/streams.c stream->context = NULL; context 341 main/streams/streams.c ret->context = NULL; context 388 main/streams/streams.c php_stream_context *context = NULL; context 394 main/streams/streams.c context = stream->context; context 561 main/streams/streams.c if (context) { context 562 main/streams/streams.c zend_list_delete(context->rsrc_id); context 1892 main/streams/streams.c PHPAPI int _php_stream_mkdir(const char *path, int mode, int options, php_stream_context *context TSRMLS_DC) context 1901 main/streams/streams.c return wrapper->wops->stream_mkdir(wrapper, path, mode, options, context TSRMLS_CC); context 1907 main/streams/streams.c PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context TSRMLS_DC) context 1916 main/streams/streams.c return wrapper->wops->stream_rmdir(wrapper, path, options, context TSRMLS_CC); context 1921 main/streams/streams.c PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) context 1944 main/streams/streams.c ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context TSRMLS_CC); context 1971 main/streams/streams.c php_stream_context *context STREAMS_DC TSRMLS_DC) context 1988 main/streams/streams.c context STREAMS_REL_CC TSRMLS_CC); context 2020 main/streams/streams.c char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 2066 main/streams/streams.c opened_path, context STREAMS_REL_CC TSRMLS_CC); context 2164 main/streams/streams.c PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream_context *context) context 2166 main/streams/streams.c php_stream_context *oldcontext = stream->context; context 2169 main/streams/streams.c stream->context = context; context 2171 main/streams/streams.c if (context) { context 2172 main/streams/streams.c zend_list_addref(context->rsrc_id); context 2181 main/streams/streams.c PHPAPI void php_stream_notification_notify(php_stream_context *context, int notifycode, int severity, context 2184 main/streams/streams.c if (context && context->notifier) context 2185 main/streams/streams.c context->notifier->func(context, notifycode, severity, xmsg, xcode, bytes_sofar, bytes_max, ptr TSRMLS_CC); context 2188 main/streams/streams.c PHPAPI void php_stream_context_free(php_stream_context *context) context 2190 main/streams/streams.c if (context->options) { context 2191 main/streams/streams.c zval_ptr_dtor(&context->options); context 2192 main/streams/streams.c context->options = NULL; context 2194 main/streams/streams.c if (context->notifier) { context 2195 main/streams/streams.c php_stream_notification_free(context->notifier); context 2196 main/streams/streams.c context->notifier = NULL; context 2198 main/streams/streams.c efree(context); context 2203 main/streams/streams.c php_stream_context *context; context 2205 main/streams/streams.c context = ecalloc(1, sizeof(php_stream_context)); context 2206 main/streams/streams.c context->notifier = NULL; context 2207 main/streams/streams.c MAKE_STD_ZVAL(context->options); context 2208 main/streams/streams.c array_init(context->options); context 2210 main/streams/streams.c context->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, context, php_le_stream_context(TSRMLS_C)); context 2211 main/streams/streams.c return context; context 2227 main/streams/streams.c PHPAPI int php_stream_context_get_option(php_stream_context *context, context 2232 main/streams/streams.c if (FAILURE == zend_hash_find(Z_ARRVAL_P(context->options), (char*)wrappername, strlen(wrappername)+1, (void**)&wrapperhash)) { context 2238 main/streams/streams.c PHPAPI int php_stream_context_set_option(php_stream_context *context, context 2249 main/streams/streams.c if (FAILURE == zend_hash_find(Z_ARRVAL_P(context->options), (char*)wrappername, strlen(wrappername)+1, (void**)&wrapperhash)) { context 2252 main/streams/streams.c if (FAILURE == zend_hash_update(Z_ARRVAL_P(context->options), (char*)wrappername, strlen(wrappername)+1, (void**)&category, sizeof(zval *), NULL)) { context 2280 main/streams/streams.c PHPAPI int _php_stream_scandir(const char *dirname, char **namelist[], int flags, php_stream_context *context, context 2293 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 TSRMLS_CC); context 137 main/streams/transports.c php_stream_context_set(stream, context); context 163 main/streams/transports.c if (stream->context && php_stream_context_get_option(stream->context, "socket", "backlog", &zbacklog) == SUCCESS) { context 48 main/streams/userspace.c static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_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 TSRMLS_DC); context 50 main/streams/userspace.c static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC); 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 TSRMLS_DC); 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 TSRMLS_DC); context 53 main/streams/userspace.c static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC); 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 TSRMLS_DC); context 56 main/streams/userspace.c int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); context 284 main/streams/userspace.c static zval *user_stream_create_object(struct php_user_stream_wrapper *uwrap, php_stream_context *context TSRMLS_DC) context 293 main/streams/userspace.c if (context) { context 294 main/streams/userspace.c add_property_resource(object, "context", context->rsrc_id); context 295 main/streams/userspace.c zend_list_addref(context->rsrc_id); context 336 main/streams/userspace.c int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 367 main/streams/userspace.c us->object = user_stream_create_object(uwrap, context TSRMLS_CC); context 442 main/streams/userspace.c int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) context 461 main/streams/userspace.c us->object = user_stream_create_object(uwrap, context TSRMLS_CC); context 1165 main/streams/userspace.c static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) context 1175 main/streams/userspace.c object = user_stream_create_object(uwrap, context TSRMLS_CC); context 1213 main/streams/userspace.c int options, php_stream_context *context TSRMLS_DC) context 1223 main/streams/userspace.c object = user_stream_create_object(uwrap, context TSRMLS_CC); context 1266 main/streams/userspace.c int options, php_stream_context *context TSRMLS_DC) context 1276 main/streams/userspace.c object = user_stream_create_object(uwrap, context TSRMLS_CC); context 1325 main/streams/userspace.c int options, php_stream_context *context TSRMLS_DC) context 1335 main/streams/userspace.c object = user_stream_create_object(uwrap, context TSRMLS_CC); context 1379 main/streams/userspace.c void *value, php_stream_context *context TSRMLS_DC) context 1414 main/streams/userspace.c object = user_stream_create_object(uwrap, context TSRMLS_CC); context 1463 main/streams/userspace.c php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) context 1473 main/streams/userspace.c object = user_stream_create_object(uwrap, context TSRMLS_CC); context 104 main/streams/xp_socket.c php_stream_notify_progress_increment(stream->context, didwrite, 0); context 164 main/streams/xp_socket.c php_stream_notify_progress_increment(stream->context, nr_bytes, 0); context 667 main/streams/xp_socket.c if (stream->context && php_stream_context_get_option(stream->context, "socket", "bindto", &tmpzval) == SUCCESS) { context 745 main/streams/xp_socket.c xparam->outputs.client->context = stream->context; context 746 main/streams/xp_socket.c if (stream->context) { context 747 main/streams/xp_socket.c zend_list_addref(stream->context->rsrc_id); context 792 main/streams/xp_socket.c php_stream_context *context STREAMS_DC TSRMLS_DC) context 494 sapi/aolserver/aolserver.c php_ns_request_handler(void *context, Ns_Conn *conn) context 577 sapi/aolserver/aolserver.c php_ns_server_shutdown(void *context) context 579 sapi/aolserver/aolserver.c php_ns_context *ctx = (php_ns_context *) context; 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 398 sapi/phpdbg/phpdbg.c ZEND_ARG_INFO(0, context) context 568 sapi/phpdbg/phpdbg.c static inline void php_sapi_phpdbg_flush(void *context TSRMLS_DC) /* {{{ */ context 571 sapi/phpdbg/phpdbg.c static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */ context 905 sapi/phpdbg/phpdbg.c void phpdbg_signal_handler(int sig, siginfo_t *info, void *context) /* {{{ */ context 913 sapi/phpdbg/phpdbg.c is_handled = phpdbg_watchpoint_segfault_handler(info, context TSRMLS_CC); context 506 sapi/phpdbg/phpdbg_watch.c int phpdbg_watchpoint_segfault_handler(siginfo_t *info, void *context TSRMLS_DC) { context 84 sapi/phpdbg/phpdbg_watch.h int phpdbg_watchpoint_segfault_handler(siginfo_t *info, void *context TSRMLS_DC);