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
 [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: Tue Apr 23 19:01:31 2024 UTC