[wp-trac] [WordPress Trac] #36587: PHPUnit Tests fail with PHP7 and Imagick 3.4.x
WordPress Trac
noreply at wordpress.org
Wed Apr 20 06:36:20 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:
--------------------------+--------------------
Comment (by dd32):
After digging through this, and seeing that indeed the methods used here
such as `exif_read_data()` and `getimagesize()` don't appear to internally
use Imagemagick when available (As I initially assumed from the logs),
I'm pretty sure this is a PHPUnit bug, or an issue with PHP Itself.
The actual exception thrown by the phpunit handler is
`getimagesize(http://localhost/foo-cropped.png): failed to open stream:
HTTP request failed! HTTP/1.1 404 Not Found`, which is then reported
incorrectly. The prefix to the log message on the CLI is the Exception
classname.
{{{
1) Tests_Image_Header::test_create_attachment_object
ImagickException: getimagesize(http://localhost/foo-cropped.png): failed
to open stream: HTTP request failed! HTTP/1.1 404 Not Found
}}}
Potentially related is the fact that I keep triggering segmentation faults
and OOM errors in PHP whenever I try to diagnose what's happening.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36587#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list