Req #61522 [Com]: E_STRICT for compatibility TZs

From: Date: Sat, 13 Nov 2021 10:17:31 +0000
Subject: Req #61522 [Com]: E_STRICT for compatibility TZs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237744@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:         harryemma53 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:

Do you need help with Java Homework Help Online? Don't worry, our experts have Online Java
Homework Help. You can get Java help within a certain time. Our homework support has top priority so
that you are completely satisfied with our service. Our Java experts take an inadequate approach to
help you achieve this goal. Before you start, they will give you sample Java homework training to
help you feel confident in our Java program.

https://www.javahomeworkhelp.com/


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 (#237744) next »