Skip to content

Conversation

@haszi
Copy link
Contributor

@haszi haszi commented Nov 3, 2024

Move error handling code into a class and remove PhD message output handling from it.
Introduce a new class to handle PhD message output.
Make the implicit dependency on the output functionality of classes explicit.
Update PEAR package.xml.
Fix tests.

Move error handling code into a class and remove PhD message output handling from it.
Introduce a new class to handle PhD message output.
Make the implicit dependency on the output functionality of classes explicit.
Update PEAR package.xml.
Fix tests.
Comment on lines 27 to 32
if (\LIBXML_VERSION >= 20620) {
return self::readString();
}
v("You are using libxml2 v%d, but v20620 or newer is preferred", \LIBXML_VERSION, VERBOSE_OLD_LIBXML);
$this->outputHandler->v("You are using libxml2 v%d, but v20620 or newer is preferred", \LIBXML_VERSION, VERBOSE_OLD_LIBXML);

$node = $this->name;
Copy link
Member

Choose a reason for hiding this comment

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

Aside, how old/recent is this version? Might make sense to drop this in a follow-up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's from July of 2005. :-)

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Minor final comment, but LGTM thank you!

@haszi
Copy link
Contributor Author

haszi commented Nov 9, 2024

Test failure is PHP 8.0 tests failing due the first-class callable syntax. We already had never return types so I'm really curious how they were not failing before. I'm opening a separate PR to remove 8.0 from the test matrix.

Edit:
Here is the PR removing 8.0 from the test matrix #178

@Girgias Girgias merged commit 1528413 into php:master Nov 10, 2024
7 of 9 checks passed
@haszi haszi deleted the Add-OutputHandler-and-ErrorHandler-classes branch November 10, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants