|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34457 fcut - removes byte from a file
Submitted: 2005-09-10 17:39 UTC Modified: 2020-01-05 11:45 UTC
Avg. Score:2.0 ± 1.4
Reproduced:0 of 1 (0.0%)
From: shadowturtle at vype dot de Assigned:
Status: Suspended Package: Filesystem function related
PHP Version: 4.4.0 OS: windows xp home sp2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-09-10 17:39 UTC] shadowturtle at vype dot de
I want a function like fcut; Remove bytes from a file: Begin to Length.

fcut ( FileHandle, Begin, Length);

Sorry for my bad english. I comes from German (Europe).

Reproduce code:
  // Content "plee.txt":
  // abcdefghijklmnopqrstuvwxyz

  $myfile = fopen( "plee.txt", 'r+' );
    fcut( $myfile, 10, 5);
  fclose( $myfile );

  // New Content:
  // abcdefghijpqrstuvwxyz


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:05 UTC]
-Package: Feature/Change Request +Package: Filesystem function related
 [2020-01-05 11:45 UTC]
-Status: Open +Status: Suspended
 [2020-01-05 11:45 UTC]
Removing files from a byte is an expensive and rarely needed
operation, and can be implemented in userland.  If you want to
have this as built-in function, please pursue the RFC process[1].

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 07:01:31 2024 UTC