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).

@cmb69
Copy link
Member Author

cmb69 commented Jul 7, 2016

This PR superses PR #1990.

@cmb69
Copy link
Member Author

cmb69 commented Jul 7, 2016

@pierrejoye Okay to merge (to PHP 5.6+)? See also the slightly more detailed analysis in https://bugs.php.net/bug.php?id=70315.

@jpauli jpauli added the Bug label Jul 8, 2016
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 18, 2016

The failing checks seem to be unrelated.

@php-pulls php-pulls merged commit 6cb75fb into php:PHP-5.6 Jul 18, 2016
@cmb69 cmb69 deleted the 70315 branch July 18, 2016 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants