mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
Add enchant to 7.4 and 8.0
This commit is contained in:
30
tests/mods/modules/enchant/enchant-aspell.php
Normal file
30
tests/mods/modules/enchant/enchant-aspell.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This page should print 'OK' if everything works,
|
||||
* 'FAIL' or nothing if an error occured.
|
||||
*/
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
|
||||
$backend = 'aspell';
|
||||
|
||||
$tag = 'en_US';
|
||||
if (($r = enchant_broker_init()) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_init()';
|
||||
exit(1);
|
||||
}
|
||||
if (($bprovides = enchant_broker_describe($r)) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_describe()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
foreach ($bprovides as $be) {
|
||||
if ($be['name'] == $backend) {
|
||||
echo 'OK';
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
echo 'FAIL: "'. $backend . '" not available';
|
||||
exit(1);
|
||||
30
tests/mods/modules/enchant/enchant-hspell.php
Normal file
30
tests/mods/modules/enchant/enchant-hspell.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This page should print 'OK' if everything works,
|
||||
* 'FAIL' or nothing if an error occured.
|
||||
*/
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
|
||||
$backend = 'hspell';
|
||||
|
||||
$tag = 'en_US';
|
||||
if (($r = enchant_broker_init()) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_init()';
|
||||
exit(1);
|
||||
}
|
||||
if (($bprovides = enchant_broker_describe($r)) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_describe()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
foreach ($bprovides as $be) {
|
||||
if ($be['name'] == $backend) {
|
||||
echo 'OK';
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
echo 'FAIL: "'. $backend . '" not available';
|
||||
exit(1);
|
||||
30
tests/mods/modules/enchant/enchant-ispell.php
Normal file
30
tests/mods/modules/enchant/enchant-ispell.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This page should print 'OK' if everything works,
|
||||
* 'FAIL' or nothing if an error occured.
|
||||
*/
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
|
||||
$backend = 'ispell';
|
||||
|
||||
$tag = 'en_US';
|
||||
if (($r = enchant_broker_init()) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_init()';
|
||||
exit(1);
|
||||
}
|
||||
if (($bprovides = enchant_broker_describe($r)) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_describe()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
foreach ($bprovides as $be) {
|
||||
if ($be['name'] == $backend) {
|
||||
echo 'OK';
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
echo 'FAIL: "'. $backend . '" not available';
|
||||
exit(1);
|
||||
30
tests/mods/modules/enchant/enchant-myspell.php
Normal file
30
tests/mods/modules/enchant/enchant-myspell.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This page should print 'OK' if everything works,
|
||||
* 'FAIL' or nothing if an error occured.
|
||||
*/
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
|
||||
$backend = 'myspell';
|
||||
|
||||
$tag = 'en_US';
|
||||
if (($r = enchant_broker_init()) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_init()';
|
||||
exit(1);
|
||||
}
|
||||
if (($bprovides = enchant_broker_describe($r)) === FALSE) {
|
||||
echo 'FAIL: enchant_broker_describe()';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
foreach ($bprovides as $be) {
|
||||
if ($be['name'] == $backend) {
|
||||
echo 'OK';
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
echo 'FAIL: "'. $backend . '" not available';
|
||||
exit(1);
|
||||
Reference in New Issue
Block a user