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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC