ID: 43617
Comment by: hoss dot zoll at yahoo dot com
Reported By: alan at ridersite dot org
Status: No Feedback
Bug Type: Pspell related
Operating System: Linux
PHP Version: 5.2.5
New Comment:
When I use pspell_config_personal(). I see:"Fatal error: Call to
undefined function pspell_config_personal()".
What am I do?
Previous Comments:
------------------------------------------------------------------------
[2008-02-05 01:00:01] 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-01-29 00:21:58] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2007-12-17 21:29:52] 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.
------------------------------------------------------------------------
[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