garrettrayj/php7-mapnik

make test fails on imagecreatefromstring()

Closed this issue · 2 comments

Not sure what is going on here but cannot complete the installation steps because make test fails on imagecreatefromstring() image.phpt.

Naturally, the first thing I checked is the presence of gd and it was present. Next I copied the imagecreatefromstring() example from the PHP docs into a regular .php file and, oddly enough, it works as expected.

php_test_results_20160416_1939.txt

Most strange :S

-Peter

I have dug into this further, I think the issue has got to be GD not being loaded by tmp-php.ini for some reason because if I enable the extension anyway and run the tests manually it works fine. I thought it might be something to do with using the PHP CLI but the imagecreatefromstring() example above works fine using the CLI.

Thanks for reporting! You were spot on, the tmp-php.ini was leaving GD out.