Req #61522 [Com]: E_STRICT for compatibility TZs

From: Date: Tue, 19 Oct 2021 08:47:40 +0000
Subject: Req #61522 [Com]: E_STRICT for compatibility TZs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237279@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61522&edit=1

 ID:                 61522
 Comment by:         alisahwilson at gmail dot com
 Reported by:        a at b dot c dot de
 Summary:            E_STRICT for compatibility TZs
 Status:             Open
 Type:               Feature/Change Request
 Package:            Date/time related
 Operating System:   generic
 PHP Version:        5.4.0
 Block user comment: N
 Private report:     N

 New Comment:

Students do lots of research and try to get good marks on the assignments, even after that they are
not able to get high marks, this lowers their morale and makes them feel hopeless, but now you
don't need to feel worried, there is lots of option of getting online assignment helper, you
can easily choose the best assignment writing service platform. Before hiring any writing help
organization providers do check previous feedbacks, reviews, and work samples carefully, then decide
how many consumers loved their services, Then make a decision that you deem fit and get affordable
flawless services.
https://www.allassignmenthelp.co.uk/


Previous Comments:
------------------------------------------------------------------------
[2012-03-27 02:48:31] a at b dot c dot de

Description:
------------
A bunch of the Timezones supported by PHP come with a warning in the manual: "Please do not use
any of the timezones listed here (besides UTC), they only exist for backward compatible
reasons."

I'd just like to suggest having functions that take timezone strings as arguments (such as
date_default_timezone_set) trigger an E_STRICT notice when passed one of these compatibility zone
names.

Should the list change in future, this could give developers a heads-up.


Test script:
---------------
<?php
date_default_timezone_set('EST');
?>

Expected result:
----------------
PHP Strict Standards:  Use of compatibility Timezone ID 'EST' should be replaced with
current name in test.php on line 2.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=61522&edit=1


Thread (4 messages)

« previous php.bugs (#237279) next »