Searched defs:context (Results 1 - 25 of 55) sorted by relevance

123

/PHP_5_6/ext/gd/libgd/
H A Dgdtest.c16 static int freadWrapper (void *context, char *buf, int len);
17 static int fwriteWrapper (void *context, const char *buffer, int len);
164 imgsrc.context = in;
186 imgsnk.context = out;
399 freadWrapper (void *context, char *buf, int len) argument
401 int got = fread (buf, 1, len, (FILE *) context);
406 fwriteWrapper (void *context, const char *buffer, int len) argument
408 return fwrite (buffer, 1, len, (FILE *) context);
/PHP_5_6/TSRM/
H A DTSRM.c381 /* frees an interpreter context. You are responsible for making sure that
383 void tsrm_free_interpreter_context(void *context) argument
385 tsrm_tls_entry *next, *thread_resources = (tsrm_tls_entry*)context;
412 * it with the new context, protected by mutex where/if appropriate */
417 /* return old context, so caller can restore it when they're done */
422 /* allocates a new interpreter context */
435 /* switch back to the context that was in use prior to our creation
/PHP_5_6/Zend/
H A Dzend_signal.c54 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context TSRMLS_DC);
73 void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context) argument
86 zend_signal_handler(signo, siginfo, context TSRMLS_CC);
92 zend_signal_handler(queue->zend_signal.signo, queue->zend_signal.siginfo, queue->zend_signal.context TSRMLS_CC);
108 queue->zend_signal.context = context;
126 zend_signal_handler(signo, siginfo, context TSRMLS_CC);
148 zend_signal_handler_defer(zend_signal.signo, zend_signal.siginfo, zend_signal.context);
157 static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context TSRMLS_DC)
184 (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context);
[all...]
H A Dzend_signal.h41 void* handler; /* signal handler or context */
47 void* context; member in struct:_zend_signal_t
85 void zend_signal_handler_defer(int signo, siginfo_t *siginfo, void *context);
/PHP_5_6/ext/dom/
H A Dxpath.c51 ZEND_ARG_OBJ_INFO(0, context, DOMNode, 1)
57 ZEND_ARG_OBJ_INFO(0, context, DOMNode, 1)
95 intern = (dom_xpath_object *) ctxt->context->userData;
388 zval *id, *retval, *context = NULL; local
400 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, &register_node_ns) == FAILURE) {
418 if (context != NULL) {
419 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj);
533 /* {{{ proto DOMNodeList dom_xpath_query(string expr [,DOMNode context [, boolean registerNodeNS]]); */
540 /* {{{ proto mixed dom_xpath_evaluate(string expr [,DOMNode context [, boolean registerNodeNS]]); */
/PHP_5_6/ext/hash/
H A Dhash_adler32.c25 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) argument
27 context->state = 1;
30 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) argument
34 s[0] = context->state & 0xffff;
35 s[1] = (context->state >> 16) & 0xffff;
47 context->state = s[0] + (s[1] << 16);
50 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) argument
52 digest[0] = (unsigned char) ((context->state >> 24) & 0xff);
53 digest[1] = (unsigned char) ((context->state >> 16) & 0xff);
54 digest[2] = (unsigned char) ((context
[all...]
H A Dhash_crc32.c26 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context) argument
28 context->state = ~0;
31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
36 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)];
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
45 context->state = (context->state >> 8) ^ crc32b_table[(context
49 PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context) argument
59 PHP_CRC32BFinal(unsigned char digest[4], PHP_CRC32_CTX *context) argument
[all...]
H A Dhash_fnv.c70 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) argument
72 context->state = PHP_FNV1_32_INIT;
76 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, argument
79 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0);
82 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, argument
85 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1);
88 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) argument
91 memcpy(digest, &context
105 PHP_FNV164Init(PHP_FNV164_CTX *context) argument
111 PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, unsigned int inputLen) argument
117 PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, unsigned int inputLen) argument
123 PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) argument
[all...]
H A Dhash_gost.c210 static inline void Gost(PHP_GOST_CTX *context, php_hash_uint32 data[8]) argument
213 php_hash_uint32 l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data;
215 memcpy(u, context->state, sizeof(u));
219 PASS(*context->tables);
227 static inline void GostTransform(PHP_GOST_CTX *context, const unsigned char input[32]) argument
235 save = context->state[i + 8];
236 context->state[i + 8] += data[i] + temp;
237 temp = ((context->state[i + 8] < data[i]) || (context->state[i + 8] < save)) ? 1 : 0;
240 Gost(context, dat
243 PHP_GOSTInit(PHP_GOST_CTX *context) argument
249 PHP_GOSTInitCrypto(PHP_GOST_CTX *context) argument
257 PHP_GOSTUpdate(PHP_GOST_CTX *context, const unsigned char *input, size_t len) argument
289 PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) argument
[all...]
H A Dhash_haval.c259 PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *context) \
260 { int i; context->count[0] = context->count[1] = 0; \
261 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
262 context->passes = p; context->output = b; \
263 context->Transform = PHP_##p##HAVALTransform; }
285 PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, unsigned int inputLen) argument
290 index = (unsigned int) ((context->count[0] >> 3) & 0x7F);
292 if ((context
323 PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
377 PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
431 PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
471 PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
512 PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
[all...]
H A Dhash_joaat.c38 PHP_HASH_API void PHP_JOAATInit(PHP_JOAAT_CTX *context) argument
40 context->state = 0;
43 PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, unsigned int inputLen) argument
45 context->state = joaat_buf((void *)input, inputLen, context->state);
48 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[4], PHP_JOAAT_CTX * context) argument
51 memcpy(digest, &context->state, 4);
54 unsigned char *c = (unsigned char *) &context->state;
60 context->state = 0;
H A Dhash_md.c112 PHP_MD5_CTX context; local
120 PHP_MD5Init(&context);
121 PHP_MD5Update(&context, arg, arg_len);
122 PHP_MD5Final(digest, &context);
143 PHP_MD5_CTX context; local
156 PHP_MD5Init(&context);
159 PHP_MD5Update(&context, buf, n);
162 PHP_MD5Final(digest, &context);
265 * MD5 initialization. Begins an MD5 operation, writing a new context.
267 PHP_HASH_API void PHP_MD5Init(PHP_MD5_CTX * context) argument
284 PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, unsigned int inputLen) argument
325 PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) argument
527 PHP_MD4Init(PHP_MD4_CTX * context) argument
544 PHP_MD4Update(PHP_MD4_CTX * context, const unsigned char *input, unsigned int inputLen) argument
583 PHP_MD4Final(unsigned char digest[16], PHP_MD4_CTX * context) argument
629 PHP_MD2Init(PHP_MD2_CTX *context) argument
634 MD2_Transform(PHP_MD2_CTX *context, const unsigned char *block) argument
657 PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) argument
688 PHP_MD2Final(unsigned char output[16], PHP_MD2_CTX *context) argument
[all...]
H A Dhash_ripemd.c69 * ripemd128 initialization. Begins a ripemd128 operation, writing a new context.
71 PHP_HASH_API void PHP_RIPEMD128Init(PHP_RIPEMD128_CTX * context) argument
73 context->count[0] = context->count[1] = 0;
76 context->state[0] = 0x67452301;
77 context->state[1] = 0xEFCDAB89;
78 context->state[2] = 0x98BADCFE;
79 context->state[3] = 0x10325476;
84 * ripemd256 initialization. Begins a ripemd256 operation, writing a new context.
86 PHP_HASH_API void PHP_RIPEMD256Init(PHP_RIPEMD256_CTX * context) argument
105 PHP_RIPEMD160Init(PHP_RIPEMD160_CTX * context) argument
121 PHP_RIPEMD320Init(PHP_RIPEMD320_CTX * context) argument
256 PHP_RIPEMD128Update(PHP_RIPEMD128_CTX * context, const unsigned char *input, unsigned int inputLen) argument
354 PHP_RIPEMD256Update(PHP_RIPEMD256_CTX * context, const unsigned char *input, unsigned int inputLen) argument
453 PHP_RIPEMD160Update(PHP_RIPEMD160_CTX * context, const unsigned char *input, unsigned int inputLen) argument
561 PHP_RIPEMD320Update(PHP_RIPEMD320_CTX * context, const unsigned char *input, unsigned int inputLen) argument
624 PHP_RIPEMD128Final(unsigned char digest[16], PHP_RIPEMD128_CTX * context) argument
661 PHP_RIPEMD256Final(unsigned char digest[32], PHP_RIPEMD256_CTX * context) argument
698 PHP_RIPEMD160Final(unsigned char digest[20], PHP_RIPEMD160_CTX * context) argument
735 PHP_RIPEMD320Final(unsigned char digest[40], PHP_RIPEMD320_CTX * context) argument
[all...]
H A Dhash_snefru.c123 static inline void SnefruTransform(PHP_SNEFRU_CTX *context, const unsigned char input[32]) argument
128 context->state[8+j] = ((input[i] & 0xff) << 24) | ((input[i+1] & 0xff) << 16) |
131 Snefru(context->state);
132 memset(&context->state[8], 0, sizeof(php_hash_uint32) * 8);
135 PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *context) argument
137 memset(context, 0, sizeof(*context));
142 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) argument
144 if ((MAX32 - context->count[1]) < (len * 8)) {
145 context
174 PHP_SNEFRUFinal(unsigned char digest[32], PHP_SNEFRU_CTX *context) argument
[all...]
H A Dhash_tiger.c139 static inline void TigerFinalize(PHP_TIGER_CTX *context) argument
141 context->passed += (php_hash_uint64) context->length << 3;
143 context->buffer[context->length++] = 0x1;
144 if (context->length % 8) {
145 memset(&context->buffer[context->length], 0, 8-context->length%8);
146 context
172 TigerDigest(unsigned char *digest_str, unsigned int digest_len, PHP_TIGER_CTX *context) argument
181 PHP_3TIGERInit(PHP_TIGER_CTX *context) argument
189 PHP_4TIGERInit(PHP_TIGER_CTX *context) argument
198 PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len) argument
225 PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) argument
232 PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) argument
239 PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) argument
[all...]
H A Dhash_whirlpool.c41 static void WhirlpoolTransform(PHP_WHIRLPOOL_CTX *context) argument
48 unsigned char *buffer = context->buffer.data;
67 state[0] = block[0] ^ (K[0] = context->state[0]);
68 state[1] = block[1] ^ (K[1] = context->state[1]);
69 state[2] = block[2] ^ (K[2] = context->state[2]);
70 state[3] = block[3] ^ (K[3] = context->state[3]);
71 state[4] = block[4] ^ (K[4] = context->state[4]);
72 state[5] = block[5] ^ (K[5] = context->state[5]);
73 state[6] = block[6] ^ (K[6] = context->state[6]);
74 state[7] = block[7] ^ (K[7] = context
270 PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *context) argument
275 PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *context, const unsigned char *input, size_t len) argument
377 PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context) argument
[all...]
H A Dphp_hash.h38 typedef void (*php_hash_init_func_t)(void *context);
39 typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count);
40 typedef void (*php_hash_final_func_t)(unsigned char *digest, void *context);
56 void *context; member in struct:_php_hash_data
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_auth.c330 PHP_SHA1_CTX context; local
335 PHP_SHA1Init(&context);
336 PHP_SHA1Update(&context, password, password_len);
337 PHP_SHA1Final(sha1, &context);
340 PHP_SHA1Init(&context);
341 PHP_SHA1Update(&context, (zend_uchar*)sha1, SHA1_MAX_LENGTH);
342 PHP_SHA1Final(sha2, &context);
345 PHP_SHA1Init(&context);
346 PHP_SHA1Update(&context, scramble, SCRAMBLE_LENGTH);
347 PHP_SHA1Update(&context, (zend_ucha
[all...]
H A Dmysqlnd_loaddata.c33 php_stream_context *context = NULL; local
54 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context);
/PHP_5_6/ext/standard/
H A Dmd5.c53 PHP_MD5_CTX context; local
61 PHP_MD5Init(&context);
62 PHP_MD5Update(&context, arg, arg_len);
63 PHP_MD5Final(digest, &context);
84 PHP_MD5_CTX context; local
97 PHP_MD5Init(&context);
100 PHP_MD5Update(&context, buf, n);
103 PHP_MD5Final(digest, &context);
H A Dsha1.c41 PHP_SHA1_CTX context; local
49 PHP_SHA1Init(&context);
50 PHP_SHA1Update(&context, arg, arg_len);
51 PHP_SHA1Final(digest, &context);
74 PHP_SHA1_CTX context; local
87 PHP_SHA1Init(&context);
90 PHP_SHA1Update(&context, buf, n);
93 PHP_SHA1Final(digest, &context);
163 * SHA1 initialization. Begins an SHA1 operation, writing a new context.
165 PHPAPI void PHP_SHA1Init(PHP_SHA1_CTX * context) argument
183 PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, unsigned int inputLen) argument
224 PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) argument
[all...]
H A Durl.c699 php_stream_context *context; local
709 context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_alloc(TSRMLS_C));
711 if (!(stream = php_stream_open_wrapper_ex(url, "r", REPORT_ERRORS | STREAM_USE_URL | STREAM_ONLY_GET_HEADERS, NULL, context))) {
H A Ddir.c219 php_stream_context *context = NULL; local
226 context = php_stream_context_from_zval(zcontext, 0);
228 dirp = php_stream_opendir(dirname, REPORT_ERRORS, context);
249 /* {{{ proto mixed opendir(string path[, resource context])
257 /* {{{ proto object dir(string directory[, resource context])
550 /* {{{ proto array scandir(string dir [, int sorting_order [, resource context]])
560 php_stream_context *context = NULL; local
572 context = php_stream_context_from_zval(zcontext, 0);
576 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort);
578 n = php_stream_scandir(dirn, &namelist, context, NUL
[all...]
/PHP_5_6/main/streams/
H A Dtransports.c55 php_stream_context *context,
134 context STREAMS_REL_CC TSRMLS_CC);
137 php_stream_context_set(stream, context);
163 if (stream->context && php_stream_context_get_option(stream->context, "socket", "backlog", &zbacklog) == SUCCESS) {
52 _php_stream_xport_create(const char *name, size_t namelen, int options, int flags, const char *persistent_id, struct timeval *timeout, php_stream_context *context, char **error_string, int *error_code STREAMS_DC TSRMLS_DC) argument
/PHP_5_6/ext/fileinfo/
H A Dfileinfo.c37 #include "ext/standard/file.h" /* needed for context stuff */
141 ZEND_ARG_INFO(0, context)
147 ZEND_ARG_INFO(0, context)
154 ZEND_ARG_INFO(0, context)
160 ZEND_ARG_INFO(0, context)
516 php_stream_context *context = php_stream_context_from_zval(zcontext, 0); local
519 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) {
528 stream = php_stream_open_wrapper_ex(buffer, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context);
530 stream = php_stream_open_wrapper_ex(buffer, "rb", REPORT_ERRORS, NULL, context);
576 /* {{{ proto string finfo_file(resource finfo, char *file_name [, int options [, resource context]])
[all...]

Completed in 20 milliseconds

123