[wp-trac] [WordPress Trac] #36587: PHPUnit Tests fail with PHP7 and Imagick 3.4.x
WordPress Trac
noreply at wordpress.org
Tue Apr 19 09:27:07 UTC 2016
#36587: PHPUnit Tests fail with PHP7 and Imagick 3.4.x
--------------------------+--------------------
Reporter: alpipego | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 4.6
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Changes (by ocean90):
* priority: normal => high
* milestone: Awaiting Review => 4.6
Comment:
Thanks for creating the ticket @alpipego!
This issue was discovered during the Contributor Day at WordCamp Nuremberg
and took quite a while to find the cause. :(
[[BR]]
> This causes the PHPUnit test to throw errors (~290) and ultimately
several failures.
Correct, most of the errors where caused by "headers already sent"
warnings as soon as the image tests ran.
{{{
ImagickException: Cannot modify header information - headers already sent
by (output started at /tests/phpunit/includes/bootstrap.php:56)
}}}
[attachment:phpunit.log] includes the output of a broken test run.
While it looks like it's currently only happing with our test image I'm
sure that this could be an issue in a real life scenario too.
The change is probably related to
http://php.net/manual/en/language.errors.php7.php.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36587#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list