php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #79228 Allow DateTimeInterface to be implemented in userland
Submitted: 2020-02-05 00:59 UTC Modified: 2020-02-05 01:21 UTC
From: eric at ericstern dot com Assigned:
Status: Open Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eric at ericstern dot com
New email:
PHP Version: OS:

 

 [2020-02-05 00:59 UTC] eric at ericstern dot com
Description:
------------
Since DateTimeInterface has a restriction that it cannot be implemented in user space, certain operations (especially in testing) become unnecessarily difficult. It would be great if a future version of PHP lifted this restriction.

Test script:
---------------
https://github.com/sebastianbergmann/phpunit/issues/3680 is an example of why this is a real-world issue.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-05 01:21 UTC] requinix@php.net
Happened during bug #65768 "because ext/date relies on classes implementing it to support certain internal structures".
https://git.php.net/?p=php-src.git;a=commit;h=5f09944662e09ea0b3f93cfab8702f188955e68c
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 04:01:23 2020 UTC