|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34456 [PATCH] pspell extension segfaults with aspell 0.50.x
Submitted: 2005-09-10 14:49 UTC Modified: 2005-09-12 18:35 UTC
From: Assigned:
Status: Closed Package: Pspell related
PHP Version: 5CVS-2005-09-10 (CVS) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
13 + 46 = ?
Subscribe to this entry?

 [2005-09-10 14:49 UTC]
The pspell extension segfaults with (at least) aspell 0.50.x. Although aspell 0.60.x doesn't, there is a problem in PHP code.


Reproduce code:
all pspell_config_xx() segfault.
pspell_config_mode($p, PSPELL_FAST);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-11 19:07 UTC]
I've used pspell extensively with 0.5 lib and never seen a crash pertaining to the demonstrate code. 
 [2005-09-11 20:25 UTC]
I've tested with aspell 0.50.5 and it produces the following (without my patch):

My patch fixes these problems. And it makes sense. PHP is passing a Speller* pointer, where it should be passing a Config* to pspell_manager_config().
I've "wasted" a couple of hours tracking down this bug in the aspell sources, and I think that this bug might not happen in all setups, depending on the compiler (because of some magic C++ upcasting).
 [2005-09-12 08:44 UTC]
It crashes for me too. I also have (a|p)spell 0.50.5
 [2005-09-12 18:35 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 18:01:32 2024 UTC