php5-imap core dumped

Olli Hauer ohauer at FreeBSD.org
Mon Apr 4 18:42:15 UTC 2011


On 2011-04-04 18:56, Jeremy Chadwick wrote:
> On Mon, Apr 04, 2011 at 02:49:07PM +0300, bsd at abc.pl.ua wrote:
>>> On 2011-04-02 06:00, bsd at abc.pl.ua wrote:
>>>>> On 2011-04-01 21:59, bsd at abc.pl.ua wrote:
>>>>>> Hello!!!
[...]
>>>>>>
>>>>>> If I include extension=imap.so,have
>>>>>>
>>>>>> phphostitt# php -m
>>>>>> Segmentation fault (core dumped)
>>>>>>
>>>>>> How to be here?
>>>>>>
>>>>>
>>>>> Please provide additional the output of the commands
>>>>>
>>>>> # cat /usr/local/etc/php/extensions.ini
>>>>> # httpd -V
>>>>> # php -v
>>>>>
>>>>> If php -v fails, then set a comment with `;' in the extensions.ini
>>>>> like this `;extension=imap.so'
>>>>>
>>>>> and try additional
>>>>> # php -m
>>>>>
>>>>>
[ ... ]
>>>
>>
>> Run fixphpextorder.sh
>>
>> Now all works.
>>
>> php -m
>> [PHP Modules]
>> bcmath
[...]
> 
> php -m will always show the modules in sorted order.  You can't rely on
> this command to determine what order the extensions were loaded.  You
> have to look at extensions.ini for that.


Yes, but with the previous order he was not able to fire the command
without segfault. I had the same issue a view years ago and it was
the order in php/extension.ini. With the informations I found on

- http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround [1]
- http://nerdstock.org/php_extensions [2]

I hacked together an updated version of the script from [1] which
includes the additional informations from [1] and [2] in hope it will
solve the problem.

Glad to know it worked in this case.




More information about the freebsd-apache mailing list