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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC