Skip to content
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

Bug: "Get-File" vs PHP 5.3 on Windows (low prio) #888

Open
1 of 2 tasks
jrfnl opened this issue Nov 30, 2024 · 2 comments
Open
1 of 2 tasks

Bug: "Get-File" vs PHP 5.3 on Windows (low prio) #888

jrfnl opened this issue Nov 30, 2024 · 2 comments
Assignees
Labels
awaiting-release Added/Fixed and tested, awaiting release bug Something isn't working

Comments

@jrfnl
Copy link
Contributor

jrfnl commented Nov 30, 2024

Describe the bug

When installing PHP 5.3, I'm seeing "Get-File: The term 'Get-File' is not recognized as a name of a cmdlet, function, script file, or executable program." errors in the logs (though they don't seem to be blocking anything)

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

windows-latest

PHP versions

PHP 5.3

To Reproduce

    runs-on: windows-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Install PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 5.3
          ini-values: 'error_reporting=-1, display_errors=On'
          extensions:
          coverage: none
        env:
          fail-fast: true

Note: extensions is an empty string as it is set dynamically from the matrix.

Expected behavior

It all still seems to work fine, but I'm seeing the following errors in the logs:

==> Setup PHP 
Get-File: The term 'Get-File' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Get-File: The term 'Get-File' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
√ PHP Installed PHP 5.3.29 

Screenshots/Logs

image

https://github.com/jrfnl/PHP_CodeSniffer/actions/runs/12100184185/job/33738527058

Additional context

Would love to submit a PR, but am not familiar enough with Powershell unfortunately.

Are you willing to submit a PR?

No

@jrfnl jrfnl added the bug Something isn't working label Nov 30, 2024
@shivammathur
Copy link
Owner

Fixed in d97b375

@shivammathur shivammathur added the awaiting-release Added/Fixed and tested, awaiting release label Dec 1, 2024
@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 1, 2024

Cricky.. that's a fast fix for a low prio item ;-) Thanks @shivammathur!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-release Added/Fixed and tested, awaiting release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants