1 From: Thijs Kinkhorst <thijs@debian.org>
2 Date: Wed, 15 Jun 2016 09:18:03 +0200
3 Subject: Add patch to remove build timestamps from generated binaries.
6 ext/standard/info.c | 1 -
7 sapi/apache2handler/config.m4 | 15 +++------------
8 sapi/cgi/cgi_main.c | 4 ++--
9 sapi/cli/php_cli.c | 4 ++--
10 sapi/fpm/fpm/fpm_main.c | 4 ++--
11 sapi/phpdbg/phpdbg.c | 4 +---
12 6 files changed, 10 insertions(+), 22 deletions(-)
14 --- a/ext/standard/info.c
15 +++ b/ext/standard/info.c
16 @@ -830,7 +830,6 @@ PHPAPI void php_print_info(int flag)
17 php_info_print_box_end();
18 php_info_print_table_start();
19 php_info_print_table_row(2, "System", ZSTR_VAL(php_uname));
20 - php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);
22 php_info_print_table_row(2, "Compiler", COMPILER);
24 --- a/sapi/apache2handler/config.m4
25 +++ b/sapi/apache2handler/config.m4
26 @@ -67,18 +67,9 @@ if test "$PHP_APXS2" != "no"; then
29 APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
30 - if test -z `$APXS -q SYSCONFDIR`; then
31 - INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
32 - $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
35 - APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
36 - INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
37 - \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
38 - $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
39 - -S SYSCONFDIR='$APXS_SYSCONFDIR' \
42 + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
43 + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
48 --- a/sapi/cgi/cgi_main.c
49 +++ b/sapi/cgi/cgi_main.c
50 @@ -2427,9 +2427,9 @@ consult the installation file that came
51 SG(request_info).no_headers = 1;
54 - php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
55 + php_printf("PHP %s (%s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
57 - php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
58 + php_printf("PHP %s (%s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
60 php_request_shutdown((void *) 0);
62 --- a/sapi/cli/php_cli.c
63 +++ b/sapi/cli/php_cli.c
64 @@ -697,8 +697,8 @@ static int do_cli(int argc, char **argv)
67 case 'v': /* show php version & quit */
68 - php_printf("PHP %s (%s) (built: %s %s) ( %s)\nCopyright (c) 1997-2018 The PHP Group\n%s",
69 - PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__,
70 + php_printf("PHP %s (%s) ( %s)\nCopyright (c) 1997-2018 The PHP Group\n%s",
71 + PHP_VERSION, cli_sapi_module.name,
75 --- a/sapi/fpm/fpm/fpm_main.c
76 +++ b/sapi/fpm/fpm/fpm_main.c
77 @@ -1755,9 +1755,9 @@ int main(int argc, char *argv[])
78 SG(request_info).no_headers = 1;
81 - php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
82 + php_printf("PHP %s (%s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
84 - php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
85 + php_printf("PHP %s (%s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
87 php_request_shutdown((void *) 0);
89 --- a/sapi/phpdbg/phpdbg.c
90 +++ b/sapi/phpdbg/phpdbg.c
91 @@ -1697,10 +1697,8 @@ phpdbg_main:
92 phpdbg_do_help_cmd(exec);
93 } else if (show_version) {
95 - "phpdbg %s (built: %s %s)\nPHP %s, Copyright (c) 1997-2018 The PHP Group\n%s",
96 + "phpdbg %s\nPHP %s, Copyright (c) 1997-2018 The PHP Group\n%s",