You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.9 KiB

  1. From: Thijs Kinkhorst <thijs@debian.org>
  2. Date: Mon, 2 Dec 2019 22:18:43 +0100
  3. Subject: Add patch to remove build timestamps from generated binaries.
  4. ---
  5. --- a/ext/standard/info.c
  6. +++ b/ext/standard/info.c
  7. @@ -791,7 +791,6 @@ PHPAPI ZEND_COLD void php_print_info(int
  8. php_info_print_box_end();
  9. php_info_print_table_start();
  10. php_info_print_table_row(2, "System", ZSTR_VAL(php_uname));
  11. - php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);
  12. #ifdef PHP_BUILD_SYSTEM
  13. php_info_print_table_row(2, "Build System", PHP_BUILD_SYSTEM);
  14. #endif
  15. --- a/sapi/apache2handler/config.m4
  16. +++ b/sapi/apache2handler/config.m4
  17. @@ -64,18 +64,9 @@ if test "$PHP_APXS2" != "no"; then
  18. fi
  19. APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
  20. - if test -z `$APXS -q SYSCONFDIR`; then
  21. - INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
  22. - $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
  23. - -i -n php"
  24. - else
  25. - APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
  26. - INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
  27. - \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
  28. - $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
  29. - -S SYSCONFDIR='$APXS_SYSCONFDIR' \
  30. - -i -a -n php"
  31. - fi
  32. + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
  33. + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
  34. + -i -n php"
  35. LIBPHP_CFLAGS="-shared"
  36. PHP_SUBST(LIBPHP_CFLAGS)
  37. --- a/sapi/cgi/cgi_main.c
  38. +++ b/sapi/cgi/cgi_main.c
  39. @@ -2371,9 +2371,9 @@ parent_loop_end:
  40. SG(headers_sent) = 1;
  41. SG(request_info).no_headers = 1;
  42. #if ZEND_DEBUG
  43. - php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
  44. + php_printf("PHP %s (%s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
  45. #else
  46. - php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
  47. + php_printf("PHP %s (%s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
  48. #endif
  49. php_request_shutdown((void *) 0);
  50. fcgi_shutdown();
  51. --- a/sapi/cli/php_cli.c
  52. +++ b/sapi/cli/php_cli.c
  53. @@ -633,8 +633,8 @@ static int do_cli(int argc, char **argv)
  54. goto out;
  55. case 'v': /* show php version & quit */
  56. - php_printf("PHP %s (%s) (built: %s %s) ( %s)\nCopyright (c) The PHP Group\n%s",
  57. - PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__,
  58. + php_printf("PHP %s (%s) ( %s)\nCopyright (c) The PHP Group\n%s",
  59. + PHP_VERSION, cli_sapi_module.name,
  60. #ifdef ZTS
  61. "ZTS "
  62. #else
  63. --- a/sapi/fpm/fpm/fpm_main.c
  64. +++ b/sapi/fpm/fpm/fpm_main.c
  65. @@ -1691,9 +1691,9 @@ int main(int argc, char *argv[])
  66. SG(request_info).no_headers = 1;
  67. #if ZEND_DEBUG
  68. - php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
  69. + php_printf("PHP %s (%s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
  70. #else
  71. - php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
  72. + php_printf("PHP %s (%s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
  73. #endif
  74. php_request_shutdown((void *) 0);
  75. fcgi_shutdown();
  76. --- a/sapi/phpdbg/phpdbg.c
  77. +++ b/sapi/phpdbg/phpdbg.c
  78. @@ -1634,10 +1634,8 @@ phpdbg_main:
  79. phpdbg_do_help_cmd(exec);
  80. } else if (show_version) {
  81. phpdbg_out(
  82. - "phpdbg %s (built: %s %s)\nPHP %s, Copyright (c) The PHP Group\n%s",
  83. + "phpdbg %s\nPHP %s, Copyright (c) The PHP Group\n%s",
  84. PHPDBG_VERSION,
  85. - __DATE__,
  86. - __TIME__,
  87. PHP_VERSION,
  88. get_zend_version()
  89. );