FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ext/date: applied fixers to improve test robustness by NickSdot · Pull Request #23039 · php/php-src · GitHub

/ php-src Public

ext/date: applied fixers to improve test robustness - #23039

Merged
derickr merged 1 commit into
php:masterfrom
NickSdot:test/hardening/ext-date
Aug 18, 2026
Merged

ext/date: applied fixers to improve test robustness#23039
derickr merged 1 commit into
php:masterfrom
NickSdot:test/hardening/ext-date

Conversation

NickSdot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Asserts error class; extracted from: #22799

try {
new DatePeriod($date, new DateInterval('P1D'), 2);
} catch (Error $e) {
echo get_class($e), ': ', $e->getMessage(), "\n";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This (and following) safe us a function call; not style-only.

c(Asia/Tokyo): 2015-4-1 <--> 2015-4-29
int(0)
int(28)

NickSdot Aug 4, 2026
edited
Loading

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This (and following) removes double empty last line.

var_dump( timezone_offset_get($tz, $invalid_obj) );
} catch (Error $ex) {
var_dump($ex->getMessage());
echo "\n";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Bloat.

NickSdot marked this pull request as ready for review August 4, 2026 15:20
NickSdot requested a review from derickr as a code owner August 4, 2026 15:20
derickr merged commit 170ca63 into php:master Aug 18, 2026
18 checks passed
NickSdot deleted the test/hardening/ext-date branch August 18, 2026 17:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL