Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 7, 2016

…rendered

That happens because the external libgd uses other error codes than PHP
(and the bundled libgd), but the libgd error codes are simply forwarded
to php_verror(). We fix that by properly mapping libgd errors to PHP errors.

As already mentioned in the bug report, this doesn't necessarily mean that external and bundled libgd behave identically now, but at least we avoid inconsistencies like the one reported. Fixing the bundled libgd to match external libgd is probably best done for PHP 7.1.0 only.

Another issue is that most likely some PHPTs will fail after this change (when run again an external libgd PHP build), but there are already plenty of failing tests in this case now (I got 43 with and without the patch).

…rendered

That happens because the external libgd uses other error codes than PHP
(and the bundled libgd), but the libgd error codes are simply forwarded
to php_verror(). We fix that by properly mapping libgd errors to PHP errors.
@cmb69
Copy link
Member Author

cmb69 commented Jul 7, 2016

I have submitted the PR to the wrong branch, and apparently it is not possible to change that, so I'm closing this one, and submit another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant