php https wrapper giving Segmentation fault but not http
PHP: PHP 5.2.8-pl2-gentoo (cli) (built: Mar 11 2009 15:15:20)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
i've been having an interesting problem today w/ php. i was doing some system updates when my system monitor (written in php) stopped working. php wasn't in the list of things to be updated. i tried running it from command line and sure enough it's giving a Segmentation fault. I've tracked it down to whenever my scripts are making fopen() or file_get_contents(), etc calls to an https url. however, if i make the same request but instead use http it works fine.
i speculate it has something to do w/ a dependency and hence the complete system rebuild. however, before i did that i noticed that after i had upgraded the package: dev-libs/glib, was when php started to go wonky.
anyway, any help would be appreciated.
Not sure if this helps. Since http is working and not https, I am sure this is some issue with the openssl. Make sure your php.ini file is configured properly. Also make sure your PHP has all the required extension DLL to perform HTTPS operation.
i forgot to post but i already solved it. i had attempted to recompile openssl+php and i made sure the php.ini was proper to no avail. however, when i compared the exact same setup to a different server it was working fine. the only thing that was different was that the other server was running a newer version of the kernel. sure enough when i upgraded the kernel the seg fault went away.
|All times are GMT -5. The time now is 04:16 AM.|