You are not logged in.

#1 2010-10-12 08:51:28

Srigi
Member
Registered: 2007-08-04
Posts: 11

[SOLVED] PHP cURL doesn't resolve remote hosts after update

Hi, I updated whole system today. New versions of PHP & PHP components arrived (5.3.3-2). After this update cURL stops resolving remote hosts. I downgraded whole php package back to 5.3.3-1 and everything is working correctly. I'm using default configuration of PHP and Apache2, no DNS proxy. Here is test PHP code, where you can test behavior of broken cURL:

<pre>
<?php

$c = curl_init();

curl_setopt($c, CURLOPT_URL, 'http://www.google.com');
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, 'a=b');
$data = curl_exec($c);

var_dump($data);
var_dump(curl_error($c));

Last edited by Srigi (2010-10-14 08:38:39)

Offline

#2 2010-10-12 09:04:13

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: [SOLVED] PHP cURL doesn't resolve remote hosts after update

Works fine here. The only thing changed was using the built-in gd lib; so curl shouldn't be affected.

Offline

#3 2010-10-14 08:38:16

Srigi
Member
Registered: 2007-08-04
Posts: 11

Re: [SOLVED] PHP cURL doesn't resolve remote hosts after update

Apparently my problem is same as in this thread.

Offline

Board footer

Powered by FluxBB