Page 1 of 1

opening ssl connection

Posted: Mon Aug 21, 2006 11:10 pm
by littlegig
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi everyone,

I'm trying to open a ssl connection using fsockopen:

Code: Select all

$fp = fsockopen('ssl://esqa.moneris.com', 443, $errno, $errstr, 30);
if (!$fp) { echo "ERROR"; }
It works fine if I run the script on the command line.
However, calling the script from the browser I get a segmentation fault: child pid 16689 exit signal Segmentation fault (11)


I'm using PHP 4.4.3, configure command:
Configure Command => './configure' '--with-apxs=/virtual/apache/bin/apxs' '--prefix=/virtual/php' '--with-mysql' '--with-mcr
ypt' '--with-curl' '--enable-bcmath' '--with-gd' '--with-dbase' '--with-xml' '--with-sablot' '--enable-ftp' '--enable-gd-nati
ve-ttf' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-zlib' '--with-ttf' '--enable-mbstring' '--with-imap=../i
map-2004g/' '--with-gettext' '--with-openssl'


Any help would be much appreciated.

Thanks!


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]