Created
July 24, 2017 18:14
-
-
Save skyzyx/55e2dea4e7f8fbc6854b2c81f51e8cf9 to your computer and use it in GitHub Desktop.
strftime() %P modifier broken in PHP 7.1.7 on Alpine Linux 3.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Working | |
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%c', time()));" | |
#=> string(24) "Mon Jul 24 18:09:54 2017" | |
# Also working | |
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%I:%M%p', time()));" | |
#=> string(7) "06:12PM" | |
# Not working | |
docker run -ti php:7.1.7-fpm-alpine php -r "var_dump(strftime('%I:%M%P', time()));" | |
#=> bool(false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment