#23539 [NEW]: curl_exec seems to produce strange results
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)
- ramato at squiz dot net
- edink@php.net#23539 [Opn->Ver]: curl_exec seems to produce strange results
- iliaa@php.net#23539 [Ver]: curl_exec seems to produce strange results
- daniel at haxx dot se#23539 [Com]: curl_exec seems to produce strange results
- drhelper at mail dot ru#23539 [Com]: curl_exec seems to produce strange results
- iliaa@php.net#23539 [Ver]: curl_exec seems to produce strange results
- daniel at haxx dot se#23539 [Com]: curl_exec seems to produce strange results
- sterling@php.net#23539 [Ver->Csd]: curl_exec seems to produce strange results
- sniper@php.net#23539 [Csd]: curl_exec seems to produce strange results
- hliu at ap dot org#23539 [Com]: curl_exec seems to produce strange results
- mahesh at mediaibc dot com#23539 [Com]: curl_exec seems to produce strange results