]> granicus.if.org Git - php/commit
Make strftime tests musl compatible
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Aug 2020 15:06:02 +0000 (17:06 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 13 Aug 2020 10:02:27 +0000 (12:02 +0200)
commitcdc4e49b84230c98a27b788db9a9530bea2b8d17
tree401ecbcce58018502de7503bbf342fb220d666e5
parentf16c1dc7ee8bd6c3289cdbb76c5550767fb4f64b
Make strftime tests musl compatible

 * Remove usage of strftime() in favor of date() in cases where
   we are not specifically testing strftime(). We implement
   date() ourselves, and as such are insulated from implementation-
   defined behavior.
 * Add skipif for broken strftime() %Z support. We have decided
   not to work around the issue for musl using manual expansion,
   as people should not be using this function anyway, and it is
   slated for future deprecation.
 * Don't test strftime() with invalid format specifier. The
   behavior is implementation-dependent.
ext/date/tests/009.phpt
ext/date/tests/bug27780.phpt
ext/date/tests/bug32555.phpt
ext/date/tests/bug33532.phpt
ext/standard/tests/time/strptime_basic.phpt
ext/standard/tests/time/strptime_parts.phpt