Skip to content

Commit 8682349

Browse files
committed
display info about system used to build
1 parent ca15956 commit 8682349

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,8 @@ PHP_UNAME=${PHP_UNAME:-$UNAME}
12731273
AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
12741274
PHP_OS=`uname | xargs`
12751275
AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
1276+
PHP_BUILDER_SYSTEM=${PHP_BUILDER_SYSTEM:-$PHP_UNAME}
1277+
AC_DEFINE_UNQUOTED(PHP_BUILDER_SYSTEM,"$PHP_BUILDER_SYSTEM",[builder uname output])
12761278

12771279
PHP_SUBST_OLD(PHP_INSTALLED_SAPIS)
12781280

ext/standard/info.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,9 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
798798
php_info_print_table_start();
799799
php_info_print_table_row(2, "System", ZSTR_VAL(php_uname));
800800
php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);
801+
#ifdef PHP_BUILDER_SYSTEM
802+
php_info_print_table_row(2, "Build System", PHP_BUILDER_SYSTEM);
803+
#endif
801804
#ifdef COMPILER
802805
php_info_print_table_row(2, "Compiler", COMPILER);
803806
#endif

0 commit comments

Comments
 (0)