Add support for md4c (#1026)

master
Michele Locati 2024-12-02 17:13:15 +01:00 committed by GitHub
parent 2d16d8be5d
commit e03402caf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 0 deletions

View File

@ -52,6 +52,7 @@ lzf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
mailparse 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
maxminddb 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
mcrypt 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
md4c 8.0 8.1 8.2 8.3 8.4
memcache 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
memcached 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4
memprof 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4

27
scripts/tests/md4c Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env php
<?php
require_once __DIR__ . '/_bootstrap.php';
if (!function_exists('md4c_toHtml')) {
fwrite(STDERR, "The function md4c_toHtml() does not exist\n");
exit(1);
}
$input = "# Test\n";
$expected = "<h1>Test</h1>\n";
$actual = md4c_toHtml($input);
if ($actual !== $expected) {
fwrite(
STDERR,
<<<EOT
Failed to convert {$input}
Expected: {$expected}
Actual : {$actual}
EOT
);
exit(1);
}
echo "md4c_toHtml() works just fine.\n";