Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #318, these macros are not used as planed, we have separate funct…
…ions for each
- Loading branch information
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this totally break the build of PHP
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pierrejoye can you please revert ? and push a 2.3.4 ?
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are used in PHP
https://github.com/php/php-src/blob/master/ext/gd/gd.c#L403
So removing them break the build of PHP
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me check the code there. I don't remember, maybe it is just used to select the right function. In this case I am more to define them there instead of re introducing them here, as they are not used anywhere. What do you think?
Aslo, btw, I pinged you in a few tickets, any chance to look at them? maybe better to catch such things in the CI before :)
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes defined for user land and used in https://github.com/php/php-src/blob/master/ext/gd/gd.c#L3601
Yes, we should defined them in PHP, not in libgd, BUT this is only for future version of PHP, and probably only for 8.1+
So still have to be re-added (probably with a huge comment) for old versions (7.3 to 8.0)
Quite busy, but will do
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it worth the work...
A simple comment should be enough, as already exists for the typo
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pierrejoye another issue (missing gd_io_stream.h)... looking at it right now
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add the macro back.... It will work.... or don't understand your question
No, running abi-compliance checker.
It is referenced in gdpp.h
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://rpms.remirepo.net/compat_reports/libgd/2.3.2_to_2.3.3/compat_report.html
I use https://github.com/lvc/abi-compliance-checker
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notice: the removal of entities.h is detected as a major issue (symbol removal), btw, should not be used (internal stuff), and in all case the name is terrible for something public.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, see php/php-src#7490
bdc281e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change breaks the PHP build for all PHP versions from 5.6 to 8.0 (I haven't checked the PHP 5.5 and below).
Personally, I am going to revert the change in libgd Debian package, it's less hassle than patching all the PHP versions still packaged by my repository.