From:             [EMAIL PROTECTED]
Operating system: Win NT 4.0
PHP version:      4.0.6
PHP Bug Type:     FTP related
Bug description:  ftp_fput causes memory access violation

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 bug report at: http://bugs.php.net/?id=12436&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to