Req #61522 [Opn->Csd]: E_STRICT for compatibility TZs

From: Date: Fri, 13 May 2022 13:37:59 +0000
Subject: Req #61522 [Opn->Csd]: E_STRICT for compatibility TZs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241490@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
 Updated by:         derick@php.net
 Reported by:        a at b dot c dot de
 Summary:            E_STRICT for compatibility TZs
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            Date/time related
 Operating System:   generic
 PHP Version:        5.4.0
-Assigned To:        
+Assigned To:        derick
 Block user comment: N
 Private report:     N

 New Comment:

E_STRICT no longer exists. If you still thing this is a something you'd like to see a warning
for, please file a ticket at https://github.com/php/php-src/issues.


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