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

123

/PHP_TRUNK/pear/
H A Dfetch.php64 $ctx = stream_context_create($copt, array("notification" => "stream_notification_callback")); variable
66 $fp = fopen($argv[1], "r", false, $ctx);
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_io.c34 void Putword (int w, gdIOCtx * ctx) argument
40 (ctx->putBuf) (ctx, (char *) buf, 2);
43 void Putchar (int c, gdIOCtx * ctx) argument
45 (ctx->putC) (ctx, c & 0xff);
48 void gdPutC (const unsigned char c, gdIOCtx * ctx) argument
50 (ctx->putC) (ctx, c);
53 void gdPutWord (int w, gdIOCtx * ctx) argument
61 gdPutInt(int w, gdIOCtx * ctx) argument
71 gdGetC(gdIOCtx * ctx) argument
76 gdGetByte(int *result, gdIOCtx * ctx) argument
85 gdGetWord(int *result, gdIOCtx * ctx) argument
98 gdGetInt(int *result, gdIOCtx * ctx) argument
122 gdPutBuf(const void *buf, int size, gdIOCtx * ctx) argument
129 gdGetBuf(void *buf, int size, gdIOCtx * ctx) argument
134 gdSeek(gdIOCtx * ctx, const int pos) argument
141 gdTell(gdIOCtx * ctx) argument
[all...]
H A Dgd_io_dp.c41 gdIOCtx ctx; member in struct:dpIOCtx
52 static void gdFreeDynamicCtx (struct gdIOCtx *ctx);
58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len);
59 static int dynamicGetchar (gdIOCtxPtr ctx);
72 dpIOCtx *ctx; local
75 ctx = (dpIOCtx *) gdMalloc (sizeof (dpIOCtx));
79 ctx->dp = dp;
81 ctx->ctx.getC = dynamicGetchar;
82 ctx
95 gdDPExtractData(struct gdIOCtx *ctx, int *size) argument
124 gdFreeDynamicCtx(struct gdIOCtx *ctx) argument
140 dynamicTell(struct gdIOCtx *ctx) argument
149 dynamicSeek(struct gdIOCtx *ctx, const int pos) argument
198 dynamicPutbuf(struct gdIOCtx *ctx, const void *buf, int size) argument
216 dynamicPutchar(struct gdIOCtx *ctx, int a) argument
227 dynamicGetbuf(gdIOCtxPtr ctx, void *buf, int len) argument
252 dynamicGetchar(gdIOCtxPtr ctx) argument
[all...]
H A Dgd_io_file.c33 gdIOCtx ctx; member in struct:fileIOCtx
42 static int fileGetchar (gdIOCtx * ctx);
46 static void gdFreeFileCtx (gdIOCtx * ctx);
51 fileIOCtx *ctx; local
53 ctx = (fileIOCtx *) gdMalloc(sizeof (fileIOCtx));
55 ctx->f = f;
57 ctx->ctx.getC = fileGetchar;
58 ctx->ctx
71 gdFreeFileCtx(gdIOCtx * ctx) argument
77 filePutbuf(gdIOCtx * ctx, const void *buf, int size) argument
86 fileGetbuf(gdIOCtx * ctx, void *buf, int size) argument
94 filePutchar(gdIOCtx * ctx, int a) argument
105 fileGetchar(gdIOCtx * ctx) argument
114 fileSeek(struct gdIOCtx *ctx, const int pos) argument
122 fileTell(struct gdIOCtx *ctx) argument
[all...]
H A Dgd_io_ss.c34 gdIOCtx ctx; member in struct:ssIOCtx
44 static int sourceGetchar (gdIOCtx * ctx);
45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
46 static void sinkPutchar (gdIOCtx * ctx, int a);
47 static void gdFreeSsCtx (gdIOCtx * ctx);
52 ssIOCtxPtr ctx; local
54 ctx = (ssIOCtxPtr) gdMalloc (sizeof (ssIOCtx));
56 ctx->src = src;
57 ctx->snk = snk;
59 ctx
73 gdFreeSsCtx(gdIOCtx * ctx) argument
79 sourceGetbuf(gdIOCtx * ctx, void *buf, int size) argument
102 sourceGetchar(gdIOCtx * ctx) argument
116 sinkPutbuf(gdIOCtx * ctx, const void *buf, int size) argument
132 sinkPutchar(gdIOCtx * ctx, int a) argument
[all...]
H A Dgdtest.c26 gdIOCtxPtr ctx; local
79 ctx = gdNewDynamicCtx (sz, iptr);
80 im2 = gdImageCreateFromPngCtx (ctx);
85 ctx->gd_free (ctx);
112 ctx = gdNewDynamicCtx (sz, iptr);
113 /*printf("Got ctx %d\n",ctx); */
114 im2 = gdImageCreateFromGd2Ctx (ctx);
120 ctx
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/filters/
H A Dmbfilter_cp5022x.c570 mbfl_filt_conv_wchar_cp50220_ctx *ctx; local
574 ctx = mbfl_malloc(sizeof(mbfl_filt_conv_wchar_cp50220_ctx));
575 if (ctx == NULL) {
580 ctx->tl_param.mode = MBFL_FILT_TL_HAN2ZEN_KATAKANA | MBFL_FILT_TL_HAN2ZEN_GLUE;
582 ctx->last = *filt;
583 ctx->last.opaque = ctx;
584 ctx->last.data = filt->data;
587 filt->output_function = (int(*)(int, void *))ctx->last.filter_function;
588 filt->flush_function = (int(*)(void *))ctx
597 mbfl_filt_conv_wchar_cp50220_ctx *ctx; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dmd5.c177 (ctx->block[(n)] = \
183 (ctx->block[(n)])
190 static const void *body(PHP_MD5_CTX *ctx, const void *data, size_t size) argument
198 a = ctx->a;
199 b = ctx->b;
200 c = ctx->c;
201 d = ctx->d;
289 ctx->a = a;
290 ctx->b = b;
291 ctx
297 PHP_MD5Init(PHP_MD5_CTX *ctx) argument
308 PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size) argument
343 PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx) argument
[all...]
H A Dphp_crypt_r.c129 HCRYPTHASH ctx, ctx1; local
166 if(!CryptCreateHash(hCryptProv, CALG_MD5, 0, 0, &ctx)) {
171 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) {
176 if(!CryptHashData(ctx, magic_md5, magic_md5_len, 0)) {
181 if(!CryptHashData( ctx, (BYTE *)sp, sl, 0)) {
205 CryptHashData(ctx, final, (DWORD)(pl > 16 ? 16 : pl), 0);
214 CryptHashData(ctx, (const BYTE *)final, 1, 0);
216 CryptHashData(ctx, (const BYTE *)pw, 1, 0);
230 /* Fetch the ctx hash value */
231 CryptGetHashParam(ctx, HP_HASHVA
325 PHP_MD5_CTX ctx, ctx1; local
[all...]
/PHP_TRUNK/main/
H A Dreentrancy.c315 do_rand(unsigned long *ctx) argument
317 return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)PHP_RAND_MAX + 1));
322 php_rand_r(unsigned int *ctx) argument
324 u_long val = (u_long) *ctx;
325 *ctx = do_rand(&val);
326 return (int) *ctx;
/PHP_TRUNK/sapi/apache2handler/
H A Dphp_functions.c61 php_struct *ctx = SG(server_context); local
63 if (!filename || !ctx || !ctx->r) {
67 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters);
175 php_struct *ctx; local
185 ctx = SG(server_context);
186 arr = apr_table_elts(ctx->r->headers_in);
199 php_struct *ctx; local
209 ctx
223 php_struct *ctx; local
255 php_struct *ctx; local
290 php_struct *ctx; local
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c23 #define CTX_PUTC(c,ctx) ctx->putC(ctx, c)
25 static void _php_image_output_putc(struct gdIOCtx *ctx, int c) /* {{{ */ argument
35 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */ argument
40 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) /* {{{ */ argument
42 if(ctx) {
43 efree(ctx);
47 static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) /* {{{ */ { argument
49 php_stream * stream = (php_stream *)ctx
53 _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) argument
59 _php_image_stream_ctxfree(struct gdIOCtx *ctx) argument
82 gdIOCtx *ctx = NULL; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_xml.c72 static void soap_ignorableWhitespace(void *ctx, const xmlChar *ch, int len) argument
76 static void soap_Comment(void *ctx, const xmlChar *value) argument
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c41 void optimize_func_calls(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
53 checkpoint = zend_arena_checkpoint(ctx->arena);
54 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info));
62 if ((func = zend_hash_find_ptr(&ctx->script->function_table,
167 zend_arena_release(&ctx->arena, checkpoint);
H A Doptimize_temp_vars_5.c41 void optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
54 void *checkpoint = zend_arena_checkpoint(ctx->arena);
56 taken_T = (char *) zend_arena_alloc(&ctx->arena, T);
57 start_of_T = (zend_op **) zend_arena_alloc(&ctx->arena, T * sizeof(zend_op *));
58 valid_T = (char *) zend_arena_alloc(&ctx->arena, T);
59 map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int));
190 zend_arena_release(&ctx->arena, checkpoint);
H A Dpass1_5.c40 void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
45 zend_bool collect_constants = (op_array == &ctx->script->main_op_array);
271 if (!ctx->constants || !zend_optimizer_get_collected_constant(ctx->constants, &ZEND_OP2_LITERAL(opline), &c)) {
400 zend_optimizer_collect_constant(ctx, &ZEND_OP1_LITERAL(send1_opline), &ZEND_OP1_LITERAL(send2_opline));
606 zend_optimizer_collect_constant(ctx, &ZEND_OP1_LITERAL(opline), &ZEND_OP2_LITERAL(opline));
/PHP_TRUNK/ext/dom/
H A Dxpath.c260 xmlXPathContextPtr ctx, oldctx; local
268 ctx = xmlXPathNewContext(docp);
269 if (ctx == NULL) {
282 xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "functionString",
285 xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "function",
289 intern->dom.ptr = ctx;
290 ctx->userData = (void *)intern;
301 xmlXPathContextPtr ctx = (xmlXPathContextPtr) obj->ptr; local
303 if (ctx) {
304 docp = (xmlDocPtr) ctx
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_source_buffer.c88 struct read_data *ctx; local
96 if ((ctx=(struct read_data *)malloc(sizeof(*ctx))) == NULL) {
101 if ((ctx->in = buffer_new_read(data, len, freep)) == NULL) {
103 free(ctx);
107 ctx->out = NULL;
108 ctx->mtime = time(NULL);
109 zip_error_init(&ctx->error);
111 if ((zs=zip_source_function_create(read_data, ctx, error)) == NULL) {
112 buffer_free(ctx
124 struct read_data *ctx = (struct read_data *)state; local
[all...]
H A Dzip_source_crc.c55 struct crc_context *ctx; local
62 if ((ctx=(struct crc_context *)malloc(sizeof(*ctx))) == NULL) {
67 ctx->eof = 0;
68 ctx->validate = validate;
69 zip_error_init(&ctx->error);
70 ctx->size = 0;
71 ctx->crc = 0;
73 return zip_source_layered(za, src, crc_read, ctx);
80 struct crc_context *ctx; local
[all...]
H A Dzip_source_deflate.c62 struct deflate *ctx; local
70 if ((ctx=(struct deflate *)malloc(sizeof(*ctx))) == NULL) {
75 zip_error_init(&ctx->error);
76 ctx->eof = false;
77 ctx->is_stored = false;
78 ctx->can_store = ZIP_CM_IS_DEFAULT(cm);
80 ctx->mem_level = MAX_MEM_LEVEL;
86 ctx)) == NULL) {
87 deflate_free(ctx);
96 compress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len) argument
196 decompress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len) argument
280 struct deflate *ctx; local
348 struct deflate *ctx; local
412 deflate_free(struct deflate *ctx) argument
[all...]
H A Dzip_source_filep.c82 static int create_temp_output(struct read_file *ctx);
112 struct read_file *ctx; local
120 if ((ctx=(struct read_file *)malloc(sizeof(struct read_file))) == NULL) {
125 ctx->fname = NULL;
127 if ((ctx->fname=strdup(fname)) == NULL) {
129 free(ctx);
133 ctx->f = file;
134 ctx->start = start;
135 ctx->end = (len < 0 ? 0 : start+(zip_uint64_t)len);
137 memcpy(&ctx
173 create_temp_output(struct read_file *ctx) argument
227 struct read_file *ctx; local
[all...]
H A Dzip_source_pkware.c63 struct trad_pkware *ctx; local
75 if ((ctx=(struct trad_pkware *)malloc(sizeof(*ctx))) == NULL) {
80 zip_error_init(&ctx->error);
82 ctx->key[0] = KEY0;
83 ctx->key[1] = KEY1;
84 ctx->key[2] = KEY2;
85 decrypt(ctx, NULL, (const zip_uint8_t *)password, strlen(password), 1);
87 if ((s2=zip_source_layered(za, src, pkware_decrypt, ctx)) == NULL) {
88 pkware_free(ctx);
97 decrypt(struct trad_pkware *ctx, zip_uint8_t *out, const zip_uint8_t *in, zip_uint64_t len, int update_only) argument
128 decrypt_header(zip_source_t *src, struct trad_pkware *ctx) argument
167 struct trad_pkware *ctx; local
223 pkware_free(struct trad_pkware *ctx) argument
[all...]
H A Dzip_source_win32a.c42 static HANDLE _win32_open_a(_zip_source_win32_read_file_t *ctx);
43 static HANDLE _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
44 static int _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx);
85 _win32_open_a(_zip_source_win32_read_file_t *ctx) argument
87 return CreateFileA(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
92 _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) argument
96 len = strlen((const char *)ctx->fname) + 10;
99 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
103 if (sprintf((char *)*temp, "%s.%08x", (const char *)ctx->fname, value) != len - 1) {
112 _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx) argument
[all...]
H A Dzip_source_win32w.c42 static HANDLE _win32_open_w(_zip_source_win32_read_file_t *ctx);
43 static HANDLE _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
44 static int _win32_rename_temp_w(_zip_source_win32_read_file_t *ctx);
85 _win32_open_w(_zip_source_win32_read_file_t *ctx) argument
87 return CreateFileW(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
92 _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) argument
96 len = wcslen((const wchar_t *)ctx->fname) + 10;
99 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
103 if (swprintf((wchar_t *)*temp, len, L"%s.%08x", (const wchar_t *)ctx->fname, value) != len - 1) {
112 _win32_rename_temp_w(_zip_source_win32_read_file_t *ctx) argument
[all...]
H A Dzip_source_window.c63 struct window *ctx; local
70 if ((ctx=(struct window *)malloc(sizeof(*ctx))) == NULL) {
75 ctx->start = start;
76 ctx->end = start + length;
77 zip_stat_init(&ctx->stat);
78 zip_error_init(&ctx->error);
79 ctx->supports = (zip_source_supports(src) & ZIP_SOURCE_SUPPORTS_SEEKABLE) | (zip_source_make_command_bitmap(ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, -1));
80 ctx->needs_seek = (ctx
116 struct window *ctx; local
[all...]

Completed in 16 milliseconds

123