go to bug id or search bugs for
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.
all pspell_config_xx() segfault.
Add a Patch
Add a Pull Request
I've used pspell extensively with 0.5 lib and never seen a crash pertaining to the demonstrate code.
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).
It crashes for me too. I also have (a|p)spell 0.50.5
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.