Home
last modified time | relevance | path

Searched refs:ctx (Results 51 – 75 of 144) sorted by relevance

123456

/PHP-8.3/ext/standard/
H A Dbrowscap.c302 browscap_parser_ctx *ctx = arg; in php_browscap_parser_cb() local
303 browser_data *bdata = ctx->bdata; in php_browscap_parser_cb()
342 if (ctx->current_entry->parent) { in php_browscap_parser_cb()
376 entry = ctx->current_entry in php_browscap_parser_cb()
380 if (ctx->current_section_name) { in php_browscap_parser_cb()
403 browscap_parser_ctx ctx = {0}; in browscap_read_file() local
426 ctx.bdata = browdata; in browscap_read_file()
427 ctx.current_entry = NULL; in browscap_read_file()
428 ctx.current_section_name = NULL; in browscap_read_file()
437 if (ctx.current_section_name) { in browscap_read_file()
[all …]
H A Dsha1.h30 #define PHP_SHA1Init(ctx) PHP_SHA1InitArgs(ctx, NULL) argument
/PHP-8.3/ext/hash/tests/
H A Dhash_update_stream.phpt11 $ctx = hash_init('md5');
12 hash_update_stream($ctx, $fp);
13 echo hash_final($ctx);
H A Dhash_update_file.phpt10 $ctx = hash_init('md5');
11 var_dump(hash_update_file($ctx, $filePath));
12 echo hash_final($ctx);
H A Dhash_update_stream_basic_001.phpt22 $ctx = hash_init('md5');
23 hash_update_stream($ctx, $fp, 0);
24 echo hash_final($ctx) . "\n";
H A Dhash_serialize_004.phpt7 $ctx = hash_init("sha256");
9 $ctx->__unserialize($ctx->__serialize());
26 $ctx = unserialize(base64_decode($serial));
H A Dhash_serialize_003.phpt232 $ctx = unserialize(base64_decode($serial));
233 hash_update($ctx, "Can’t tell if this is true or dream");
234 $hash2 = hash_final($ctx);
248 $ctx = hash_init($algo);
249 hash_update($ctx, "I can't remember anything");
250 $serial = base64_encode(serialize($ctx));
/PHP-8.3/ext/gd/libgd/
H A Dgdtest.c26 gdIOCtxPtr ctx; in main() local
79 ctx = gdNewDynamicCtx (sz, iptr); in main()
80 im2 = gdImageCreateFromPngCtx (ctx); in main()
85 ctx->gd_free (ctx); in main()
112 ctx = gdNewDynamicCtx (sz, iptr); in main()
114 im2 = gdImageCreateFromGd2Ctx (ctx); in main()
120 ctx->gd_free (ctx); in main()
147 ctx = gdNewDynamicCtx (sz, iptr); in main()
149 im2 = gdImageCreateFromGdCtx (ctx); in main()
155 ctx->gd_free (ctx); in main()
H A Dgd_tga.c62 gdImagePtr gdImageCreateFromTgaCtx(gdIOCtx* ctx) in gdImageCreateFromTgaCtx() argument
80 if (read_header_tga(ctx, tga) < 0) { in gdImageCreateFromTgaCtx()
90 if (read_image_tga(ctx, tga) < 0) { in gdImageCreateFromTgaCtx()
146 int read_header_tga(gdIOCtx *ctx, oTga *tga) in read_header_tga() argument
151 if (gdGetBuf(header, sizeof(header), ctx) < 18) { in read_header_tga()
194 gdGetBuf(tga->ident, tga->identsize, ctx); in read_header_tga()
206 int read_image_tga( gdIOCtx *ctx, oTga *tga ) in read_image_tga() argument
253 if (gdGetBuf(conversion_buffer, image_block_size, ctx) != image_block_size) { in read_image_tga()
282 rle_size = gdGetBuf(conversion_buffer, image_block_size, ctx); in read_image_tga()
/PHP-8.3/Zend/Optimizer/
H A Dzend_optimizer.c47 if (!ctx->constants) { in zend_optimizer_collect_constant()
48 ctx->constants = zend_arena_alloc(&ctx->arena, sizeof(HashTable)); in zend_optimizer_collect_constant()
1010 zend_optimize_cfg(op_array, ctx); in zend_optimize()
1349 zend_optimize(op_array, ctx); in zend_optimize_op_array()
1369 &ctx->script->function_table, in zend_adjust_fcall_stack_size()
1479 zend_optimizer_ctx ctx; in zend_optimize_script() local
1483 ctx.script = script; in zend_optimize_script()
1484 ctx.constants = NULL; in zend_optimize_script()
1486 ctx.debug_level = debug_level; in zend_optimize_script()
1639 if (ctx.constants) { in zend_optimize_script()
[all …]
H A Doptimize_temp_vars_5.c42 void zend_optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *ctx) in zend_optimize_temporary_variables() argument
54 void *checkpoint = zend_arena_checkpoint(ctx->arena); in zend_optimize_temporary_variables()
57 taken_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); in zend_optimize_temporary_variables()
58 start_of_T = (zend_op **) zend_arena_alloc(&ctx->arena, T * sizeof(zend_op *)); in zend_optimize_temporary_variables()
59 map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int)); in zend_optimize_temporary_variables()
175 zend_arena_release(&ctx->arena, checkpoint); in zend_optimize_temporary_variables()
/PHP-8.3/ext/openssl/tests/
H A Dbug62890.phpt17 $ctx = stream_context_create(['ssl' => [
22 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
30 $ctx = stream_context_create(['ssl' => [
38 $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dbug73072.phpt13 $ctx = stream_context_create(['ssl' => [
21 $server = stream_socket_server('tls://127.0.0.1:64322', $errno, $errstr, $flags, $ctx);
39 $ctx = stream_context_create(['ssl' => $ctxArr]);
40 @stream_socket_client("tls://127.0.0.1:64322", $errno, $errstr, 1, $flags, $ctx);
H A Dbug68920.phpt36 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => true]]);
37 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
40 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => null]]);
41 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
44 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => []]]);
45 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
48 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => ['foo']]]);
49 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
/PHP-8.3/ext/openssl/
H A Dxp_ssl.c167 SSL_CTX *ctx; member
194 SSL_CTX *ctx; member
1431 SSL_CTX_free(ctx); in php_openssl_create_sni_server_ctx()
1438 SSL_CTX_free(ctx); in php_openssl_create_sni_server_ctx()
1442 return ctx; in php_openssl_create_sni_server_ctx()
1454 SSL_CTX *ctx; in php_openssl_enable_server_sni() local
1563 if (ctx == NULL) { in php_openssl_enable_server_sni()
1568 sslsock->sni_certs[i].ctx = ctx; in php_openssl_enable_server_sni()
2255 if (sslsock->ctx) { in php_openssl_sockop_close()
2364 xparam->outputs.client->ctx = stream->ctx; in php_openssl_tcp_sockop_accept()
[all …]
/PHP-8.3/ext/oci8/
H A Doci8_lob.c171 if ((*(ctx->lob_len) + lenp) > (ctx->alloc_len)) { in php_oci_lob_callback()
174 *(ctx->lob_len) = 0; in php_oci_lob_callback()
177 memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp); in php_oci_lob_callback()
179 *(*(ctx->lob_data) + *(ctx->lob_len)) = 0x00; in php_oci_lob_callback()
184 if ((*(ctx->lob_len) + lenp) > ctx->alloc_len) { in php_oci_lob_callback()
190 memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp); in php_oci_lob_callback()
197 *(ctx->lob_len) = 0; in php_oci_lob_callback()
242 php_oci_lob_ctx ctx; in php_oci_lob_read() local
255 ctx.lob_data = data; in php_oci_lob_read()
256 ctx.alloc_len = 0; in php_oci_lob_read()
[all …]
/PHP-8.3/ext/standard/tests/http/
H A Dgh8641.phpt18 $ctx = stream_context_create();
19 stream_context_set_params($ctx, array("notification" => "stream_notification_callback"));
27 $f = file_get_contents($uri, 0, $ctx);
H A Dbug69337.phpt20 $ctx = stream_context_create();
21 stream_context_set_params($ctx, array("notification" => "stream_notification_callback"));
30 $f = file_get_contents($uri, 0, $ctx);
H A Dbug75981.phpt18 $ctx = stream_context_create($options);
25 echo @file_get_contents($uri, false, $ctx);
/PHP-8.3/sapi/fuzzer/
H A Dgenerate_unserializehash_corpus.php7 $ctx = hash_init($algo); variable
10 $serialized = serialize($ctx);
/PHP-8.3/ext/standard/tests/streams/
H A Dbug44712.phpt5 $ctx = stream_context_get_default();
7 stream_context_set_params($ctx, array("options" => 1));
/PHP-8.3/ext/standard/tests/file/
H A Dfopen_variation6.phpt19 $ctx = stream_context_create();
20 $h = fopen($absfile, "r", true, $ctx);
25 $h = fopen($relfile, "r", true, $ctx);
/PHP-8.3/ext/soap/tests/bugs/
H A Dbug46427.phpt9 $ctx = stream_context_create();
11 'stream_context' => $ctx,
/PHP-8.3/ext/soap/
H A Dphp_schema.c136 load_schema(ctx, schema); in schema_load_file()
165 if (!ctx->sdl->types) { in load_schema()
169 if (!ctx->attributes) { in load_schema()
173 if (!ctx->attributeGroups) { in load_schema()
276 schema_attributeGroup(ctx->sdl, tns, trav, NULL, ctx); in load_schema()
280 schema_attribute(ctx->sdl, tns, trav, NULL, ctx); in load_schema()
2286 sdlPtr sdl = ctx->sdl; in schema_pass2()
2290 if (ctx->attributes) { in schema_pass2()
2295 if (ctx->attributeGroups) { in schema_pass2()
2315 if (ctx->attributes) { in schema_pass2()
[all …]
H A Dphp_schema.h22 int load_schema(sdlCtx *ctx, xmlNodePtr schema);
23 void schema_pass2(sdlCtx *ctx);

Completed in 66 milliseconds

123456