note 128168 added to function.date
| From: | ANounoMouse at main dot php dot net | Date: | Mon, 30 Jan 2023 09:41:21 +0000 |
| Subject: | note 128168 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220124@lists.php.net to get a copy of this message | ||
php 7 allows date($format, "12345678")
php 8 throws fatal error because it no longer auto-cast "1234567" as int.
change it to date($format, (int)"12345678") to fix it for php 8.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 102.182.66.45)
----
Manual Page -- https://php.net/manual/en/function.date.php
Edit -- https://main.php.net/note/edit/128168
Del: integrated -- https://main.php.net/note/delete/128168/integrated
Del: useless -- https://main.php.net/note/delete/128168/useless
Del: bad code -- https://main.php.net/note/delete/128168/bad+code
Del: spam -- https://main.php.net/note/delete/128168/spam
Del: non-english -- https://main.php.net/note/delete/128168/non-english
Del: in docs -- https://main.php.net/note/delete/128168/in+docs
Del: other reasons-- https://main.php.net/note/delete/128168
Reject -- https://main.php.net/note/reject/128168
Search -- https://main.php.net/manage/user-notes.php