#21873 [Fbk->NoF]: cURL not work with tmpfile
| From: | sniper@php.net | Date: | Mon, 10 Mar 2003 00:50:13 +0000 |
| Subject: | #21873 [Fbk->NoF]: cURL not work with tmpfile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35174@lists.php.net to get a copy of this message | ||
ID: 21873
Updated by: sniper@php.net
Reported By: SiberianGhost at hotmail dot com
-Status: Feedback
+Status: No Feedback
Bug Type: cURL related
Operating System: FreeBSD 4.7
PHP Version: 4.3.1-dev
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-02-27 09:58:05] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Appears to have been fixed, cannot replicate using latest CVS.
------------------------------------------------------------------------
[2003-02-12 23:31:28] sniper@php.net
Verified with this script:
<?php
$ch = curl_init("https://solo3.merita.fi/cgi-bin/SOLO0001");
curl_setopt($ch, CURLOPT_HEADER, 0);
$fp = tmpfile();
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_exec($ch);
curl_close($ch);
// fseek($fp,1,SEEK_SET); // uncomment this and it works..
fseek($fp,0,SEEK_SET);
$result = fgets($fp,1024);
fclose($fp);
var_dump($result);
?>
Outputs:
bool(false)
------------------------------------------------------------------------
[2003-02-12 03:33:25] SiberianGhost at hotmail dot com
After try php4-STABLE-200302120830
Nothing changed.
fseek($fp,0,SEEK_SET); not work.
Version 4.2.1 work correct
Config command:
./configure --prefix=/home/u6394/php --with-mysql=/usr/local
--with-zlib --with-config-file-path=/home/u6394/php43 --with-gd
--with-jpeg-dir=/usr/local --with-t1lib --disable-debug
--enable-force-cgi-redirect --with-mod_charset --without-pear
--disable-rpath --enable-sockets with-openssl
--with-curl=/home/u6394/curl
Module tested:
sapi/cgi/php
------------------------------------------------------------------------
[2003-02-10 12:56:16] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-01-25 03:39:14] SiberianGhost at hotmail dot com
It's fseek BUG
Whe i modify code to
fseek($fp,1,SEEK_SET);
fseek($fp,0,SEEK_SET);
All work correctly
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21873
--
Edit this bug report at http://bugs.php.net/?id=21873&edit=1