php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #357 fseek doesn't move under NT
Submitted: 1998-05-06 19:29 UTC Modified: 1998-05-20 14:57 UTC
From: chrism at FOUR dot net Assigned: shane (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Release Candidate 4 OS: WindowsNT
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chrism at FOUR dot net
New email:
PHP Version: OS:

 

 [1998-05-06 19:29 UTC] chrism at FOUR dot net
As I mentioned lightly in bug report #265 back on 4/11/98,
I've been attempting to move a small program which is working
fine on a BSD box over to NT. Under both RC3 and RC4 NT binaries,
I find that the fseek call on an opened file does not move
the pointer.  Simple on the fly script follows:

$fp = fopen("some_file", "r");
fseek($fp, 20);
echo "pointer is at " . ftell($fp) . "\n";
fclose($fp);

ftell always reports 0 for me, and subsequent fgetc or fgets
return data from the beginning of the file.

This is only on the NT port.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-20 14:57 UTC] shane
Fixed.  However, read the change file on problems that may occure with fseek under windows.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC