[MacPorts] #36187: php5-curl 5.3.15 does nothing when I call curl_exec()
MacPorts
noreply at macports.org
Mon Sep 17 08:39:35 PDT 2012
#36187: php5-curl 5.3.15 does nothing when I call curl_exec()
--------------------------------+--------------------------------
Reporter: yorirou+macports@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port:
--------------------------------+--------------------------------
Hi
After recent updates, I have found out that the php5-curl extension does
not work. This means that it does not sends requests.
Example code:
{{{
<?php
error_reporting(E_ALL);
$handle = curl_init();
$curl_options = array(
CURLOPT_COOKIEJAR => NULL,
CURLOPT_URL => 'http://apple.com/',
CURLOPT_FOLLOWLOCATION => FALSE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_HEADER => FALSE,
);
curl_setopt_array($handle, $curl_options);
$content = curl_exec($handle);
curl_close($handle);
print $content;
}}}
This returns nothing (no content, no errors in any logs) on my machine,
but it returns content on any other servers. This breaks almost all sites
which I work on.
--
Ticket URL: <https://trac.macports.org/ticket/36187>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list