cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: CURLOPT_UPLOAD gives me a Seg Fault

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 17 Jun 2002 10:08:54 +0200 (MET DST)

On Mon, 17 Jun 2002, Raoul Mackle wrote:

> After more trial and error I noticed one thing. If you use this line in the
> PHP to initialise curl;
>
> $ch = curl_init( $url );
>
> Then did all the other nifty stuff it would give me the segmentation fault.
>
> If I did this (which I do now);
>
> $ch = curl_init();
> curl_setopt( $ch, CURLOPT_URL, $url );
>
> It works wonderfully now. Yaay. No more segmentation faults either :)

Ugh!

This truly looks like there are some problems in the PHP/CURL binding. I
suggest that you file a bug report in the PHP bug tracker at
http://bugs.php.net/ about this.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-17