File php7-no-build-date.patch of Package php7

Index: php-7.0.15/ext/standard/info.c
===================================================================
--- php-7.0.15.orig/ext/standard/info.c	2017-01-17 12:52:56.000000000 +0100
+++ php-7.0.15/ext/standard/info.c	2017-01-24 13:25:42.441520643 +0100
@@ -863,7 +863,7 @@ PHPAPI void php_print_info(int flag)
 		php_info_print_box_end();
 		php_info_print_table_start();
 		php_info_print_table_row(2, "System", ZSTR_VAL(php_uname));
-		php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);
+		/*php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);*/
 #ifdef COMPILER
 		php_info_print_table_row(2, "Compiler", COMPILER);
 #endif
@@ -871,7 +871,7 @@ PHPAPI void php_print_info(int flag)
 		php_info_print_table_row(2, "Architecture", ARCHITECTURE);
 #endif
 #ifdef CONFIGURE_COMMAND
-		php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
+		/* php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND ); */
 #endif
 
 		if (sapi_module.pretty_name) {
Index: php-7.0.15/sapi/fpm/fpm/fpm_main.c
===================================================================
--- php-7.0.15.orig/sapi/fpm/fpm/fpm_main.c	2017-01-24 13:25:42.445520711 +0100
+++ php-7.0.15/sapi/fpm/fpm/fpm_main.c	2017-01-24 13:27:27.799301697 +0100
@@ -1757,9 +1757,9 @@ int main(int argc, char *argv[])
 				SG(request_info).no_headers = 1;
 
 #if ZEND_DEBUG
-				php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,        __TIME__, get_zend_version());
+				php_printf("PHP %s (%s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
 #else
-				php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__,      get_zend_version());
+				php_printf("PHP %s (%s) \nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
 #endif
 				php_request_shutdown((void *) 0);
 				fcgi_shutdown();
Index: php-7.0.15/configure.in
===================================================================
--- php-7.0.15.orig/configure.in	2017-01-17 12:51:49.000000000 +0100
+++ php-7.0.15/configure.in	2017-01-24 13:25:42.445520711 +0100
@@ -1283,8 +1283,8 @@ fi
 
 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
 EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
-
-PHP_BUILD_DATE=`date '+%Y-%m-%d'`
+#totally fake, not used anywhere in userspace
+PHP_BUILD_DATE="1970-01-01"
 AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date])
 
 case $host_alias in
@@ -1295,7 +1295,8 @@ case $host_alias in
   AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[hardcode for each of the cross compiler host])
   ;;
 *)
-  PHP_UNAME=`uname -a | xargs`
+dnl Totally fake, it wasnt and will never be reliable anyway.
+  PHP_UNAME="Linux suse 2.6.36 #1 SMP 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux"
   AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
   PHP_OS=`uname | xargs`
   AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
Index: php-7.0.15/sapi/cli/php_cli.c
===================================================================
--- php-7.0.15.orig/sapi/cli/php_cli.c	2017-01-24 13:25:42.445520711 +0100
+++ php-7.0.15/sapi/cli/php_cli.c	2017-01-24 13:30:26.426323634 +0100
@@ -685,8 +685,8 @@ static int do_cli(int argc, char **argv)
 				goto out;
 
 			case 'v': /* show php version & quit */
-				php_printf("PHP %s (%s) (built: %s %s) ( %s)\nCopyright (c) 1997-2017 The PHP Group\n%s",
-					PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__,
+				php_printf("PHP %s (%s) ( %s)\nCopyright (c) 1997-2017 The PHP Group\n%s",
+					PHP_VERSION, cli_sapi_module.name,
 #if ZTS
 					"ZTS "
 #else
Index: php-7.0.15/sapi/cgi/cgi_main.c
===================================================================
--- php-7.0.15.orig/sapi/cgi/cgi_main.c	2017-01-24 13:25:42.445520711 +0100
+++ php-7.0.15/sapi/cgi/cgi_main.c	2017-01-24 13:31:28.467373332 +0100
@@ -2216,9 +2216,9 @@ consult the installation file that came
 								SG(request_info).no_headers = 1;
 							}
 #if ZEND_DEBUG
-							php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+							php_printf("PHP %s (%s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
 #else
-							php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+							php_printf("PHP %s (%s) \nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
 #endif
 							php_request_shutdown((void *) 0);
 							fcgi_shutdown();
openSUSE Build Service is sponsored by