gcc -o show_graphemes show_graphemes.c $(pkg-config --cflags --libs icu-uc)
./show_graphemes
| <?php | |
| // 1. 秘密鍵と CSR(証明書署名要求)のオプションを設定 | |
| $config = [ | |
| "config" => "/etc/ssl/openssl.cnf", // 必要に応じて openssl.cnf へのパスを調整 | |
| "private_key_bits" => 2048, // 鍵長 | |
| "private_key_type" => OPENSSL_KEYTYPE_RSA, // 鍵タイプ | |
| ]; | |
| // 2. 秘密鍵の生成 | |
| $privateKey = openssl_pkey_new($config); |
https://github.com/masakielastic/php-ext-striter
str_iter の実装には PCRE2 JIT が使われています。
php -d extension=modules/striter.so benchmark.php
| import { Php, Request } from '@platformatic/php-node'; | |
| import path from 'path'; | |
| import fs from 'fs'; | |
| const phpScript = process.argv[2]; | |
| if (!phpScript) { | |
| console.error('Usage: node cli.js <php-script>'); | |
| process.exit(1); | |
| } |