-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix phpize on windows #17759
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
Fix phpize on windows #17759
Conversation
Ugh, they've lost their mind. Can you please provide the output when you run the following script (I'm getting WScript.StdOut.WriteLine(ScriptEngineMajorVersion() + "." + ScriptEngineMinorVersion() + "." + ScriptEngineBuildVersion());
That was not reliable (prior to ECMAScript 5, or something, you could assign to
Would |
Oops, nonsense. I see now. Would |
Anyway, the fix as is might break extensions with the following structure (not sure if something like this is currently properly supported, though):
|
Assigning an empty string would also work I suppose (or just a dot), but the key is also used for the output in I can't reproduce this right now myself as I'm running Windows 10; it was on somebody elses machine I don't have access to. |
While I consider passing an empty module It might make sense to double-check this on the windows-2025 GH hosted runners; these appear to run 24H2. Indeed: https://github.com/php/pecl-database-dbase/actions/runs/13251601748/job/36990497338#step:6:88. At least, there appears to be a workaround: https://github.com/php/pecl-database-dbase/actions/runs/13252016459/job/36991776017#step:5:1 (yeah, IE is alive! ;) Might be worth documenting that, since there may be more incompatibilities with our Windows build chain. |
Totally agreed on my side! |
Sounds good by me, let's use the empty string then (updated). |
It seems like n === undefined must have worked on older versions of jscript, but currently it just causes the insertion to silently fail. This sets n to the current folder name, allowing phpize to include the local config.w32 files.
The latest Windows release (24H2) apparently updated the JScript which can cause issues (see php#17759). Check if there are more.
Closed via 7f6c051. Thanks for the PR! |
It seems like
n === undefined
must have worked on older versions of jscript, but currently it just causes the insertion to silently fail. This sets n to the current folder name, allowing phpize to include the local config.w32 files.This just affects the standalone extension build mechanism.
Basing it on PHP 8.1, as it's purely build system. If that's wrong I'll just change the target to PHP-8.3.