Skip to content

Windows builds failing due to missing function filter_var() #846

@gwleuverink

Description

@gwleuverink

We just updated to v2.7.0 and we're running into an error in our Windows build workflow:

[08:11:52] [E] Uncaught Error: Call to undefined function SPC\util\filter_var() at phar://D:/a/php-bin/static-php-cli/bin/spc.exe/src/SPC/util/GlobalEnvManager.php(118)
[08:11:52] [E] #0 phar://D:/a/php-bin/static-php-cli/bin/spc.exe/src/SPC/builder/windows/WindowsBuilder.php(37): SPC\util\GlobalEnvManager::afterInit()

We're using the standalone executable from your GitHub releases. It seems like the filter_var function is not available on Windows. This is not an issue on either Mac or Linux.

Here's the link to the Workflow run in question: https://github.com/NativePHP/php-bin/actions/runs/16744406074/job/47399426677

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions