mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Add generate_mbstring_dict.php
Forgot to git add it previously.
This commit is contained in:
parent
1584352e19
commit
9e87be4395
1 changed files with 12 additions and 0 deletions
12
sapi/fuzzer/generate_mbstring_dict.php
Normal file
12
sapi/fuzzer/generate_mbstring_dict.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
if (!extension_loaded('mbstring')) {
|
||||
echo "Skipping mbstring dictionary generation\n";
|
||||
return;
|
||||
}
|
||||
|
||||
$dict = "";
|
||||
foreach (mb_list_encodings() as $encoding) {
|
||||
$dict .= "\"" . $encoding . ",\"\n";
|
||||
}
|
||||
file_put_contents(__DIR__ . "/dict/mbstring", $dict);
|
Loading…
Add table
Add a link
Reference in a new issue