Home
last modified time | relevance | path

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

123456

/PHP-8.1/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-8.1/ext/hash/
H A Dhash_murmur.c60 PMurHash32_Process(&ctx->h, &ctx->carry, in, len); in PHP_MURMUR3AUpdate()
65 ctx->h = PMurHash32_Result(ctx->h, ctx->carry, ctx->len); in PHP_MURMUR3AFinal()
109 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
112 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3CInit()
114 memset(&ctx->carry, 0, sizeof ctx->carry); in PHP_MURMUR3CInit()
121 PMurHash128x86_Process(ctx->h, ctx->carry, in, len); in PHP_MURMUR3CUpdate()
127 PMurHash128x86_Result(ctx->h, ctx->carry, ctx->len, h); in PHP_MURMUR3CFinal()
181 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
184 memset(&ctx->h, 0, sizeof ctx->h); in PHP_MURMUR3FInit()
186 memset(&ctx->carry, 0, sizeof ctx->carry); in PHP_MURMUR3FInit()
[all …]
H A Dhash_xxhash.c43 memset(&ctx->s, 0, sizeof ctx->s); in PHP_XXH32Init()
52 XXH32_reset(&ctx->s, 0); in PHP_XXH32Init()
55 XXH32_reset(&ctx->s, 0); in PHP_XXH32Init()
82 && ctx->s.memsize < 16) { in php_hash_xxh32_unserialize()
107 memset(&ctx->s, 0, sizeof ctx->s); in PHP_XXH64Init()
116 XXH64_reset(&ctx->s, 0); in PHP_XXH64Init()
119 XXH64_reset(&ctx->s, 0); in PHP_XXH64Init()
160 memset(&ctx->s, 0, sizeof ctx->s); in _PHP_XXH3_Init()
190 func_init_secret(&ctx->s, ctx->secret, len); in _PHP_XXH3_Init()
195 func_init_seed(&ctx->s, 0); in _PHP_XXH3_Init()
[all …]
H A Dhash_sha3.c169 ctx->state[ctx->pos++] ^= *(buf++); in PHP_SHA3_Update()
172 if (ctx->pos >= block_size) { in PHP_SHA3_Update()
173 permute(ctx); in PHP_SHA3_Update()
174 ctx->pos = 0; in PHP_SHA3_Update()
186 ctx->state[ctx->pos++] ^= 0x06; in PHP_SHA3_Final()
188 permute(ctx); in PHP_SHA3_Final()
197 permute(ctx); in PHP_SHA3_Final()
213 && ctx->pos < block_size) { in php_sha3_unserialize()
224 PHP_SHA3_Init(ctx, bits); \
234 PHP_SHA3_Final(digest, ctx, \
[all …]
H A Dphp_hash_xxhash.h28 PHP_HASH_API void PHP_XXH32Init(PHP_XXH32_CTX *ctx, HashTable *args);
29 PHP_HASH_API void PHP_XXH32Update(PHP_XXH32_CTX *ctx, const unsigned char *in, size_t len);
30 PHP_HASH_API void PHP_XXH32Final(unsigned char digest[4], PHP_XXH32_CTX *ctx);
38 PHP_HASH_API void PHP_XXH64Init(PHP_XXH64_CTX *ctx, HashTable *args);
39 PHP_HASH_API void PHP_XXH64Update(PHP_XXH64_CTX *ctx, const unsigned char *in, size_t len);
40 PHP_HASH_API void PHP_XXH64Final(unsigned char digest[8], PHP_XXH64_CTX *ctx);
60 PHP_HASH_API void PHP_XXH3_64_Init(PHP_XXH3_64_CTX *ctx, HashTable *args);
61 PHP_HASH_API void PHP_XXH3_64_Update(PHP_XXH3_64_CTX *ctx, const unsigned char *in, size_t len);
62 PHP_HASH_API void PHP_XXH3_64_Final(unsigned char digest[8], PHP_XXH3_64_CTX *ctx);
67 PHP_HASH_API void PHP_XXH3_128_Init(PHP_XXH3_128_CTX *ctx, HashTable *args);
[all …]
H A Dphp_hash_sha.h32 #define PHP_SHA224Init(ctx) PHP_SHA224InitArgs(ctx, NULL) argument
45 #define PHP_SHA256Init(ctx) PHP_SHA256InitArgs(ctx, NULL) argument
58 #define PHP_SHA384Init(ctx) PHP_SHA384InitArgs(ctx, NULL) argument
71 #define PHP_SHA512Init(ctx) PHP_SHA512InitArgs(ctx, NULL) argument
76 #define PHP_SHA512_256Init(ctx) PHP_SHA512_256InitArgs(ctx, NULL) argument
81 #define PHP_SHA512_224Init(ctx) PHP_SHA512_224InitArgs(ctx, NULL) argument
H A Dphp_hash_murmur.h27 PHP_HASH_API void PHP_MURMUR3AInit(PHP_MURMUR3A_CTX *ctx, HashTable *args);
28 PHP_HASH_API void PHP_MURMUR3AUpdate(PHP_MURMUR3A_CTX *ctx, const unsigned char *in, size_t len);
29 PHP_HASH_API void PHP_MURMUR3AFinal(unsigned char digest[4], PHP_MURMUR3A_CTX *ctx);
39 PHP_HASH_API void PHP_MURMUR3CInit(PHP_MURMUR3C_CTX *ctx, HashTable *args);
40 PHP_HASH_API void PHP_MURMUR3CUpdate(PHP_MURMUR3C_CTX *ctx, const unsigned char *in, size_t len);
41 PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[16], PHP_MURMUR3C_CTX *ctx);
51 PHP_HASH_API void PHP_MURMUR3FInit(PHP_MURMUR3F_CTX *ctx, HashTable *args);
52 PHP_HASH_API void PHP_MURMUR3FUpdate(PHP_MURMUR3F_CTX *ctx, const unsigned char *in, size_t len);
53 PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[16], PHP_MURMUR3F_CTX *ctx);
/PHP-8.1/ext/hash/tests/
H A Dmurmurhash3_seed.phpt7 hash_update($ctx, "Two");
8 hash_update($ctx, " hashes");
9 hash_update($ctx, " meet");
10 hash_update($ctx, " in");
11 hash_update($ctx, " a");
12 hash_update($ctx, " bar.");
13 $h0 = hash_final($ctx);
20 hash_update($ctx, "Two");
24 hash_update($ctx, " a");
26 $h0 = hash_final($ctx);
[all …]
H A Dmurmurhash3.phpt19 $ctx = hash_init("murmur3a");
20 hash_update($ctx, "hello");
21 hash_update($ctx, " there");
22 $h0 = hash_final($ctx);
26 $ctx = hash_init("murmur3c");
27 hash_update($ctx, "hello");
28 hash_update($ctx, " there");
29 $h0 = hash_final($ctx);
34 hash_update($ctx, "hello");
35 hash_update($ctx, " there");
[all …]
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit_gdb.c205 ctx->p = p; in zend_gdbjit_strz()
216 ctx->p = p; in zend_gdbjit_uleb128()
226 ctx->p = p; in zend_gdbjit_sleb128()
279 sym->name = zend_gdbjit_strz(ctx, ctx->name); in zend_gdbjit_symtab()
299 #define DUV(x) (ctx->p = p, zend_gdbjit_uleb128(ctx, (x)), p = ctx->p)
300 #define DSV(x) (ctx->p = p, zend_gdbjit_sleb128(ctx, (x)), p = ctx->p)
301 #define DSTR(str) (ctx->p = p, zend_gdbjit_strz(ctx, (str)), p = ctx->p)
360 ctx->p = p; in zend_gdbjit_ehframe()
455 ctx->startp = ctx->p; in zend_gdbjit_initsect()
456 ctx->obj.sect[sect].ofs = (uintptr_t)((char *)ctx->p - (char *)&ctx->obj); in zend_gdbjit_initsect()
[all …]
/PHP-8.1/Zend/Optimizer/
H A Ddce.c442 zend_bitset_excl(ctx->instr_dead, opline - ctx->op_array->opcodes); in dce_instr()
535 context ctx; in dce_optimize_op_array() local
536 ctx.ssa = ssa; in dce_optimize_op_array()
545 ctx.phi_worklist = alloca(sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
546 memset(ctx.phi_worklist, 0, sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
551 ctx.instr_dead = alloca(sizeof(zend_ulong) * ctx.instr_worklist_len); in dce_optimize_op_array()
553 ctx.phi_dead = alloca(sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
554 memset(ctx.phi_dead, 0xff, sizeof(zend_ulong) * ctx.phi_worklist_len); in dce_optimize_op_array()
619 while (!zend_bitset_empty(ctx.instr_worklist, ctx.instr_worklist_len) in dce_optimize_op_array()
620 || !zend_bitset_empty(ctx.phi_worklist, ctx.phi_worklist_len)) { in dce_optimize_op_array()
[all …]
/PHP-8.1/ext/sockets/
H A Dconversions.c179 do_from_to_zval_err(&ctx->err, &ctx->keys, "user", fmt, ap); in do_from_zval_err()
188 do_from_to_zval_err(&ctx->err, &ctx->keys, "native", fmt, ap); in do_to_zval_err()
734 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()
1465 ser_context ctx; in from_zval_run_conversions() local
1474 memset(&ctx, 0, sizeof(ctx)); in from_zval_run_conversions()
1478 ctx.sock = sock; in from_zval_run_conversions()
1491 *err = ctx.err; in from_zval_run_conversions()
1508 res_context ctx; in to_zval_run_conversions() local
1515 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-8.1/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.c328 body(ctx, ctx->buffer, 64); in PHP_MD5Update()
351 body(ctx, ctx->buffer, 64); in PHP_MD5Final()
359 ctx->buffer[56] = ctx->lo; in PHP_MD5Final()
360 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final()
361 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final()
362 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final()
363 ctx->buffer[60] = ctx->hi; in PHP_MD5Final()
364 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final()
365 ctx->buffer[62] = ctx->hi >> 16; in PHP_MD5Final()
366 ctx->buffer[63] = ctx->hi >> 24; in PHP_MD5Final()
[all …]
/PHP-8.1/sapi/apache2handler/
H A Dsapi_apache2.c77 r = ctx->r; in ZEND_TSRMLS_CACHE_DEFINE()
171 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type)); in php_apache_sapi_send_headers()
187 r = ctx->r; in php_apache_sapi_read_post()
224 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
225 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
227 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
228 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
232 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
233 ctx->finfo.st_nlink = ctx->r->finfo.nlink; in php_apache_sapi_get_stat()
301 r = ctx->r; in php_apache_sapi_flush()
[all …]
/PHP-8.1/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-8.1/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-8.1/ext/zlib/
H A Dzlib.c200 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
204 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
216 ctx->Z.avail_in = ctx->buffer.used; in php_zlib_output_handler_ex()
217 ctx->Z.next_in = (Bytef *) ctx->buffer.data; in php_zlib_output_handler_ex()
236 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
238 ctx->buffer.free += ctx->buffer.used - ctx->Z.avail_in; in php_zlib_output_handler_ex()
239 ctx->buffer.used = ctx->Z.avail_in; in php_zlib_output_handler_ex()
330 if (ctx) { in php_zlib_output_handler_context_dtor()
572 if (ctx.out.data && ctx.out.free) { in PHP_FUNCTION()
580 RETVAL_STRINGL(ctx.out.data, ctx.out.used); in PHP_FUNCTION()
[all …]

Completed in 65 milliseconds

123456