Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function strptime() is deprecated #128

Open
georged opened this issue Nov 5, 2024 · 3 comments
Open

Function strptime() is deprecated #128

georged opened this issue Nov 5, 2024 · 3 comments
Labels

Comments

@georged
Copy link
Contributor

georged commented Nov 5, 2024

PHP Deprecated: Function strptime() is deprecated in

if ( function_exists( "strptime" ) == true ) {
$time_array = strptime( $timestamp, $formatString );

See https://www.php.net/manual/en/function.strftime.php
See https://php.watch/versions/8.1/strftime-gmstrftime-deprecated

@georged georged added the bug label Nov 5, 2024
@wenuri-cloude
Copy link

if your php version is 8.1 or later, this is working. php 9 have not working, please check your php version

@georged
Copy link
Contributor Author

georged commented Nov 5, 2024

@wenuri-cloude it generates a deprecation warning, that's all. In php 9 it's supposed to be bypassed altogether.

@miranovy
Copy link

miranovy commented Nov 5, 2024

I removed php 8.1+ deprecated in https://github.com/miranovy/php-crm-toolkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants