|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69727 Remove timestamps from build to make it reproducible
Submitted: 2015-05-29 08:19 UTC Modified: 2015-09-16 16:16 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: thijs at debian dot org Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.6.9 OS:
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.
Block user comment
Status: Assign to:
Bug Type:
From: thijs at debian dot org
New email:
PHP Version: OS:


 [2015-05-29 08:19 UTC] thijs at debian dot org
The PHP build embeds timestamps into the generated binaries at build time. This makes the build not reproducible, as in that the same source code will not generate the bitwise exact same binaries.

Reproducible builds are important amongst others to verify the integrity of distributions. See:

We believe the value of the embedded timestamps is very limited. They do not indicate which release, commit or git branch has been built, only a date which in itself does not really say something. Therefore it seems safe to remove them.

Test script:

Expected result:
Building PHP two times yields bitwise identical binaries.

Actual result:
Building PHP two times yields bitwise different binaries.


php5_reproducible (last revision 2015-05-29 08:19 UTC by thijs at debian dot org)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-16 16:16 UTC]
To your knowledge is there anything else that prevents reproducible builds for PHP?
 [2017-12-15 21:04 UTC]
Automatic comment on behalf of
Log: Fix bug #69727: Support SOURCE_DATE_EPOCH for Build Date
 [2017-12-15 21:05 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Sep 23 04:01:25 2020 UTC