From: mkellogg at wordreference dot com Operating system: Windows 2003 PHP version: 4.3.11 PHP Bug Type: Pspell related Bug description: pspell stops working under increased load
Description: ------------ I have tried this under IIS and Apache on Windows 2003. The script works fine in testing, but once I put it in production on the server, it stops working within a few minutes. Using latest version of Aspell 0.50.3 Reproduce code: --------------- <?php // my code was longer than this, but this is the jist of it. // Original code: http://forum.wordreference.com/wr_spelling/iframe5.txt pspell_config_create("en"); $pspell_link = pspell_new("en","","","", PSPELL_FAST); if (!pspell_check($pspell_link, $_GET['word'])) { $suggestions = pspell_suggest($pspell_link, $_GET['word']); foreach ($suggestions as $key => $suggestion) { echo "$suggestion<br />"; } } ?> Expected result: ---------------- Spelling suggestions. :) Actual result: -------------- User: A page that hangs. Apache's error message: PHP Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en". in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\iframe5.php on line 4 Apache often crashes as a result, too. IIS error message as seen by Firefox users: PHP has encountered an Access Violation at ... -- Edit bug report at http://bugs.php.net/?id=33095&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33095&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33095&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33095&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33095&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33095&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33095&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33095&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33095&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33095&r=support Expected behavior: http://bugs.php.net/fix.php?id=33095&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33095&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33095&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33095&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33095&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33095&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33095&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33095&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33095&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33095&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33095&r=mysqlcfg
