卷曲导致apache错误

I'm a bit stuck, curl causes segmentation faults in apache and I can't find out why.

I made a simple case, trying to understand :

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://google.fr');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,15);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT,30);
curl_exec($ch);

My conf, apache2, php5.3, ubuntu 11.10. Tried to reinstall php5-curl with no success

If you have ever seen this before, and have an idea please tell me !

Have you tried adding curl_close($ch); as last line in your example?

Still, it shouldn't segfault ;) Try running the code manually like this: php test.php