Req #79228 [NEW]: Allow DateTimeInterface to be implemented in userland
| From: | eric at ericstern dot com | Date: | Wed, 05 Feb 2020 00:59:46 +0000 |
| Subject: | Req #79228 [NEW]: Allow DateTimeInterface to be implemented in userland | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225367@lists.php.net to get a copy of this message | ||
From: eric at ericstern dot com
Operating system:
PHP version: Irrelevant
Package: Date/time related
Bug Type: Feature/Change Request
Bug description:Allow DateTimeInterface to be implemented in userland
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=79228&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79228&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79228&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79228&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79228&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79228&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79228&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79228&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79228&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79228&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79228&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79228&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79228&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79228&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79228&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79228&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79228&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79228&r=mysqlcfg