|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-06-07 16:49 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2018-06-07 16:49 UTC] cmb@php.net
[2018-06-07 19:49 UTC] yani at iliev dot me
-Status: Feedback
+Status: Assigned
[2018-06-07 19:49 UTC] yani at iliev dot me
[2018-06-07 21:13 UTC] cmb@php.net
-Status: Assigned
+Status: Open
-Assigned To: cmb
+Assigned To:
[2018-06-08 07:47 UTC] ab@php.net
-Assigned To:
+Assigned To: ab
[2018-06-09 09:32 UTC] ab@php.net
[2018-06-09 09:32 UTC] ab@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
Description: ------------ ftruncate returns false when the file being truncated is > 2GB and the offset is also > 2GB. This only occurs on Windows and not on Linux/Mac Test script: --------------- <?php $file_handle = fopen('test','cb'); if (false === $file_handle) { die('Cannot open test file :/'); } $truncate_offset = 2 * 1024 * 1024 * 1024 + 1; // 2GB + 1 $ftruncate_result = ftruncate($file_handle, $truncate_offset); if (false === $ftruncate_result) { die('Truncate has failed :/'); } fclose($file_handle);