Skip to content

Commit 7761962

Browse files
committed
add entry in phpinfo
1 parent 382e00b commit 7761962

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Zend/Zend.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ AC_MSG_RESULT($ZEND_SIGNALS)
272272
dnl By default, enable Zend Timer only for ZTS builds
273273
AC_ARG_ENABLE([zend-timer],
274274
[AS_HELP_STRING([--enable-zend-timer],
275-
[whether to enable zend timer system])],
275+
[whether to enable zend timer])],
276276
[ZEND_TIMER=$enableval],
277277
[ZEND_TIMER=$ZEND_ZTS])
278278
@@ -284,11 +284,11 @@ if test "$ac_cv_func_timer_create" != "yes"; then
284284
fi
285285
286286
if test "$ZEND_TIMER" = "yes"; then
287-
AC_DEFINE(ZEND_TIMER, 1, [Use zend timer system])
287+
AC_DEFINE(ZEND_TIMER, 1, [Use zend timer])
288288
CFLAGS="$CFLAGS -DZEND_TIMER"
289289
fi
290290
291-
AC_MSG_CHECKING(whether to enable zend timer system)
291+
AC_MSG_CHECKING(whether to enable zend timer)
292292
AC_MSG_RESULT($ZEND_TIMER)
293293
294294
])

ext/standard/info.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,12 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
891891
efree(descr);
892892
}
893893

894+
#ifdef ZEND_TIMER
895+
php_info_print_table_row(2, "Zend Timer", "enabled" );
896+
#else
897+
php_info_print_table_row(2, "Zend Timer", "disabled" );
898+
#endif
899+
894900
#if HAVE_IPV6
895901
php_info_print_table_row(2, "IPv6 Support", "enabled" );
896902
#else

ext/standard/tests/general_functions/phpinfo.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Thread Safety => %s%A
3434
Zend Signal Handling => %s
3535
Zend Memory Manager => %s
3636
Zend Multibyte Support => %s
37+
Zend Timer => %s
3738
IPv6 Support => %s
3839
DTrace Support => %s
3940

0 commit comments

Comments
 (0)