Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57925 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67149 invoked from network); 21 Feb 2012 21:39:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2012 21:39:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=bostjan@a2o.si; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bostjan@a2o.si; sender-id=pass Received-SPF: pass (pb1.pair.com: domain a2o.si designates 195.246.8.45 as permitted sender) X-PHP-List-Original-Sender: bostjan@a2o.si X-Host-Fingerprint: 195.246.8.45 wizard.servers.creatim.net Received: from [195.246.8.45] ([195.246.8.45:52983] helo=wizard.servers.creatim.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/E0-48952-4FE044F4 for ; Tue, 21 Feb 2012 16:39:02 -0500 Received: from undisclosed (undisclosed [127.0.0.254]) (Authenticated sender: undisclosed) by wizard.servers.creatim.net (Postfix) with ESMTPSA id CE6EC730660 for ; Tue, 21 Feb 2012 22:38:57 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.3 at wizard Received: by wibhm4 with SMTP id hm4so4736374wib.29 for ; Tue, 21 Feb 2012 13:38:57 -0800 (PST) Received-SPF: pass (google.com: domain of bostjan@a2o.si designates 10.180.93.194 as permitted sender) client-ip=10.180.93.194; Authentication-Results: mr.google.com; spf=pass (google.com: domain of bostjan@a2o.si designates 10.180.93.194 as permitted sender) smtp.mail=bostjan@a2o.si Received: from mr.google.com ([10.180.93.194]) by 10.180.93.194 with SMTP id cw2mr29102603wib.0.1329860337122 (num_hops = 1); Tue, 21 Feb 2012 13:38:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.93.194 with SMTP id cw2mr24234697wib.0.1329860337105; Tue, 21 Feb 2012 13:38:57 -0800 (PST) Received: by 10.180.106.161 with HTTP; Tue, 21 Feb 2012 13:38:57 -0800 (PST) In-Reply-To: <4F43D15F.4010905@lerdorf.com> References: <4F43D15F.4010905@lerdorf.com> Date: Tue, 21 Feb 2012 22:38:57 +0100 Message-ID: To: Rasmus Lerdorf Cc: PHP Internals List Content-Type: multipart/alternative; boundary=f46d043be164fe7cd204b9803c8b Subject: Re: [PHP-DEV] file_get_contents from HTTPS on Slackware 13.1 From: bostjan@a2o.si (Bostjan Skufca) --f46d043be164fe7cd204b9803c8b Content-Type: text/plain; charset=ISO-8859-1 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 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 > --f46d043be164fe7cd204b9803c8b--