From:             alan at ridersite dot org
Operating system: Linux
PHP version:      5.2.5
PHP Bug Type:     Pspell related
Bug description:  Error handler for pspell_config_personal()

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 bug report at http://bugs.php.net/?id=43617&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43617&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43617&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43617&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43617&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43617&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43617&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43617&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43617&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43617&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43617&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43617&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43617&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43617&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43617&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43617&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43617&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43617&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43617&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43617&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43617&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43617&r=mysqlcfg

Reply via email to