From ede39739fd343d65769d78d6f4f98747ede5f49d Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 2 Jun 2018 04:11:57 +0200 Subject: [PATCH] Normalize Reflection phpinfo() output This patch normalizes the Reflection extension version in the phpinfo output. It removes the Git attributes ident blob object name from Git repository as an extension version. Also the table output is synced with other extensions (i.e. enabled in a row instead of table header). --- .gitattributes | 1 - ext/reflection/php_reflection.c | 7 +------ ext/reflection/tests/026.phpt | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitattributes b/.gitattributes index 846891cc89d..22da154f294 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,7 +4,6 @@ ext/ext_skel.php ident ext/phar/phar/pharcommand.inc ident ext/phar/phar.c ident ext/enchant/enchant.c ident -ext/reflection/php_reflection.c ident ext/oci8/oci8.c ident ext/dba/libinifile/inifile.c ident ext/dba/libflatfile/flatfile.c ident diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 3cb394bdccf..1a53cb48386 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -20,8 +20,6 @@ +----------------------------------------------------------------------+ */ -/* $Id$ */ - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -6821,10 +6819,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */ PHP_MINFO_FUNCTION(reflection) /* {{{ */ { php_info_print_table_start(); - php_info_print_table_header(2, "Reflection", "enabled"); - - php_info_print_table_row(2, "Version", "$Id$"); - + php_info_print_table_row(2, "Reflection", "enabled"); php_info_print_table_end(); } /* }}} */ diff --git a/ext/reflection/tests/026.phpt b/ext/reflection/tests/026.phpt index c7a300b7498..9216f656af1 100644 --- a/ext/reflection/tests/026.phpt +++ b/ext/reflection/tests/026.phpt @@ -15,7 +15,6 @@ echo "\nDone!\n"; Reflection Reflection => enabled -Version => %s date