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

123

/PHP_5_3/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_3/ext/sqlite/libsqlite/src/
H A Dfunc.c31 static void minmaxFunc(sqlite_func *context, int argc, const char **argv){ argument
38 mask = (int)sqlite_user_data(context);
52 sqlite_set_result_string(context, zBest, -1);
58 static void typeofFunc(sqlite_func *context, int argc, const char **argv){ argument
60 sqlite_set_result_string(context, argv[1], -1);
66 static void lengthFunc(sqlite_func *context, int argc, const char **argv){ argument
78 sqlite_set_result_int(context, len);
84 static void absFunc(sqlite_func *context, int argc, const char **argv){ argument
90 sqlite_set_result_string(context, z, -1);
96 static void substrFunc(sqlite_func *context, in argument
142 roundFunc(sqlite_func *context, int argc, const char **argv) argument
159 upperFunc(sqlite_func *context, int argc, const char **argv) argument
169 lowerFunc(sqlite_func *context, int argc, const char **argv) argument
185 ifnullFunc(sqlite_func *context, int argc, const char **argv) argument
198 randomFunc(sqlite_func *context, int argc, const char **argv) argument
208 last_insert_rowid(sqlite_func *context, int arg, const char **argv) argument
217 change_count(sqlite_func *context, int arg, const char **argv) argument
226 last_statement_change_count(sqlite_func *context, int arg, const char **argv) argument
241 likeFunc(sqlite_func *context, int arg, const char **argv) argument
257 globFunc(sqlite_func *context, int arg, const char **argv) argument
269 nullifFunc(sqlite_func *context, int argc, const char **argv) argument
279 versionFunc(sqlite_func *context, int argc, const char **argv) argument
294 quoteFunc(sqlite_func *context, int argc, const char **argv) argument
324 soundexFunc(sqlite_func *context, int argc, const char **argv) argument
365 randStr(sqlite_func *context, int argc, const char **argv) argument
416 sumStep(sqlite_func *context, int argc, const char **argv) argument
425 sumFinalize(sqlite_func *context) argument
430 avgFinalize(sqlite_func *context) argument
488 countStep(sqlite_func *context, int argc, const char **argv) argument
495 countFinalize(sqlite_func *context) argument
514 minmaxStep(sqlite_func *context, int argc, const char **argv) argument
547 minMaxFinalize(sqlite_func *context) argument
[all...]
/PHP_5_3/ext/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_3/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;
387 zval *id, *retval, *context = NULL; local
399 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) {
417 if (context != NULL) {
418 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj);
532 /* {{{ proto DOMNodeList dom_xpath_query(string expr [,DOMNode context [, boolean registerNodeNS]]); */
539 /* {{{ proto mixed dom_xpath_evaluate(string expr [,DOMNode context [, boolean registerNodeNS]]); */
/PHP_5_3/ext/fileinfo/
H A Dfileinfo.c37 #include "ext/standard/file.h" /* needed for context stuff */
142 ZEND_ARG_INFO(0, context)
148 ZEND_ARG_INFO(0, context)
155 ZEND_ARG_INFO(0, context)
161 ZEND_ARG_INFO(0, context)
519 php_stream_context *context = php_stream_context_from_zval(zcontext, 0); local
522 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) {
531 stream = php_stream_open_wrapper_ex(buffer, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context);
533 stream = php_stream_open_wrapper_ex(buffer, "rb", REPORT_ERRORS, NULL, context);
579 /* {{{ proto string finfo_file(resource finfo, char *file_name [, int options [, resource context]])
[all...]
/PHP_5_3/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;
40 context->state = s[0] + (s[1] << 16);
43 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) argument
45 digest[0] = (unsigned char) ((context->state >> 24) & 0xff);
46 digest[1] = (unsigned char) ((context->state >> 16) & 0xff);
47 digest[2] = (unsigned char) ((context
[all...]
H A Dhash_crc32.c26 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context) argument
28 context->state = ~0;
31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
36 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)];
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
45 context->state = (context->state >> 8) ^ crc32b_table[(context
49 PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context) argument
59 PHP_CRC32BFinal(unsigned char digest[4], PHP_CRC32_CTX *context) argument
[all...]
H A Dhash_gost.c227 static inline void GostTransform(PHP_GOST_CTX *context, const unsigned char input[32]) argument
235 save = context->state[i + 8];
236 context->state[i + 8] += data[i] + temp;
237 temp = ((context->state[i + 8] < data[i]) || (context->state[i + 8] < save)) ? 1 : 0;
240 Gost(context->state, data);
243 PHP_HASH_API void PHP_GOSTInit(PHP_GOST_CTX *context) argument
245 memset(context, 0, sizeof(*context));
250 PHP_HASH_API void PHP_GOSTUpdate(PHP_GOST_CTX *context, cons argument
282 PHP_GOSTFinal(unsigned char digest[32], PHP_GOST_CTX *context) argument
[all...]
H A Dhash_haval.c259 PHP_HASH_API void PHP_##p##HAVAL##b##Init(PHP_HAVAL_CTX *context) \
260 { int i; context->count[0] = context->count[1] = 0; \
261 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
262 context->passes = p; context->output = b; \
263 context->Transform = PHP_##p##HAVALTransform; }
285 PHP_HASH_API void PHP_HAVALUpdate(PHP_HAVAL_CTX *context, const unsigned char *input, unsigned int inputLen) argument
290 index = (unsigned int) ((context->count[0] >> 3) & 0x7F);
292 if ((context
323 PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
377 PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
431 PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
471 PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
512 PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX * context) argument
[all...]
H A Dhash_md.c112 PHP_MD5_CTX context; local
120 PHP_MD5Init(&context);
121 PHP_MD5Update(&context, arg, arg_len);
122 PHP_MD5Final(digest, &context);
143 PHP_MD5_CTX context; local
156 PHP_MD5Init(&context);
159 PHP_MD5Update(&context, buf, n);
162 PHP_MD5Final(digest, &context);
265 * MD5 initialization. Begins an MD5 operation, writing a new context.
267 PHP_HASH_API void PHP_MD5Init(PHP_MD5_CTX * context) argument
284 PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, unsigned int inputLen) argument
325 PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) argument
527 PHP_MD4Init(PHP_MD4_CTX * context) argument
544 PHP_MD4Update(PHP_MD4_CTX * context, const unsigned char *input, unsigned int inputLen) argument
583 PHP_MD4Final(unsigned char digest[16], PHP_MD4_CTX * context) argument
629 PHP_MD2Init(PHP_MD2_CTX *context) argument
634 MD2_Transform(PHP_MD2_CTX *context, const unsigned char *block) argument
657 PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) argument
688 PHP_MD2Final(unsigned char output[16], PHP_MD2_CTX *context) argument
[all...]
H A Dhash_ripemd.c69 * ripemd128 initialization. Begins a ripemd128 operation, writing a new context.
71 PHP_HASH_API void PHP_RIPEMD128Init(PHP_RIPEMD128_CTX * context) argument
73 context->count[0] = context->count[1] = 0;
76 context->state[0] = 0x67452301;
77 context->state[1] = 0xEFCDAB89;
78 context->state[2] = 0x98BADCFE;
79 context->state[3] = 0x10325476;
84 * ripemd256 initialization. Begins a ripemd256 operation, writing a new context.
86 PHP_HASH_API void PHP_RIPEMD256Init(PHP_RIPEMD256_CTX * context) argument
105 PHP_RIPEMD160Init(PHP_RIPEMD160_CTX * context) argument
121 PHP_RIPEMD320Init(PHP_RIPEMD320_CTX * context) argument
256 PHP_RIPEMD128Update(PHP_RIPEMD128_CTX * context, const unsigned char *input, unsigned int inputLen) argument
354 PHP_RIPEMD256Update(PHP_RIPEMD256_CTX * context, const unsigned char *input, unsigned int inputLen) argument
453 PHP_RIPEMD160Update(PHP_RIPEMD160_CTX * context, const unsigned char *input, unsigned int inputLen) argument
561 PHP_RIPEMD320Update(PHP_RIPEMD320_CTX * context, const unsigned char *input, unsigned int inputLen) argument
624 PHP_RIPEMD128Final(unsigned char digest[16], PHP_RIPEMD128_CTX * context) argument
661 PHP_RIPEMD256Final(unsigned char digest[32], PHP_RIPEMD256_CTX * context) argument
698 PHP_RIPEMD160Final(unsigned char digest[20], PHP_RIPEMD160_CTX * context) argument
735 PHP_RIPEMD320Final(unsigned char digest[40], PHP_RIPEMD320_CTX * context) argument
[all...]
H A Dhash_salsa.c121 static inline void SalsaTransform(PHP_SALSA_CTX *context, const unsigned char input[64]) argument
134 if (!context->init) {
135 memcpy(context->state, a, sizeof(a));
136 context->init = 1;
139 context->Transform(context->state, a);
143 PHP_HASH_API void PHP_SALSA10Init(PHP_SALSA_CTX *context) argument
145 memset(context, 0, sizeof(*context));
146 context
149 PHP_SALSA20Init(PHP_SALSA_CTX *context) argument
155 PHP_SALSAUpdate(PHP_SALSA_CTX *context, const unsigned char *input, size_t len) argument
179 PHP_SALSAFinal(unsigned char digest[64], PHP_SALSA_CTX *context) argument
[all...]
H A Dhash_snefru.c123 static inline void SnefruTransform(PHP_SNEFRU_CTX *context, const unsigned char input[32]) argument
128 context->state[8+j] = ((input[i] & 0xff) << 24) | ((input[i+1] & 0xff) << 16) |
131 Snefru(context->state);
132 memset(&context->state[8], 0, sizeof(php_hash_uint32) * 8);
135 PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *context) argument
137 memset(context, 0, sizeof(*context));
142 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) argument
144 if ((MAX32 - context->count[1]) < (len * 8)) {
145 context
174 PHP_SNEFRUFinal(unsigned char digest[32], PHP_SNEFRU_CTX *context) argument
[all...]
H A Dhash_tiger.c139 static inline void TigerFinalize(PHP_TIGER_CTX *context) argument
141 context->passed += (php_hash_uint64) context->length << 3;
143 context->buffer[context->length++] = 0x1;
144 if (context->length % 8) {
145 memset(&context->buffer[context->length], 0, 8-context->length%8);
146 context
172 PHP_3TIGERInit(PHP_TIGER_CTX *context) argument
180 PHP_4TIGERInit(PHP_TIGER_CTX *context) argument
189 PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len) argument
216 PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context) argument
240 PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context) argument
268 PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context) argument
[all...]
H A Dhash_whirlpool.c41 static void WhirlpoolTransform(PHP_WHIRLPOOL_CTX *context) argument
48 unsigned char *buffer = context->buffer.data;
67 state[0] = block[0] ^ (K[0] = context->state[0]);
68 state[1] = block[1] ^ (K[1] = context->state[1]);
69 state[2] = block[2] ^ (K[2] = context->state[2]);
70 state[3] = block[3] ^ (K[3] = context->state[3]);
71 state[4] = block[4] ^ (K[4] = context->state[4]);
72 state[5] = block[5] ^ (K[5] = context->state[5]);
73 state[6] = block[6] ^ (K[6] = context->state[6]);
74 state[7] = block[7] ^ (K[7] = context
270 PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *context) argument
275 PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *context, const unsigned char *input, size_t len) argument
377 PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context) argument
[all...]
H A Dphp_hash.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_3/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_3/ext/spl/
H A Dspl_directory.h89 php_stream_context *context; member in struct:_spl_filesystem_object::__anon181::__anon183
/PHP_5_3/ext/standard/
H A Ddir.c215 php_stream_context *context = NULL; local
222 context = php_stream_context_from_zval(zcontext, 0);
224 dirp = php_stream_opendir(dirname, ENFORCE_SAFE_MODE|REPORT_ERRORS, context);
245 /* {{{ proto mixed opendir(string path[, resource context])
253 /* {{{ proto object dir(string directory[, resource context])
552 /* {{{ proto array scandir(string dir [, int sorting_order [, resource context]])
562 php_stream_context *context = NULL; local
578 context = php_stream_context_from_zval(zcontext, 0);
582 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort);
584 n = php_stream_scandir(dirn, &namelist, context, (voi
[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 Durl.c699 php_stream_context *context; local
709 context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_alloc());
711 if (!(stream = php_stream_open_wrapper_ex(url, "r", REPORT_ERRORS | STREAM_USE_URL | STREAM_ONLY_GET_HEADERS, NULL, context))) {
/PHP_5_3/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_3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c52 php_stream_context *context = NULL; local
73 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context);
/PHP_5_3/ext/soap/
H A Dphp_xml.c196 int php_stream_xmlIO_read(void *context, char *buffer, int len) argument
199 return php_stream_read((php_stream*)context, buffer, len);
202 int php_stream_xmlIO_close(void *context) argument
205 return php_stream_close((php_stream*)context);

Completed in 45 milliseconds

123