php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25345 Add touch() after copy()
Submitted: 2003-09-01 14:17 UTC Modified: 2004-09-01 16:22 UTC
From: phpbugsspam at netebb dot com Assigned:
Status: Not a bug Package: PEAR related
PHP Version: 4CVS-2003-09-01 (stable) OS: Any
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: phpbugsspam at netebb dot com
New email:
PHP Version: OS:

 

 [2003-09-01 14:17 UTC] phpbugsspam at netebb dot com
Description:
------------
Here's the patch

Index: Installer.php
===================================================================
RCS file: /repository/php-src/pear/PEAR/Installer.php,v
retrieving revision 1.104
diff -u -r1.104 Installer.php
--- Installer.php       31 Aug 2003 16:41:27 -0000      1.104
+++ Installer.php       1 Sep 2003 19:15:56 -0000
@@ -230,6 +230,8 @@
                 return $this->raiseError("failed to write $dest_file",
                                          PEAR_INSTALLER_FAILED);
             }
+            $stat = stat($orig_file);
+            @touch($dest_file, $stat[9]);
             $this->log(3, "+ cp $orig_file $dest_file");
             if (isset($atts['md5sum'])) {
                 $md5sum = md5_file($dest_file);
@@ -963,6 +965,8 @@
                         $this->rollbackFileTransaction();
                         return $this->raiseError("failed to copy $bn to $copyto");
                     }
+                           $stat = stat($ext['file']);
+                           @touch($copyto, $stat[9]);
                     $pkginfo['filelist'][$bn] = array(
                         'role' => 'ext',
                         'installed_as' => $dest,


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-01 16:22 UTC] alan_k@php.net
can you move this on pear.php.net - none of the pear maintainers read bugs.php.net and it more likely the package maintainer will be able to help.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Feb 23 17:01:28 2020 UTC