Bug #51380 [NEW]: The function returns one byte less
| From: | jatubio at gmail dot com | Date: | Wed, 24 Mar 2010 12:11:41 +0000 |
| Subject: | Bug #51380 [NEW]: The function returns one byte less | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-148926@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows 2003 Server (IIS 6.0)
PHP version: 5.3.2
Package: Filesystem function related
Bug Type: Bug
Bug description:The function returns one byte less
Description:
------------
The function returns one byte less than file size. For example, a file with
a
size
of 4,268,766 bytes, 4,268,765 bytes returned.
Data:
System Windows NT 5.2 build 3790 (Windows Server 2003 Standard Edition
Service
Pack 2) i586
Build Date Mar 3 2010 20:44:33
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Server API CGI/FastCGI
Test script:
---------------
$file_size = filesize($path); // returns one byte less.
$file_size = filesize($path)+1; // I need to do this!!
--
Edit bug report at http://bugs.php.net/bug.php?id=51380&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51380&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51380&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51380&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51380&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51380&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51380&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51380&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51380&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51380&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51380&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51380&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51380&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51380&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51380&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51380&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51380&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51380&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51380&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51380&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51380&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51380&r=mysqlcfg