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

123

/PHP_5_5/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_5/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_5/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_5/ext/pdo_sqlite/
H A Dsqlite_driver.c312 int argc, sqlite3_value **argv, sqlite3_context *context,
343 /* summon the aggregation context */
344 agg_context = (zval**)sqlite3_aggregate_context(context, sizeof(zval*));
353 ZVAL_LONG(*zargs[1], sqlite3_aggregate_count(context));
410 sqlite3_result_int(context, Z_LVAL_P(retval));
414 sqlite3_result_null(context);
418 sqlite3_result_double(context, Z_DVAL_P(retval));
423 sqlite3_result_text(context, Z_STRVAL_P(retval),
428 sqlite3_result_error(context, "failed to invoke callback", 0);
436 * the context */
311 do_callback(struct pdo_sqlite_fci *fc, zval *cb, int argc, sqlite3_value **argv, sqlite3_context *context, int is_agg TSRMLS_DC) argument
455 php_sqlite3_func_callback(sqlite3_context *context, int argc, sqlite3_value **argv) argument
464 php_sqlite3_func_step_callback(sqlite3_context *context, int argc, sqlite3_value **argv) argument
473 php_sqlite3_func_final_callback(sqlite3_context *context) argument
481 php_sqlite3_collation_callback(void *context, int string1_len, const void *string1, int string2_len, const void *string2) argument
[all...]
/PHP_5_5/ext/spl/
H A Dspl_directory.h89 php_stream_context *context; member in struct:_spl_filesystem_object::__anon214::__anon216
/PHP_5_5/ext/standard/
H A Dftp_fopen_wrapper.c133 static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context, argument
158 stream = php_stream_xport_create(transport, transport_len, REPORT_ERRORS, STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, NULL, NULL, context, NULL, NULL);
165 php_stream_context_set(stream, context);
166 php_stream_notify_info(context, PHP_STREAM_NOTIFY_CONNECT, NULL, 0);
171 php_stream_notify_error(context, PHP_STREAM_NOTIFY_FAILURE, tmp_line, result);
261 php_stream_notify_info(context, PHP_STREAM_NOTIFY_AUTH_REQUIRED, tmp_line, 0);
283 php_stream_notify_error(context, PHP_STREAM_NOTIFY_AUTH_RESULT, tmp_line, result);
285 php_stream_notify_info(context, PHP_STREAM_NOTIFY_AUTH_RESULT, tmp_line, result);
413 php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
452 if (context
[all...]
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 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...]
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))) {
/PHP_5_5/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, long 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_5/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_5/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)
514 php_stream_context *context = php_stream_context_from_zval(zcontext, 0); local
517 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) {
526 stream = php_stream_open_wrapper_ex(buffer, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context);
528 stream = php_stream_open_wrapper_ex(buffer, "rb", REPORT_ERRORS, NULL, context);
574 /* {{{ proto string finfo_file(resource finfo, char *file_name [, int options [, resource context]])
[all...]
/PHP_5_5/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.c227 static inline void GostTransform(PHP_GOST_CTX *context, const unsigned char input[32]) argument
235 save = context->state[i + 8];
236 context->state[i + 8] += data[i] + temp;
237 temp = ((context->state[i + 8] < data[i]) || (context->state[i + 8] < save)) ? 1 : 0;
240 Gost(context->state, data);
243 PHP_HASH_API void PHP_GOSTInit(PHP_GOST_CTX *context) argument
245 memset(context, 0, sizeof(*context));
250 PHP_HASH_API void PHP_GOSTUpdate(PHP_GOST_CTX *context, cons argument
282 PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) argument
[all...]
H A Dhash_haval.c259 PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *context) \
260 { int i; context->count[0] = context->count[1] = 0; \
261 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
262 context->passes = p; context->output = b; \
263 context->Transform = PHP_##p##HAVALTransform; }
285 PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, unsigned int inputLen) argument
290 index = (unsigned int) ((context->count[0] >> 3) & 0x7F);
292 if ((context
323 PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
377 PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
431 PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
471 PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
512 PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
[all...]
H A Dhash_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_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.h33 typedef void (*php_hash_init_func_t)(void *context);
34 typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count);
35 typedef void (*php_hash_final_func_t)(unsigned char *digest, void *context);
51 void *context; member in struct:_php_hash_data
/PHP_5_5/ext/mysqlnd/
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);

Completed in 22 milliseconds

123