strftime function is deprecated in php 8.1 and used in requirements/index.php getServerInfo
kristian-94 opened this issue · 1 comments
kristian-94 commented
What steps will reproduce the problem?
Install latest Yii 1.1.26 version and on PHP 8.1. Call getServerInfo
in requirements/index.php
What is the expected result?
Print the current date and time
What do you get instead?
Error: Function strftime() is deprecated
https://www.php.net/manual/en/function.strftime.php
Additional info
Should just need a simple switch from
$info[]=@strftime('%Y-%m-%d %H:%M',time());
to
$info[]=@date('Y-m-d H:i',time());
Q | A |
---|---|
Yii version | 1.1.26 |
PHP version | 8.1 |
kristian-94 commented
I guess having the @ symbol does the trick of suppressing the error anyway sorry, I can close this.