Skip to content

Fix isolated error handling #24681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

alexpott
Copy link
Contributor

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

Fixes \Symfony\Bridge\PhpUnit\Tests\ProcessIsolationTest on PHP5.5 and PHP5.6 and (probably) HHVM.

@alexpott alexpott force-pushed the fix-isolated-error-handling branch from 81b6e75 to 0c1d5a2 Compare October 24, 2017 19:03
return $previousErrorHandler ? $previousErrorHandler($type, $msg, $file, $line, $context) : false;
// This can be registered before the PHPUnit error handler.
if (!$previousErrorHandler) {
$ErrorHandler = class_exists('PHPUnit_Util_ErrorHandler') ? 'PHPUnit_Util_ErrorHandler' : 'PHPUnit\Util\ErrorHandler';
Copy link
Member

Choose a reason for hiding this comment

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

I think class_exists should be with "false" as second argument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@nicolas-grekas nicolas-grekas force-pushed the fix-isolated-error-handling branch from 7c4fbf8 to bc777a5 Compare October 25, 2017 08:00
@nicolas-grekas
Copy link
Member

Thank you @alexpott.

This was referenced Oct 30, 2017
@fabpot fabpot mentioned this pull request Nov 10, 2017
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.

3 participants