调试生成的trace文件如下,(trace里的文件记录的时间是UTC)
TRACE START [2018-01-12 02:39:46]
0.0024 363464 +0 -> calc_money(double, double) D:\wamp64\www\shakedown\index.php:10
0.0026 363464 >=> 53.5
0.0027 363464 +0 -> xdebug_stop_trace() D:\wamp64\www\shakedown\index.php:11
0.0028 363544
TRACE END [2018-01-12 02:39:46]
通过代码输出的时间是本地时间
echo date("h:i:s");
已经修改php.ini中的
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone ="PRC"
也修改了apache下的cofig文件
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon
php_value date.timezone PRC