File: 0003-Fix-string-_lastmodified.patch

package info (click to toggle)
php-pear 1%3A1.10.1%2Bsubmodules%2Bnotgz-9%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,600 kB
  • sloc: php: 51,665; ansic: 38,629; xml: 32,572; yacc: 677; pascal: 452; makefile: 122; sh: 116
file content (20 lines) | stat: -rw-r--r-- 647 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Date: Wed, 20 Apr 2016 06:43:11 +0100
Subject: Channel's _lastmodified is an int and not a string #52

Makes the build reproducible (dh_strip_nondeterminism works).

Bug: https://github.com/pear/pear-core/pull/52

diff --git a/PEAR/Registry.php b/PEAR/Registry.php
index 6103907..759b53f 100644
--- a/PEAR/Registry.php
+++ b/PEAR/Registry.php
@@ -1008,7 +1008,7 @@ class PEAR_Registry extends PEAR
         if ($lastmodified) {
             $info['_lastmodified'] = $lastmodified;
         } else {
-            $info['_lastmodified'] = date('r');
+            $info['_lastmodified'] = time();
         }
 
         fwrite($fp, serialize($info));