com php-src: beautify output: ext/opcache/zend_accelerator_ module.c

From: Date: Thu, 12 Dec 2013 08:47:43 +0000
Subject: com php-src: beautify output: ext/opcache/zend_accelerator_ module.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76631@lists.php.net to get a copy of this message
Commit: e62047d0824e62c48ed3c78d330553320bbf167f Author: Antony Dovgal <tony2001@php.net> Thu, 5 Dec 2013 18:37:15 +0400 Parents: f88a95b6425ff987c832b576ecda0dfc4f045242 Branches: badoo-5.5_mysqlnd Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e62047d0824e62c48ed3c78d330553320bbf167f Log: beautify output Changed paths: M ext/opcache/zend_accelerator_module.c Diff: diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 1abbf1e..3a878fb 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -456,9 +456,13 @@ void zend_accel_info(ZEND_MODULE_INFO_FUNC_ARGS) php_info_print_table_row(2, "Start time", start_time); efree(start_time); - restart_time = php_format_date("d-M-Y H:i:s", sizeof("d-M-Y H:i:s")-1, ZCSG(last_restart_time), 1 TSRMLS_CC); - php_info_print_table_row(2, "Last restart time", restart_time); - efree(restart_time); + if (ZCSG(last_restart_time)) { + restart_time = php_format_date("d-M-Y H:i:s", sizeof("d-M-Y H:i:s")-1, ZCSG(last_restart_time), 1 TSRMLS_CC); + php_info_print_table_row(2, "Last restart time", restart_time); + efree(restart_time); + } else { + php_info_print_table_row(2, "Last restart time", "none"); + } } }

« previous php.cvs (#76631) next »