Home
last modified time | relevance | path

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

12345

/PHP-7.4/ext/gd/libgd/
H A Dgd_io.c50 (ctx->putC) (ctx, c); in gdPutC()
79 r = (ctx->getC) (ctx); in gdGetByte()
88 r = (ctx->getC) (ctx); in gdGetWord()
91 r = (ctx->getC) (ctx); in gdGetWord()
121 r = (ctx->getC) (ctx); in gdGetInt()
125 r = (ctx->getC) (ctx); in gdGetInt()
129 r = (ctx->getC) (ctx); in gdGetInt()
135 r = (ctx->getC) (ctx); in gdGetInt()
147 c = (ctx->getC) (ctx); in gdGetIntLSB()
154 c = (ctx->getC) (ctx); in gdGetIntLSB()
[all …]
H A Dgd_gif_out.c208 if( ctx->curx == ctx->Width ) { in BumpPixel()
282 memset(&ctx, 0, sizeof(ctx)); in GIFEncode()
297 ctx.CountDown = (long)ctx.Width * (long)ctx.Height; in GIFEncode()
315 ctx.curx = ctx.cury = 0; in GIFEncode()
530 ctx->maxcode = MAXCODE(ctx->n_bits = ctx->g_init_bits);
533 ctx->EOFCode = ctx->ClearCode + 1;
534 ctx->free_ent = ctx->ClearCode + 2;
645 ctx->cur_bits += ctx->n_bits;
657 if ( ctx->free_ent > ctx->maxcode || ctx->clear_flg ) {
661 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.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);
40 int gdGetInt(int *result, gdIOCtx *ctx);
43 int gdSeek(gdIOCtx *ctx, const int);
[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 …]
/PHP-7.4/ext/gd/
H A Dgd_ctx.c21 #define CTX_PUTC(c,ctx) ctx->putC(ctx, c) argument
40 if(ctx) { in _php_image_output_ctxfree()
41 efree(ctx); in _php_image_output_ctxfree()
59 if(ctx->data) { in _php_image_stream_ctxfree()
62 if(ctx) { in _php_image_stream_ctxfree()
63 efree(ctx); in _php_image_stream_ctxfree()
70 if(ctx->data) { in _php_image_stream_ctxfreeandclose()
74 if(ctx) { in _php_image_stream_ctxfreeandclose()
75 efree(ctx); in _php_image_stream_ctxfreeandclose()
166 if (!ctx) { in _php_image_output_ctx()
[all …]
/PHP-7.4/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()
737 if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) { in from_zval_write_sockaddr_aux()
1280 do_from_zval_err(ctx, in from_zval_write_ifindex()
1453 ser_context ctx; in from_zval_run_conversions() local
1462 memset(&ctx, 0, sizeof(ctx)); in from_zval_run_conversions()
1466 ctx.sock = sock; in from_zval_run_conversions()
1479 *err = ctx.err; in from_zval_run_conversions()
1496 res_context ctx; in to_zval_run_conversions() local
1503 memset(&ctx, 0, sizeof(ctx)); in to_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-7.4/ext/opcache/Optimizer/
H A Ddce.c405 zend_bitset_excl(ctx->instr_dead, opline - ctx->op_array->opcodes); in dce_instr()
488 context ctx; in dce_optimize_op_array() local
489 ctx.ssa = ssa; in dce_optimize_op_array()
498 ctx.phi_worklist = alloca(sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
499 memset(ctx.phi_worklist, 0, sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
504 ctx.instr_dead = alloca(sizeof(zend_ulong) * ctx.instr_worklist_len); in dce_optimize_op_array()
506 ctx.phi_dead = alloca(sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
507 memset(ctx.phi_dead, 0xff, sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
571 while (!zend_bitset_empty(ctx.instr_worklist, ctx.instr_worklist_len) in dce_optimize_op_array()
572 || !zend_bitset_empty(ctx.phi_worklist, ctx.phi_worklist_len)) { in dce_optimize_op_array()
[all …]
/PHP-7.4/ext/standard/
H A Dcrypt_sha256.c182 ctx->H[0] = a; in sha256_process_block()
183 ctx->H[1] = b; in sha256_process_block()
184 ctx->H[2] = c; in sha256_process_block()
185 ctx->H[3] = d; in sha256_process_block()
205 ctx->total[0] = ctx->total[1] = 0; in sha256_init_ctx()
236 sha256_process_block(ctx->buffer, bytes + pad + 8, ctx); in sha256_finish_ctx()
258 sha256_process_block(ctx->buffer, ctx->buflen & ~63, ctx); in sha256_process_bytes()
261 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
296 sha256_process_block(ctx->buffer, 64, ctx); in sha256_process_bytes()
298 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
[all …]
H A Dcrypt_sha512.c209 ctx->H[0] = a; in sha512_process_block()
210 ctx->H[1] = b; in sha512_process_block()
211 ctx->H[2] = c; in sha512_process_block()
212 ctx->H[3] = d; in sha512_process_block()
213 ctx->H[4] = e; in sha512_process_block()
214 ctx->H[5] = f; in sha512_process_block()
232 ctx->total[0] = ctx->total[1] = 0; in sha512_init_ctx()
285 sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx); in sha512_process_bytes()
329 sha512_process_block(ctx->buffer, 128, ctx); in sha512_process_bytes()
331 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
[all …]
H A Dmd5.c332 body(ctx, ctx->buffer, 64); in PHP_MD5Update()
355 body(ctx, ctx->buffer, 64); in PHP_MD5Final()
363 ctx->buffer[56] = ctx->lo; in PHP_MD5Final()
364 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final()
365 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final()
366 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final()
367 ctx->buffer[60] = ctx->hi; in PHP_MD5Final()
368 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final()
369 ctx->buffer[62] = ctx->hi >> 16; in PHP_MD5Final()
370 ctx->buffer[63] = ctx->hi >> 24; in PHP_MD5Final()
[all …]
H A Durl_scanner_ex.re65 if (ctx->tags)
301 ZSTR_VAL(ctx->arg.s)[ZSTR_LEN(ctx->arg.s)] = '\0';
302 if (!strcasecmp(ZSTR_VAL(ctx->arg.s), ctx->lookup_data)) {
310 append_modified_url(&ctx->val, &ctx->result, &ctx->url_app, PG(arg_separator).output);
312 smart_str_append_smart_str(&ctx->result, &ctx->val);
384 if (ctx->attr_val.s && ZSTR_LEN(ctx->attr_val.s)) {
461 …if ((ctx->lookup_data = zend_hash_str_find_ptr(ctx->tags, ZSTR_VAL(ctx->tag.s), ZSTR_LEN(ctx->tag.…
506 YYLIMIT = ZSTR_VAL(ctx->buf.s) + ZSTR_LEN(ctx->buf.s);
638 smart_str_append(&ctx->result, ctx->buf.s);
703 if (ctx->buf.s && ZSTR_LEN(ctx->buf.s)) {
[all …]
H A Dcrypt_blowfish.c477 R ^= data.ctx.P[N + 1]; \
498 R ^= data.ctx.P[N + 1]; \
507 L ^= data.ctx.P[0]; \
530 _BF_body_r(&data.ctx);
534 ptr = data.ctx.P; \
542 ptr = data.ctx.S[0]; \
665 BF_ctx ctx; in BF_crypt() member
706 memcpy(data.ctx.S, BF_init_state.S, sizeof(data.ctx.S)); in BF_crypt()
713 data.ctx.P[i] = L; in BF_crypt()
714 data.ctx.P[i + 1] = R; in BF_crypt()
[all …]
/PHP-7.4/sapi/apache2handler/
H A Dsapi_apache2.c73 r = ctx->r; in ZEND_TSRMLS_CACHE_DEFINE()
167 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type)); in php_apache_sapi_send_headers()
182 r = ctx->r; in php_apache_sapi_read_post()
215 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
216 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
218 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
219 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
223 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
224 ctx->finfo.st_nlink = ctx->r->finfo.nlink; in php_apache_sapi_get_stat()
292 r = ctx->r; in php_apache_sapi_flush()
[all …]
/PHP-7.4/ext/hash/
H A Dhash_sha3.c171 ctx->state[ctx->pos++] ^= *(buf++); in PHP_SHA3_Update()
174 if (ctx->pos >= block_size) { in PHP_SHA3_Update()
175 permute(ctx); in PHP_SHA3_Update()
176 ctx->pos = 0; in PHP_SHA3_Update()
188 ctx->state[ctx->pos++] ^= 0x06; in PHP_SHA3_Final()
190 permute(ctx); in PHP_SHA3_Final()
199 permute(ctx); in PHP_SHA3_Final()
210 PHP_SHA3_Init(ctx, bits); \
220 PHP_SHA3_Final(digest, ctx, \
266 efree(ctx->hashinstance); \
[all …]
/PHP-7.4/Zend/tests/
H A Dbug36214.phpt17 $ctx = new context;
18 $ctx->comment_preview = array();
19 $ctx->comment_preview[0] = 1;
20 $ctx->comment_preview[1] = 2;
21 var_dump($ctx->comment_preview);
26 $ctx->comment_preview = $comment_preview;
27 var_dump($ctx->comment_preview);
29 $ctx->comment_preview = new ArrayObject();
30 $ctx->comment_preview[0] = 1;
31 $ctx->comment_preview[1] = 2;
[all …]
/PHP-7.4/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-7.4/ext/zlib/
H A Dzlib.c71 efree(ctx); in deflate_rsrc_dtor()
81 efree(ctx); in inflate_rsrc_dtor()
151 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
155 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
167 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
168 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
186 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
188 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
189 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
523 if (ctx.out.data && ctx.out.free) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/openssl/tests/
H A Dsni_server.phpt12 $ctx = stream_context_create(['ssl' => [
21 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
39 $ctx = stream_context_create(['ssl' => $ctxArr]);
40 $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
41 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
45 $ctx = stream_context_create(['ssl' => $ctxArr]);
46 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
47 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
51 $ctx = stream_context_create(['ssl' => $ctxArr]);
52 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
[all …]
H A Dsni_server_key_cert.phpt12 $ctx = stream_context_create(['ssl' => [
30 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
48 $ctx = stream_context_create(['ssl' => $ctxArr]);
49 $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
50 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
54 $ctx = stream_context_create(['ssl' => $ctxArr]);
55 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
56 $cert = stream_context_get_options($ctx)['ssl']['peer_certificate'];
60 $ctx = stream_context_create(['ssl' => $ctxArr]);
61 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
[all …]
H A Dtls_wrapper_with_tls_v1.3.phpt15 $ctx = stream_context_create(['ssl' => [
20 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
31 $ctx = stream_context_create(['ssl' => [
39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
45 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
48 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
51 $client = @stream_socket_client("tlsv1.3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
54 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
57 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtls_wrapper.phpt15 $ctx = stream_context_create(['ssl' => [
20 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
31 $ctx = stream_context_create(['ssl' => [
39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
45 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
48 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
51 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
54 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
/PHP-7.4/ext/hash/tests/
H A Dhmac-md5.phpt6 $ctx = hash_init('md5',HASH_HMAC,str_repeat(chr(0x0b), 16));
7 hash_update($ctx, 'Hi There');
8 echo hash_final($ctx) . "\n";
10 $ctx = hash_init('md5',HASH_HMAC,'Jefe');
11 hash_update($ctx, 'what do ya want for nothing?');
12 echo hash_final($ctx) . "\n";

Completed in 110 milliseconds

12345