MR~TNT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-pspell_1.0.1-1.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-pspell_1.0.1-1.el8
/
tests
/
ðŸ“
..
📄
001.phpt
(2.27 KB)
📄
002.phpt
(626 B)
📄
003.phpt
(1.04 KB)
📄
004.phpt
(628 B)
📄
005.phpt
(1.08 KB)
ðŸ“
setup
📄
wordlist.txt
(56 B)
Editing: 005.phpt
--TEST-- pspell configs --EXTENSIONS-- pspell --SKIPIF-- <?php if (!@pspell_new('en')) die('skip English dictionary is not available'); if (getenv('SKIP_ASAN')) die('xleak pspell leaks memory for invalid dicationaries'); ?> --FILE-- <?php $wordlist = __DIR__.'/wordlist.txt'; var_dump(pspell_new_personal(__FILE__, 'en')); $p = pspell_new_personal($wordlist, 'en'); var_dump(pspell_check($p, 'dfnvnsafksfksf')); echo "--\n"; $cfg = pspell_config_create('en'); var_dump(pspell_config_personal($cfg, "$wordlist.tmp")); $p = pspell_new_config($cfg); copy($wordlist, "$wordlist.tmp"); var_dump(pspell_check($p, 'ola')); var_dump(pspell_add_to_personal($p, 'ola')); var_dump(pspell_check($p, 'ola')); echo "--\n"; var_dump(pspell_save_wordlist($p)); var_dump(strpos(file_get_contents("$wordlist.tmp"), 'ola') !== FALSE); unlink("$wordlist.tmp"); ?> --EXPECTF-- Warning: pspell_new_personal(): PSPELL couldn't open the dictionary. reason: The file "%s005.php" is not in the proper format. in %s005.php on line 5 bool(false) bool(true) -- bool(true) bool(false) bool(true) bool(true) -- bool(true) bool(true)
Upload File
Create Folder