Bug #12436: ftp_fput causes memory access violation
| From: | Keita dot Ito at indivicon dot de | Date: | Fri, 27 Jul 2001 21:52:31 +0000 |
| Subject: | Bug #12436: ftp_fput causes memory access violation | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61278@lists.php.net to get a copy of this message | ||
From: Keita.Ito@indivicon.de
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