ID:               43617
 User updated by:  alan at ridersite dot org
 Reported By:      alan at ridersite dot org
 Status:           Open
 Bug Type:         Pspell related
 Operating System: Linux
 PHP Version:      5.2.5
 New Comment:

Re: "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 aspell version is not causing an error.  I installed the same code
on another server with the same OS, Apache, PHP 5.2.5, etc. and it works
fine with aspell .50.x .

However, I'm still getting the problem with error handling as I
described.


Previous Comments:
------------------------------------------------------------------------

[2007-12-17 15:04:32] alan at ridersite dot org

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. 



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43617&edit=1

Reply via email to