#23539 [NEW]: curl_exec seems to produce strange results

From: Date: Thu, 08 May 2003 06:21:57 +0000
Subject: #23539 [NEW]: curl_exec seems to produce strange results
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39277@lists.php.net to get a copy of this message
From:             ramato at squiz dot net
Operating system: Redhat Linux 7.3
PHP version:      4.3.2RC2
PHP Bug Type:     cURL related
Bug description:  curl_exec seems to produce strange results

<?php
$url = 'http://www.php.net';
$ch = curl_init($url);
echo curl_error($ch);
curl_exec ($ch);
curl_close ($ch);
?>

Produces random text output for the script.

The configure command was 

'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-config-file-path=/etc' '--enable-versioning'
'--enable-inline-optimization' '--enable-memory-limit' '--with-xml'
'--with-gd' '--with-jpeg-dir=/usr' '--enable-exif'
'--with-bz2=/usr'
'--enable-bcmath' '--with-openssl' '--with-zlib=/usr'
'--enable-wddx'
'--enable-ftp' '--with-curl=/usr' '--with-gettext'
'--with-pspell=shared,/usr' '--with-mysql=shared,/usr'
'--enable-gd-native-ttf' '--with-freetype-dir=/usr'
'--with-ldap=shared'
'--with-pgsql=shared' '--enable-mbstring' '--with-pear'

The strange thing is apache doesn't appear to segfault and nothing is
logged to the php_error log file. Adjusting the error reporting to E_ALL
doesn't change this.

phpinfo reports that curl is enabled and the curl information line in
phpinfo has libcurl/7.10.4 OpenSSL/0.9.6b zlib/1.1.3
-- 
Edit bug report at http://bugs.php.net/?id=23539&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23539&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23539&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23539&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23539&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23539&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23539&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23539&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23539&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23539&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23539&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23539&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23539&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23539&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23539&r=gnused



Thread (11 messages)

« previous php.bugs (#39277) next »