Bug #67881 [Opn->Csd]: DateTimeZone and DateTime constructors log php warnings when they shouldn't.

From: Date: Tue, 16 Feb 2021 13:17:57 +0000
Subject: Bug #67881 [Opn->Csd]: DateTimeZone and DateTime constructors log php warnings when they shouldn't.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232192@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67881&edit=1

 ID:                 67881
 Updated by:         cmb@php.net
 Reported by:        evert at rooftopsolutions dot nl
 Summary:            DateTimeZone and DateTime constructors log php
                     warnings when they shouldn't.
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Date/time related
 Operating System:   Any
 PHP Version:        5.5.15
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This is fixed as of PHP 7.3.0, see <https://3v4l.org/DATvd>.


Previous Comments:
------------------------------------------------------------------------
[2016-02-17 10:11:09] pascal dot sancho at takoma dot fr

https://3v4l.org/5bN5o
looking at 3v4l.org eval,
reproduced on any PHP version, including PHP7
while HHVM behaves as expected

------------------------------------------------------------------------
[2014-08-22 10:06:59] derick@php.net

It certainly should not be in error_get_last.

------------------------------------------------------------------------
[2014-08-21 18:40:00] requinix@php.net

Just trying to figure out what the bug is about. I know that I didn't expect error_get_last()
to show anything because DateTimeZone is (supposedly) using exceptions instead of errors.
I still can't get it to put anything into the error log though, but I'm sure I just
don't have the right combination of settings or something.

------------------------------------------------------------------------
[2014-08-21 17:58:07] evert at rooftopsolutions dot nl

In a nutshell the main problem is that our users are getting millions of warnings in their error
logs, and there's no way we can suppress it.

------------------------------------------------------------------------
[2014-08-21 17:56:15] evert at rooftopsolutions dot nl

Check the error log. There should be something in there.

Also confirmed as a bug by Derick here: https://github.com/fruux/sabre-vobject/pull/116

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=67881


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


Thread (8 messages)

« previous php.bugs (#232192) next »