Re: file_get_contents from HTTPS on Slackware 13.1

From: Date: Tue, 21 Feb 2012 21:38:57 +0000
Subject: Re: file_get_contents from HTTPS on Slackware 13.1
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-57925@lists.php.net to get a copy of this message
Weird. Curl is consistent. It does not work (in this case) without -k (--insecure) option or explicitly setting ca-bundle on all OS versions. Thanks for pointers, will remove --with-curlwrappers (marked experimental) from my PHP configure line. BTW what is the plan with --with-curlwrappers? Will this eventually replace current stream code as default wrapper for communication over the net? Thanks, b. On 21 February 2012 18:16, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > On 02/21/2012 06:54 AM, Bostjan Skufca wrote: > > Hi all, > > > > we've bumped into a possible bug where file_get_contents() returns empty > > string if we try to get contents from HTTPS source. This error only > occurs > > if PHP is compiled with --with-curlwrappers. > > > > Funny thing is this only happens on slackware 13.1, but not on 13.0 or > > older. I've checked ./configure and make output and they are almost > > identical, strace does not return anything meaningful. > > Environment is highly controlled by configuration management, software is > > built in the same way, except underlying OS versions (and very basic libs > > and tools versions) differ. > > > > Two questions: > > 1. Do any of you guys have any idea about this? > > 2. How to continue exploring deeper to discover what actually this error > is > > all about? > > Does a command line curl call to the same SSL URL work? > > -Rasmus >

« previous php.internals (#57925) next »