|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-17 21:29 UTC] alan at ridersite dot org
[2008-01-29 00:21 UTC] tony2001@php.net
[2008-02-05 01:00 UTC] php-bugs at lists dot php dot net
[2008-08-23 08:20 UTC] hoss dot zoll at yahoo dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 18:00:01 2025 UTC |
Description: ------------ Code is on a virtual host and it appears php was compiled with an obsolete version of aspell [.5]. This appears to be causing a fatal error if pspell_config_personal() is called. The error handler appears to send an empty error message to the client. And, pspell_config_personal() is not returning a binary response. All the other pspell() functions behave as expected with errors. is_writeable('crcustom.pws') and file_exists('crcustom.pws') tests work fine on the pws file. Reproduce code: --------------- ini_set("display_errors", "on"); error_reporting(E_ALL); $ps_config = pspell_config_create("en"); if(!pspell_config_personal($ps_config, $_SERVER['DOCUMENT_ROOT'] . "/dictionaries/crcustom.pws")) die("<div style=\"color:red; font-weight:bold\">Server spell function error. Could not open custom dictionary. Please report this error to the Webmaster.</div>"); if(!pspell_config_mode($ps_config, "PSPELL_FAST")) die("<div style=\"color:red; font-weight:bold\">Server spell function error. Could not configure. Please report this error to the Webmaster.</div>"); $dict = pspell_new_config($ps_config) or die("<div style=\"color:red; font-weight:bold\">Server spell function error. Could not open the dictionary [$dict]. Please report this error to the Webmaster.</div>"); echo "Everything loaded OK"; Expected result: ---------------- "Everything loaded OK" Actual result: -------------- Blank client page if pspell_config_personal() is active. "Everything loaded OK" if pspell_config_personal() is commented out.