[wp-trac] [WordPress Trac] #31124: PHP unit tests fail with fatal error, imagecreatefrompng() not defined
WordPress Trac
noreply at wordpress.org
Thu Feb 19 20:26:33 UTC 2015
#31124: PHP unit tests fail with fatal error, imagecreatefrompng() not defined
-------------------------------+--------------------
Reporter: iseulde | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+--------------------
Comment (by voldemortensen):
According to http://php.net/manual/en/image.installation.php it does seem
like you have to enable png support when compiling.
We can check if PNG support is enabled with something like
{{{
$arr = gd_info();
if ( $arr['PNG Support'] === true ) { // do stuff }
}}}
to determine whether PNG tests should be run or not.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31124#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list