mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
4b3615a33f
These are deprecated in favor of date()/DateTime::format() (for locale-indendent formatting) and IntlDateFormatter::format() (for locale-dependent formatting). Part of https://wiki.php.net/rfc/deprecations_php_8_1.
28 lines
409 B
PHP
28 lines
409 B
PHP
--TEST--
|
|
Testing bug #65371
|
|
--INI--
|
|
date.timezone=Europe/Berlin
|
|
--FILE--
|
|
<?php
|
|
|
|
function p($str)
|
|
{
|
|
echo $str, "\n";
|
|
echo strftime($str), "\n";
|
|
echo bin2hex($str), "\n";
|
|
echo bin2hex(strftime($str));
|
|
}
|
|
|
|
setlocale(LC_ALL, 'C');
|
|
p('あ');
|
|
?>
|
|
--EXPECTF--
|
|
あ
|
|
|
|
Deprecated: Function strftime() is deprecated in %s on line %d
|
|
あ
|
|
e38182
|
|
|
|
Deprecated: Function strftime() is deprecated in %s on line %d
|
|
e38182
|