Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-10-01 19:09:01

Adams
Member
Registered: 2024-08-30
Posts: 34

"Function strftime() is deprecated"

Hello,
I assume there is a plan to change, fix this strftime near future, or doesn’t hurt for PHP 8.4

Thanks

Offline

#2 2024-10-01 20:34:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,415
Website GitHub

Re: "Function strftime() is deprecated"

We have removed all but two instances of the deprecated strftime() and gmstrftime() functions. Both remaining instances occur in our own safe_strftime() function.

There are some suggested replacements but I don’t know which is the best to use. Some rely on extensions that may not be loaded. Others seem fraught with locale and timezone issues. Maybe Oleg has some thoughts?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2024-10-01 20:55:30

etc
Developer
Registered: 2010-11-11
Posts: 5,132
Website GitHub

Re: "Function strftime() is deprecated"

The only case when one sees this warning should be a php 8.1+ with intl extension (enabled by default in php 8+) explicitly disabled by someone. Yes, we will remove strftime() from core when php 9 will be released, but then intl (or similar) extension will become mandatory.

Offline

#4 2024-10-02 16:05:01

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,218
GitHub

Re: "Function strftime() is deprecated"

Adams wrote #337915:

I assume there is a plan to change, fix this strftime near future, or doesn’t hurt for PHP 8.4

We have PHP 8.4 compatibility tracking if you find any other related concerns when using the pre-GA 8.4 releases.

Offline

#5 2024-10-02 19:18:56

Adams
Member
Registered: 2024-08-30
Posts: 34

Re: "Function strftime() is deprecated"

Thank you

Offline

Board footer

Powered by FluxBB