Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 69) sorted by relevance

123

/PHP-5.5/ext/gd/libgd/
H A Dgd_io.c45 (ctx->putC) (ctx, c & 0xff); in Putchar()
50 (ctx->putC) (ctx, c); in gdPutC()
73 return ((ctx->getC) (ctx)); in gdGetC()
79 r = (ctx->getC) (ctx); in gdGetByte()
88 r = (ctx->getC) (ctx); in gdGetWord()
91 r = (ctx->getC) (ctx); in gdGetWord()
101 r = (ctx->getC) (ctx); in gdGetInt()
105 r = (ctx->getC) (ctx); in gdGetInt()
109 r = (ctx->getC) (ctx); in gdGetInt()
115 r = (ctx->getC) (ctx); in gdGetInt()
[all …]
H A Dgd_gif_out.c194 if( ctx->curx == ctx->Width ) { in BumpPixel()
268 memset(&ctx, 0, sizeof(ctx)); in GIFEncode()
283 ctx.CountDown = (long)ctx.Width * (long)ctx.Height; in GIFEncode()
301 ctx.curx = ctx.cury = 0; in GIFEncode()
516 ctx->maxcode = MAXCODE(ctx->n_bits = ctx->g_init_bits);
519 ctx->EOFCode = ctx->ClearCode + 1;
520 ctx->free_ent = ctx->ClearCode + 2;
631 ctx->cur_bits += ctx->n_bits;
643 if ( ctx->free_ent > ctx->maxcode || ctx->clear_flg ) {
647 ctx->maxcode = MAXCODE (ctx->n_bits = ctx->g_init_bits);
[all …]
H A Dgd_io_file.c33 gdIOCtx ctx; member
51 fileIOCtx *ctx; in gdNewFileCtx() local
55 ctx->f = f; in gdNewFileCtx()
57 ctx->ctx.getC = fileGetchar; in gdNewFileCtx()
58 ctx->ctx.putC = filePutchar; in gdNewFileCtx()
60 ctx->ctx.getBuf = fileGetbuf; in gdNewFileCtx()
61 ctx->ctx.putBuf = filePutbuf; in gdNewFileCtx()
63 ctx->ctx.tell = fileTell; in gdNewFileCtx()
64 ctx->ctx.seek = fileSeek; in gdNewFileCtx()
66 ctx->ctx.gd_free = gdFreeFileCtx; in gdNewFileCtx()
[all …]
H A Dgd_io_ss.c34 gdIOCtx ctx; member
52 ssIOCtxPtr ctx; in gdNewSSCtx() local
56 ctx->src = src; in gdNewSSCtx()
59 ctx->ctx.getC = sourceGetchar; in gdNewSSCtx()
60 ctx->ctx.getBuf = sourceGetbuf; in gdNewSSCtx()
62 ctx->ctx.putC = sinkPutchar; in gdNewSSCtx()
63 ctx->ctx.putBuf = sinkPutbuf; in gdNewSSCtx()
65 ctx->ctx.tell = NULL; in gdNewSSCtx()
66 ctx->ctx.seek = NULL; in gdNewSSCtx()
68 ctx->ctx.gd_free = gdFreeSsCtx; in gdNewSSCtx()
[all …]
H A Dgd_io_dp.c41 gdIOCtx ctx; member
72 dpIOCtx *ctx; in gdNewDynamicCtxEx() local
79 ctx->dp = dp; in gdNewDynamicCtxEx()
81 ctx->ctx.getC = dynamicGetchar; in gdNewDynamicCtxEx()
82 ctx->ctx.putC = dynamicPutchar; in gdNewDynamicCtxEx()
84 ctx->ctx.getBuf = dynamicGetbuf; in gdNewDynamicCtxEx()
85 ctx->ctx.putBuf = dynamicPutbuf; in gdNewDynamicCtxEx()
87 ctx->ctx.seek = dynamicSeek; in gdNewDynamicCtxEx()
88 ctx->ctx.tell = dynamicTell; in gdNewDynamicCtxEx()
90 ctx->ctx.gd_free = gdFreeDynamicCtx; in gdNewDynamicCtxEx()
[all …]
H A Dgd_io.h27 void Putword(int w, gdIOCtx *ctx);
28 void Putchar(int c, gdIOCtx *ctx);
30 void gdPutC(const unsigned char c, gdIOCtx *ctx);
32 void gdPutWord(int w, gdIOCtx *ctx);
33 void gdPutInt(int w, gdIOCtx *ctx);
35 int gdGetC(gdIOCtx *ctx);
37 int gdGetByte(int *result, gdIOCtx *ctx);
38 int gdGetWord(int *result, gdIOCtx *ctx);
39 int gdGetInt(int *result, gdIOCtx *ctx);
41 int gdSeek(gdIOCtx *ctx, const int);
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_source_deflate.c80 ctx->e[0] = ctx->e[1] = 0; in zip_source_deflate()
120 ret = deflate(&ctx->zstr, ctx->eof ? Z_FINISH : 0); in compress_read()
128 || (ctx->eof && ctx->zstr.avail_in == 0)) in compress_read()
141 zip_source_error(src, ctx->e, ctx->e+1); in compress_read()
147 ctx->size = ctx->zstr.total_in; in compress_read()
151 ctx->zstr.next_in = (Bytef *)ctx->buffer; in compress_read()
215 zip_source_error(src, ctx->e, ctx->e+1); in decompress_read()
222 ctx->zstr.next_in = (Bytef *)ctx->buffer; in decompress_read()
336 ctx->zstr.next_in = (Bytef *)ctx->buffer; in deflate_decompress()
376 free(ctx); in deflate_decompress()
[all …]
H A Dzip_source_crc.c57 struct crc *ctx; in zip_source_crc() local
64 if ((ctx=(struct crc *)malloc(sizeof(*ctx))) == NULL) { in zip_source_crc()
80 struct crc *ctx; in crc_read() local
87 ctx->eof = 0; in crc_read()
89 ctx->size = 0; in crc_read()
101 ctx->eof = 1; in crc_read()
110 ctx->e[1] = 0; in crc_read()
116 ctx->e[1] = 0; in crc_read()
124 ctx->crc = crc32(ctx->crc, data, n); in crc_read()
148 memcpy(data, ctx->e, sizeof(ctx->e)); in crc_read()
[all …]
H A Dzip_source_pkware.c86 if ((ctx=(struct trad_pkware *)malloc(sizeof(*ctx))) == NULL) { in zip_source_pkware()
91 ctx->e[0] = ctx->e[1] = 0; in zip_source_pkware()
99 pkware_free(ctx); in zip_source_pkware()
131 ctx->key[0] = CRC32(ctx->key[0], b); in decrypt()
132 ctx->key[1] = (ctx->key[1] + (ctx->key[0] & 0xff)) * 134775813 + 1; in decrypt()
134 ctx->key[2] = CRC32(ctx->key[2], b); in decrypt()
149 zip_source_error(src, ctx->e, ctx->e+1); in decrypt_header()
155 ctx->e[1] = 0; in decrypt_header()
171 ctx->e[1] = 0; in decrypt_header()
230 ctx->e[1] = 0; in pkware_decrypt()
[all …]
/PHP-5.5/ext/gd/
H A Dgd_ctx.c23 #define CTX_PUTC(c,ctx) ctx->putC(ctx, c) argument
44 if(ctx) { in _php_image_output_ctxfree()
45 efree(ctx); in _php_image_output_ctxfree()
67 if(ctx->data) { in _php_image_stream_ctxfree()
69 ctx->data = NULL; in _php_image_stream_ctxfree()
71 if(ctx) { in _php_image_stream_ctxfree()
72 efree(ctx); in _php_image_stream_ctxfree()
87 gdIOCtx *ctx = NULL; in _php_image_output_ctx() local
153 if (!ctx) { in _php_image_output_ctx()
193 (*func_p)(im, ctx); in _php_image_output_ctx()
[all …]
/PHP-5.5/ext/sockets/
H A Dconversions.c186 do_from_to_zval_err(&ctx->err, &ctx->keys, "user", fmt, ap); in do_from_zval_err()
195 do_from_to_zval_err(&ctx->err, &ctx->keys, "native", fmt, ap); in do_to_zval_err()
228 !ctx->err.has_error in from_array_iterate()
372 if (ctx->err.has_error) { in from_zval_write_int()
742 if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) { in from_zval_write_sockaddr_aux()
958 !ctx->err.has_error in from_zval_write_control_array()
968 &cur_offset, ctx); in from_zval_write_control_array()
1305 do_from_zval_err(ctx, in from_zval_write_ifindex()
1499 ctx.sock = sock; in from_zval_run_conversions()
1512 *err = ctx.err; in from_zval_run_conversions()
[all …]
H A Dconversions.h35 typedef void (from_zval_write_field)(const zval *arr_value, char *field, ser_context *ctx);
36 typedef void (to_zval_read_field)(const char *data, zval *zv, res_context *ctx);
46 void from_zval_write_int(const zval *arr_value, char *field, ser_context *ctx);
47 void to_zval_read_int(const char *data, zval *zv, res_context *ctx);
51 void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx);
55 void from_zval_write_ucred(const zval *container, char *ucred_c, ser_context *ctx);
56 void to_zval_read_ucred(const char *data, zval *zv, res_context *ctx);
60 size_t calculate_scm_rights_space(const zval *arr, ser_context *ctx);
61 void from_zval_write_fd_array(const zval *arr, char *int_arr, ser_context *ctx);
62 void to_zval_read_fd_array(const char *data, zval *zv, res_context *ctx);
[all …]
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c82 r = ctx->r; in php_apache_sapi_ub_write()
176 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type)); in php_apache_sapi_send_headers()
191 r = ctx->r; in php_apache_sapi_read_post()
220 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
221 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
222 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
223 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
234 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
235 ctx->finfo.st_nlink = ctx->r->finfo.nlink; in php_apache_sapi_get_stat()
304 r = ctx->r; in php_apache_sapi_flush()
[all …]
/PHP-5.5/ext/standard/
H A Dcrypt_sha256.c197 ctx->H[0] = a; in sha256_process_block()
198 ctx->H[1] = b; in sha256_process_block()
199 ctx->H[2] = c; in sha256_process_block()
200 ctx->H[3] = d; in sha256_process_block()
220 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
251 sha256_process_block(ctx->buffer, bytes + pad + 8, ctx); in sha256_finish_ctx()
273 sha256_process_block(ctx->buffer, ctx->buflen & ~63, ctx); in sha256_process_bytes()
276 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
311 sha256_process_block(ctx->buffer, 64, ctx); in sha256_process_bytes()
313 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
[all …]
H A Dcrypt_sha512.c224 ctx->H[0] = a; in sha512_process_block()
225 ctx->H[1] = b; in sha512_process_block()
226 ctx->H[2] = c; in sha512_process_block()
227 ctx->H[3] = d; in sha512_process_block()
228 ctx->H[4] = e; in sha512_process_block()
229 ctx->H[5] = f; in sha512_process_block()
247 ctx->total[0] = ctx->total[1] = 0; in sha512_init_ctx()
300 sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx); in sha512_process_bytes()
344 sha512_process_block(ctx->buffer, 128, ctx); in sha512_process_bytes()
346 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
[all …]
H A Dmd5.c329 body(ctx, ctx->buffer, 64); in PHP_MD5Update()
352 body(ctx, ctx->buffer, 64); in PHP_MD5Final()
360 ctx->buffer[56] = ctx->lo; in PHP_MD5Final()
361 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final()
362 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final()
363 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final()
364 ctx->buffer[60] = ctx->hi; in PHP_MD5Final()
365 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final()
366 ctx->buffer[62] = ctx->hi >> 16; in PHP_MD5Final()
369 body(ctx, ctx->buffer, 64); in PHP_MD5Final()
[all …]
H A Durl_scanner_ex.c220 if (strncasecmp(ctx->arg.c, ctx->lookup_data, ctx->arg.len) == 0) in tag_arg()
226 append_modified_url(&ctx->val, &ctx->result, &ctx->url_app, PG(arg_separator).output); in tag_arg()
228 smart_str_append(&ctx->result, &ctx->val); in tag_arg()
280 if (doit && ctx->val.c && ctx->lookup_data && *ctx->lookup_data) { in handle_form()
281 char *e, *p = zend_memnstr(ctx->val.c, "://", sizeof("://") - 1, ctx->val.c + ctx->val.len); in handle_form()
285 e = ctx->val.c + ctx->val.len; in handle_form()
302 smart_str_append(&ctx->result, &ctx->form_app); in handle_form()
322 if (zend_hash_find(ctx->tags, ctx->tag.c, ctx->tag.len, (void **) &ctx->lookup_data) == SUCCESS) in handle_tag()
349 YYLIMIT = ctx->buf.c + ctx->buf.len; in xx_mainloop()
946 smart_str_appendl(&ctx->result, ctx->buf.c, ctx->buf.len); in url_adapt_ext()
[all …]
H A Durl_scanner_ex.re156 if (strncasecmp(ctx->arg.c, ctx->lookup_data, ctx->arg.len) == 0)
162 append_modified_url(&ctx->val, &ctx->result, &ctx->url_app, PG(arg_separator).output);
164 smart_str_append(&ctx->result, &ctx->val);
216 if (doit && ctx->val.c && ctx->lookup_data && *ctx->lookup_data) {
217 char *e, *p = zend_memnstr(ctx->val.c, "://", sizeof("://") - 1, ctx->val.c + ctx->val.len);
221 e = ctx->val.c + ctx->val.len;
238 smart_str_append(&ctx->result, &ctx->form_app);
258 if (zend_hash_find(ctx->tags, ctx->tag.c, ctx->tag.len, (void **) &ctx->lookup_data) == SUCCESS)
285 YYLIMIT = ctx->buf.c + ctx->buf.len;
398 smart_str_appendl(&ctx->result, ctx->buf.c, ctx->buf.len);
[all …]
H A Dcrypt_blowfish.c474 R ^= data.ctx.P[N + 1]; \
495 R ^= data.ctx.P[N + 1]; \
504 L ^= data.ctx.P[0]; \
527 _BF_body_r(&data.ctx);
531 ptr = data.ctx.P; \
539 ptr = data.ctx.S[0]; \
662 BF_ctx ctx; in BF_crypt() member
703 memcpy(data.ctx.S, BF_init_state.S, sizeof(data.ctx.S)); in BF_crypt()
710 data.ctx.P[i] = L; in BF_crypt()
711 data.ctx.P[i + 1] = R; in BF_crypt()
[all …]
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c76 f = ctx->f; in php_apache_sapi_ub_write()
162 to_read = ctx->post_len - ctx->post_idx; in php_apache_sapi_read_post()
166 memcpy(buf, ctx->post_data + ctx->post_idx, n); in php_apache_sapi_read_post()
169 if (ctx->post_data) free(ctx->post_data); in php_apache_sapi_read_post()
181 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
182 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
183 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
184 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
195 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
196 ctx->finfo.st_nlink = ctx->r->finfo.nlink; in php_apache_sapi_get_stat()
[all …]
H A Dphp_functions.c48 php_struct *ctx; in php_apache_lookup_uri() local
54 ctx = SG(server_context); in php_apache_lookup_uri()
55 return ap_sub_req_lookup_uri(filename, ctx->f->r, ctx->f->next); in php_apache_lookup_uri()
155 php_struct *ctx; in PHP_FUNCTION() local
161 ctx = SG(server_context); in PHP_FUNCTION()
175 php_struct *ctx; in PHP_FUNCTION() local
195 php_struct *ctx; in PHP_FUNCTION() local
225 php_struct *ctx; in PHP_FUNCTION() local
239 ctx->f->r = ctx->f->r->prev; in PHP_FUNCTION()
253 php_struct *ctx; in PHP_FUNCTION() local
[all …]
/PHP-5.5/Zend/tests/
H A Dbug36214.phpt19 $ctx = new context;
20 $ctx->comment_preview = array();
21 $ctx->comment_preview[0] = 1;
22 $ctx->comment_preview[1] = 2;
23 var_dump($ctx->comment_preview);
28 $ctx->comment_preview = $comment_preview;
29 var_dump($ctx->comment_preview);
31 $ctx->comment_preview = new ArrayObject();
32 $ctx->comment_preview[0] = 1;
33 $ctx->comment_preview[1] = 2;
[all …]
/PHP-5.5/ext/standard/tests/streams/
H A Dstream_context_get_params_001.phpt6 $ctx = stream_context_create();
7 var_dump($ctx);
8 var_dump(stream_context_get_params($ctx));
10 var_dump(stream_context_set_option($ctx, "foo","bar","baz"));
11 var_dump(stream_context_get_params($ctx));
14 var_dump(stream_context_get_params($ctx));
17 var_dump(stream_context_get_params($ctx));
19 var_dump(stream_context_get_params($ctx));
20 var_dump(stream_context_get_options($ctx));
21 var_dump(stream_context_get_params($ctx));
[all …]
/PHP-5.5/ext/zlib/
H A Dzlib.c130 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
134 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
146 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
147 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
165 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
167 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
168 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
251 return ctx; in php_zlib_output_handler_context_init()
260 if (ctx) { in php_zlib_output_handler_context_dtor()
508 if (ctx.out.data && ctx.out.free) { in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/hash/tests/
H A Dhmac-md5.phpt8 $ctx = hash_init('md5',HASH_HMAC,str_repeat(chr(0x0b), 16));
9 hash_update($ctx, 'Hi There');
10 echo hash_final($ctx) . "\n";
12 $ctx = hash_init('md5',HASH_HMAC,'Jefe');
13 hash_update($ctx, 'what do ya want for nothing?');
14 echo hash_final($ctx) . "\n";

Completed in 68 milliseconds

123