ID: 14142
Updated by: sterling
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: cURL related
Operating System: FreeBSD 4.1
PHP Version: 4.1.0RC2
New Comment:

fixed in 4.1.*

Previous Comments:
------------------------------------------------------------------------

[2001-11-20 06:47:29] [EMAIL PROTECTED]

Forgot the compile options :

 './configure' '--with-gd=/usr/home/domi4/src/gd-1.8.4' '--enable-exif' 
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--enable-gd-native-ttf' 
'--with-mysql=/usr/local' '--disable-pear' 
'--with-config-file-path=/usr/home/domi4/etc' '--enable-debug=no' 
'--enable-force-cgi-redirect=yes' '--with-zlib' '--with-openssl=/usr/local/ssl' 
'--with-curl=/usr/home/domi4/src/curl-7.9' '--with-dom=/usr/home/domi4/'

------------------------------------------------------------------------

[2001-11-20 06:43:36] [EMAIL PROTECTED]

When calling curl_exec twice with RETURNTRANSFER option there's a (reproductible) core 
dump. Here's a test case :

$ch=curl_init();
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_URL,'http://www.yahoo.com');
curl_exec($ch);
echo('this text is displayed');
curl_exec($ch);
echo('this text is not displayed (core dump instead)');

The problem shows up in 4.1.0RC1 AND 4.1.0RC2 (but not 4.0.6). If you remove the 
RETURNTRANSFER option then it works fine. I'm affraid I don't have the knowledge to 
compile a debug version and give more infos.

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14142&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to