|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12436 ftp_fput causes memory access violation
Submitted: 2001-07-27 17:52 UTC Modified: 2002-07-05 14:21 UTC
From: Keita dot Ito at indivicon dot de Assigned:
Status: Not a bug Package: FTP related
PHP Version: 4.0.6 OS: Win NT 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Keita dot Ito at indivicon dot de
New email:
PHP Version: OS:


 [2001-07-27 17:52 UTC] Keita dot Ito at indivicon dot 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-05 14:21 UTC]
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

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.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Nov 26 12:03:57 2022 UTC