mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Documented the old incorrect behaviour that requesting a given
occurrence of a weekday in a month when that weekend occurred on the first day of the month would add one week to the returned timestamp. Addresses bug #46932 Not sure this should be a warning. Seems more appropriate in the changelog section. I'm just putting it here now to be consistent with the existing function reference. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288346 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d4c454a039
commit
7be49951cf
1 changed files with 8 additions and 1 deletions
|
@ -148,10 +148,17 @@ if (($timestamp = strtotime($str)) === false) {
|
|||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<warning>
|
||||
<para>
|
||||
In PHP 5 prior to 5.2.7, requesting a given occurrence of a given
|
||||
weekday in a month where that weekday was the first day of the
|
||||
month would incorrectly add one week to the returned timestamp.
|
||||
</para>
|
||||
</warning>
|
||||
<warning>
|
||||
<para>
|
||||
In PHP 5 up to 5.0.2, <literal>"now"</literal> and other relative times
|
||||
are wrongly computed from today's midnight. It differs from other
|
||||
are wrongly computed from today's midnight. This differs from other
|
||||
versions where it is correctly computed from current time.
|
||||
</para>
|
||||
</warning>
|
||||
|
|
Loading…
Reference in a new issue