Bug #12436 Updated: ftp_fput causes memory access violation
| From: | sniper@php.net | Date: | Fri, 05 Jul 2002 18:21:40 +0000 |
| Subject: | Bug #12436 Updated: ftp_fput causes memory access violation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13249@lists.php.net to get a copy of this message | ||
ID: 12436
Updated by: sniper@php.net
Reported By: Keita.Ito@indivicon.de
-Status: Open
+Status: Bogus
Bug Type: FTP related
Operating System: Win NT 4.0
PHP Version: 4.0.6
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-07-27 17:52:31] Keita.Ito@indivicon.de
By creating an file, writing anything to the file pointer and uploading
the file without rewinding the file pointer, ftp_fput sends about 40
bytes of data which I can't identify precisely. The following (useless)
snippet causes the reproducible effect:
$conn_id = ftp_connect ($host);
$login_result = ftp_login ($conn_id, $user,$pass);
$fp = tmpfile ();
fputs ($fp, 'foobar');
$upload = ftp_fput($conn_id, 'test', $fp, FTP_ASCII);
greetings, Keita
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12436&edit=1