[PHP-NOTES] note 130212 added to function.gmdate

[email protected] ("Anonymous")
Newsgroups php.notes
Message-ID <[email protected]>
ATTN! The following code produces different result in PHP 7 and PHP 8!

gmdate('Y-m-d\TH:i:s', null);

In PHP 7 null in gmdate('Y-m-d\TH:i:s', null) translated as 0, although gmdate('Y-m-d\TH:i:s'); (w/o 2nd parameter specified) works as it should.

This issue is fixed in PHP 8.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.84.18 (proxied: 52.72.177.97)
----
Manual Page -- https://php.net/manual/en/function.gmdate.php
Edit        -- https://main.php.net/note/edit/130212
Del: integrated  -- https://main.php.net/note/delete/130212/integrated
Del: useless     -- https://main.php.net/note/delete/130212/useless
Del: bad code    -- https://main.php.net/note/delete/130212/bad+code
Del: spam        -- https://main.php.net/note/delete/130212/spam
Del: non-english -- https://main.php.net/note/delete/130212/non-english
Del: in docs     -- https://main.php.net/note/delete/130212/in+docs
Del: other reasons-- https://main.php.net/note/delete/130212
Reject      -- https://main.php.net/note/reject/130212
Search      -- https://main.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.