Bug #18509: CURLOPT_RETURNTRANSFER weird error
| From: | msopacua at idg dot nl | Date: | Tue, 23 Jul 2002 18:53:22 +0000 |
| Subject: | Bug #18509: CURLOPT_RETURNTRANSFER weird error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14929@lists.php.net to get a copy of this message | ||
From: msopacua@idg.nl
Operating system: BSD/OS 4.2
PHP version: 4CVS-2002-07-23
PHP Bug Type: cURL related
Bug description: CURLOPT_RETURNTRANSFER weird error
<?php
$url = 'http://www.php.net/';
$ch = curl_init($url);
if( !curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1))
{
$error = curl_error($ch);
$errno = curl_errno($ch);
print("Could not set CURLOPT_RETURNTRANSFER (" .
CURLOPT_RETURNTRANSFER .") because of error <$error> ($errno)\n");
}
else
{
print("OK");
}
?>
Output:
$ ../cvs/php4/sapi/cli/php -f ../cvs/php4/test_curl.php
Could not set CURLOPT_RETURNTRANSFER (19913) because of error <>
(136635288)
Config:
curl 7.9 (i386-pc-bsdi4.2) libcurl 7.9 (OpenSSL 0.9.6b) (ipv6 enabled)
#!/bin/sh
./configure \
--prefix=/home/mdev/local \
--enable-cli \
--with-config-file-path=/home/mdev/local/etc \
--disable-short-tags \
--enable-pear \
--disable-debug \
--with-zlib-dir=/weblib/local \
--with-openssl=/weblib/local \
--with-mysql=/weblib/local \
--enable-bcmath \
--enable-calendar \
--with-curl=/weblib/local \
--with-mhash=/weblib/local \
--with-pgsql=/pgsql \
--enable-socket \
--with-zip=/weblib/local \
--enable-xslt \
--with-xslt-sablot=/home/mdev/local \
--with-expat-dir=/weblib/local \
--with-sablot-js=/weblib/local \
--with-iconv=/home/mdev/local \
--enable-sysvsem \
--enable-sysvshm \
--enable-ftp
$ grep '\$Id:' ../cvs/php4/ext/curl/*.[ch]
../cvs/php4/ext/curl/curl.c:/* $Id: curl.c,v 1.115 2002/07/11 02:31:38
sniper Exp $ */
../cvs/php4/ext/curl/php_curl.h:/* $Id: php_curl.h,v 1.27 2001/12/11
15:28:58 sebastian Exp $ */
--
Edit bug report at http://bugs.php.net/?id=18509&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18509&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18509&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18509&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18509&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18509&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18509&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18509&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18509&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18509&r=globals