|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-01 16:22 UTC] alan_k@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
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,