[php-src] Issue #8217: new DateTime("@".$timestamp) should not crash (throws fatal error) with empty timestamp

From: Date: Fri, 18 Mar 2022 13:12:54 +0000
Subject: [php-src] Issue #8217: new DateTime("@".$timestamp) should not crash (throws fatal error) with empty timestamp
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240408@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8217 Comment Author: cmb69 First, there is no fatal error, but rather an Exception is thrown (https://3v4l.org/JCpa7). Not catching that exception results in a fatal error. Second, a failing constructor *must* throw, because otherwise you would have an uninitialized object.

« previous php.bugs (#240408) next »