Add support for md4c (#1026)
parent
2d16d8be5d
commit
e03402caf5
|
@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
||||||
|
|
|
@ -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";
|
Loading…
Reference in New Issue