php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17966 php "touch" function generating files with random filetime
Submitted: 2002-06-25 05:59 UTC Modified: 2002-06-25 06:01 UTC
From: jkkn at tv2 dot dk Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.2.1 OS: Linux
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: jkkn at tv2 dot dk
New email:
PHP Version: OS:

 

 [2002-06-25 05:59 UTC] jkkn at tv2 dot dk
Hey,

Since 4.2.1 the touch-function have been broken, the filetime is no longer set correctly.

This looks to come from the following patch:
http://cvs.php.net/diff.php/php4/ext/standard/filestat.c?r1=1.89&r2=1.89.2.1&ty=h&Horde=1923773a4dc6b3f3373b22c45e30b701

That caused the newtime point to point to NULL at the time where the filetime should be set if touch is called with one parameter only.

I do not get the patch at all and suggest a rollback of this.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-25 06:01 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 11:01:32 2024 UTC