phpmyadmin icon indicating copy to clipboard operation
phpmyadmin copied to clipboard

Function strftime() is deprecated

Open TunglinInamin opened this issue 3 years ago • 13 comments

Describe the bug

Function strftime() is deprecated

To Reproduce

Steps to reproduce the behavior: log in pma

Expected behavior

not show this error

Screenshots

image

Server configuration

  • Operating system: Centos 7.9
  • Web server: nginx
  • Database version: Mariadb 10.8.3
  • PHP version: 8.1.7
  • phpMyAdmin version: 5.2.0

Client configuration

  • Browser: Chrome
  • Operating system: Windows 11

Additional context

Deprecation Notice in ./libraries/classes/Util.php#1699 Function strftime() is deprecated

Backtrace

Header.php#554: PhpMyAdmin\Util::expandUserString(string '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@')
Header.php#410: PhpMyAdmin\Header->getPageTitle()
ResponseRenderer.php#293: PhpMyAdmin\Header->getDisplay()
ResponseRenderer.php#411: PhpMyAdmin\ResponseRenderer->getDisplay()
PhpMyAdmin\ResponseRenderer->response()

TunglinInamin avatar Jul 02 '22 17:07 TunglinInamin

What version of phpMyAdmin are you using? What PHP version are you using?

Not filling the template makes me ask questions 😄

williamdes avatar Jul 02 '22 17:07 williamdes

update error data

TunglinInamin avatar Jul 03 '22 08:07 TunglinInamin

Duplicate of #17249

williamdes avatar Jul 03 '22 11:07 williamdes

Users have reported it is fixed in the latest versions of phpMyAdmin Could you try the latest 5.2 version in development (phpMyAdmin 5.2+snapshot)?

williamdes avatar Jul 03 '22 11:07 williamdes

I have been used it, but the error still showed.

TunglinInamin avatar Jul 03 '22 12:07 TunglinInamin

I have been used it, but the error still showed.

@MauricioFauth do you have an idea about why it is still showed?

williamdes avatar Jul 03 '22 12:07 williamdes

Server configuration

  • Operating system: Centos 7.9
  • Webserver: nginx/1.21.6
  • Database version: MariaDB 10.3.11
  • PHP version: 8.1.7
  • phpMyAdmin version: 5.2.0

Client configuration

  • Browser: Chrome Version 104.0.5112.39 (Official Build) beta (64-bit)
  • Operating system: Fedora 36

Problem seems to occur in the official 5.2 release. I can confirm that it's gone in version 5.2.1-dev+20220709.47e7cfe761 though.

LH-Eelko avatar Jul 11 '22 10:07 LH-Eelko

I can confirm that it's gone in version 5.2.1-dev+20220709.47e7cfe761 though.

Thank you !

@TunglinInamin you have some kind of caching issue I think, maybe check you did empty opcache if you use it

williamdes avatar Jul 11 '22 10:07 williamdes

I get the same error with a fresh snapshot, so seems like it is not fixed?

Version information: 5.2.1-dev+20220831.92dc9017d3 PHP version: 8.1.8

leuchtdiode avatar Sep 02 '22 19:09 leuchtdiode

I get the same error with a fresh snapshot, so seems like it is not fixed?

Version information: 5.2.1-dev+20220831.92dc9017d3 PHP version: 8.1.8

You can be sure this is fixed, please check your setup Can you post the error stacktrace?

williamdes avatar Sep 02 '22 20:09 williamdes

I get the same error with a fresh snapshot, so seems like it is not fixed? Version information: 5.2.1-dev+20220831.92dc9017d3 PHP version: 8.1.8

You can be sure this is fixed, please check your setup Can you post the error stacktrace?

Tried "all languages" instead of "only english" now compared to 2 hours ago. Same error:

PHP version: 8.1.8 Version information: 5.2.1-dev+20220831.92dc9017d3

Deprecation Notice in ./libraries/classes/Util.php#1699
 Function strftime() is deprecated

Backtrace

Header.php#554: PhpMyAdmin\Util::expandUserString(string '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@')
Header.php#410: PhpMyAdmin\Header->getPageTitle()
ResponseRenderer.php#293: PhpMyAdmin\Header->getDisplay()
ResponseRenderer.php#411: PhpMyAdmin\ResponseRenderer->getDisplay()
PhpMyAdmin\ResponseRenderer->response()

leuchtdiode avatar Sep 02 '22 21:09 leuchtdiode

Do you have some configuration that disables the error suppression operator (@), like the Xdebug's scream setting?

MauricioFauth avatar Sep 12 '22 21:09 MauricioFauth

No, there is no xdebug enabled on this server. Is there any other php.ini setting which suppresses the operator? Nothing would come to my mind.

leuchtdiode avatar Sep 13 '22 06:09 leuchtdiode

When the snapshot gets built deprecations should not be shown any more. See #17734

williamdes avatar Sep 26 '22 21:09 williamdes

Hi @TunglinInamin Could you try the latest 5.2 version in development (phpMyAdmin 5.2+snapshot) and let me know ?

williamdes avatar Sep 28 '22 17:09 williamdes

@williamdes I tested with latest 5.3 snapshot and the deprecations are gone now 👍

leuchtdiode avatar Sep 28 '22 17:09 leuchtdiode

Resolved by #17734

williamdes avatar Sep 28 '22 17:09 williamdes