php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43617 Error handler for pspell_config_personal()
Submitted: 2007-12-17 15:04 UTC Modified: 2008-02-05 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: alan at ridersite dot org Assigned:
Status: No Feedback Package: Pspell related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alan at ridersite dot org
New email:
PHP Version: OS:

 

 [2007-12-17 15:04 UTC] 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. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-17 21:29 UTC] alan at ridersite dot org
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.
 [2008-01-29 00:21 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2008-02-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-08-23 08:20 UTC] hoss dot zoll at yahoo dot com
When I use pspell_config_personal(). I see:"Fatal error: Call to undefined function pspell_config_personal()".
What am I do?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 10:01:29 2024 UTC