Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix GREP_HEADER on Windows #15619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
petk wants to merge 1 commit into php:master from petk:patch-windows-libxml-version
Closed

Conversation

Copy link
Member

@petk petk commented Aug 28, 2024

I still need to retest this a bit if it covers all cases correctly. This check never actually worked properly as the filename needs to be appended to the file_get_contents path.

This fixes the libxml version check when the libxml/xmlversion.h is located elsewhere than libxml2 include directory.

Fixes #15536 (comment)

This fixes the libxml version check when the libxml/xmlversion.h is
located elsewhere than libxml2 include directory.
Copy link
Contributor

Jan-E commented Aug 28, 2024
edited
Loading

I originally applied only this: #15536 (comment)
Without the changes in both file_get_contents() statements I got the following output for the x86 build:

Checking for libxml/parser.h ... ../win32build\include
Checking for libxml/tree.h ... ../win32build\include
Checking for libxml/xmlversion.h ... ../win32build\include
Problem reading ../win32build\include

But with the complete patch it works as expected in my build environment:

Checking for library libxml2_a_dll.lib;libxml2_a.lib ... ..\win32build\lib\libxml2_a_dll.lib
Checking for library libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib ... ..\win32build\lib\libiconv_a.lib
Checking for libxml/parser.h ... ../win32build\include
Checking for libxml/tree.h ... ../win32build\include
Checking for libxml/xmlversion.h ... ../win32build\include
Enabling extension ext\libxml

petk reacted with thumbs up emoji

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, no time to thoroughly check this. Feel free to merge, or not.

Copy link
Contributor

Jan-E commented Sep 24, 2024

Sorry, no time to thoroughly check this. Feel free to merge, or not.

@petk What is the status? Can this be merged?

Copy link
Member

cmb69 commented Oct 3, 2024

Due to #16199, I had a closer look, and I think the patch is correct. I'm going to apply to PHP-8.4.

Note, though, that the php_usual_*_suspects are broken anyway for builds without --with-php-build=..., because

if (PHP_PHP_BUILD != "no") {

is always true (at least for regular builds; haven't checked phpize builds), due to php_build_option_handle() wich is called earlier. This is all a terrible mess.

Anyhow, thanks for the PR!

Jan-E, nono303, and petk reacted with thumbs up emoji

@cmb69 cmb69 closed this in e915ed7 Oct 3, 2024
@petk petk deleted the patch-windows-libxml-version branch October 3, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@cmb69 cmb69 cmb69 left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /