php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18509 CURLOPT_RETURNTRANSFER weird error
Submitted: 2002-07-23 14:53 UTC Modified: 2002-07-26 18:57 UTC
From: msopacua at idg dot nl Assigned:
Status: Closed Package: cURL related
PHP Version: 4CVS-2002-07-23 OS: BSD/OS 4.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 + 3 = ?
Subscribe to this entry?

 
 [2002-07-23 14:53 UTC] msopacua at idg dot nl
<?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 $ */

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-23 15:14 UTC] sniper@php.net
I could reproduce this one time..then it worked fine.
(on cmd-line)

 [2002-07-26 18:57 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 08:01:33 2024 UTC