note 130212 added to function.gmdate

From: Date: Mon, 31 Mar 2025 15:11:02 +0000
Subject: note 130212 added to function.gmdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-222048@lists.php.net to get a copy of this message
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

« previous php.notes (#222048) next »