php 配置与符号链接不同

php 配置与符号链接不同

当我使用符号链接时,php 配置没有相同的时区!

xxxx:/usr/bin $ php -i | grep timezone                                                                                                                                                                                                            
Default timezone => Europe/Berlin
date.timezone => no value => no value

xxxx:/usr/bin $ php7.2 -i | grep timezone                                                                                                                                                                                                         
Default timezone => Europe/Paris
date.timezone => Europe/Paris => Europe/Paris

xxxx:/usr/bin $ ll php*
lrwxrwxrwx 1 root root      21 Aug 31  2017 php -> /etc/alternatives/php*
-rwxr-xr-x 1 root root 9114792 Aug  4  2017 php5*
-rwxr-xr-x 1 root root 4764912 Mar  6 13:50 php7.2*

xxxx:/usr/bin $ ll /etc/alternatives/php*                                                                                                                                                                                                      
lrwxrwxrwx 1 root root 15 Mar  8 17:25 /etc/alternatives/php -> /usr/bin/php7.2*

相关内容