[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    [PHP-DEV] Bug #14142 Updated: curl_exec called twice crash
From:       sterling () php ! net
Date:       2001-12-31 15:42:26
[Download RAW message or body]

ID: 14142
Updated by: sterling
Reported By: chassaing@domisys.com
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] chassaing@domisys.com

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] chassaing@domisys.com

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: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic