[php-src] Issue #8458: DateInterval::createFromDateString does not warn when non-relative items are present
| From: | derickr | Date: | Fri, 29 Apr 2022 09:13:59 +0000 |
| Subject: | [php-src] Issue #8458: DateInterval::createFromDateString does not warn when non-relative items are present | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241315@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8458
Author: derickr
### Description
The following code:
```php
<?php
$d = DateInterval::createFromDateString('next weekday 15:30');
?>
```
Resulted in no warning.
But I expected a warning telling me that the
15:30 was going to be ignored.
### PHP Version
PHP 8.2.0-dev
### Operating System
_No response_