Main icon indicating copy to clipboard operation
Main copied to clipboard

[Bug]: PHP Url not found when installing

Open rifqiabd opened this issue 6 months ago • 1 comments

Prerequisites

  • [x] I have written a descriptive issue title.
  • [x] I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • [x] I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

php

Expected/Current Behaviour

I found that installing old version of php isn't working enough. the php version on the command have mismatch between scoop and php.net/release/branches.php

example : in scoop php8.4 = 8.4.16 in branch php8.4 = 8.4.21

Steps to Reproduce

MTsTQA@DESKTOP-3GO2LC3 MINGW64 /d/code/php/lakasir (1.x)
$ scoop install php8.4
Installing 'php8.4' (8.4.16) [64bit] from 'PHP' bucket
The remote server returned an error: (404) Not Found.
URL https://windows.php.net/downloads/releases/php-8.4.16-Win32-vs17-x64.zip is not valid

MTsTQA@DESKTOP-3GO2LC3 MINGW64 /d/code/php/lakasir (1.x)
$ scoop install php8.3
Installing 'php8.3' (8.3.29) [64bit] from 'PHP' bucket
The remote server returned an error: (404) Not Found.
URL https://windows.php.net/downloads/releases/php-8.3.29-Win32-vs16-x64.zip is not valid

MTsTQA@DESKTOP-3GO2LC3 MINGW64 /d/code/php/lakasir (1.x)
$ scoop install php/php8.4
WARN  Purging previous failed installation of php8.4.
ERROR 'php8.4' isn't installed correctly.
Removing older version (8.4.16).
'php8.4' was uninstalled.
Installing 'php8.4' (8.4.16) [64bit] from 'php' bucket
The remote server returned an error: (404) Not Found.
URL https://windows.php.net/downloads/releases/php-8.4.16-Win32-vs17-x64.zip is not valid

Possible Solution

idk, but maybe using the latest

[
  {
    "branch": "8.5",
    "latest": "8.5.6",
    "state": "stable",
    "initial_release": "2025-11-20T00:00:00+00:00",
    "active_support_end": "2027-12-31T00:00:00+00:00",
    "security_support_end": "2029-12-31T00:00:00+00:00"
  },
  {
    "branch": "8.4",
    "latest": "8.4.21",
    "state": "stable",
    "initial_release": "2024-11-21T00:00:00+00:00",
    "active_support_end": "2026-12-31T00:00:00+00:00",
    "security_support_end": "2028-12-31T00:00:00+00:00"
  },
  {
    "branch": "8.3",
    "latest": "8.3.31",
    "state": "security",
    "initial_release": "2023-11-23T00:00:00+00:00",
    "active_support_end": "2025-12-31T00:00:00+00:00",
    "security_support_end": "2027-12-31T00:00:00+00:00"
  },
  {
    "branch": "8.2",
    "latest": "8.2.31",
    "state": "security",
    "initial_release": "2022-12-08T00:00:00+00:00",
    "active_support_end": "2024-12-31T00:00:00+00:00",
    "security_support_end": "2026-12-31T00:00:00+00:00"
  },
  {
    "branch": "8.1",
    "latest": "8.1.34",
    "state": "eol",
    "initial_release": "2021-11-25T00:00:00+00:00",
    "active_support_end": "2023-11-25T00:00:00+00:00",
    "security_support_end": "2025-12-31T00:00:00+00:00"
  },
  {
    "branch": "8.0",
    "latest": "8.0.30",
    "state": "eol",
    "initial_release": "2020-11-26T00:00:00+00:00",
    "active_support_end": "2022-11-26T00:00:00+00:00",
    "security_support_end": "2023-11-26T00:00:00+00:00"
  },
  {
    "branch": "7.4",
    "latest": "7.4.33",
    "state": "eol",
    "initial_release": "2019-11-28T00:00:00+00:00",
    "active_support_end": "2021-11-28T00:00:00+00:00",
    "security_support_end": "2022-11-28T00:00:00+00:00"
  },
  {
    "branch": "7.3",
    "latest": "7.3.33",
    "state": "eol",
    "initial_release": "2018-12-06T00:00:00+00:00",
    "active_support_end": "2020-12-06T00:00:00+00:00",
    "security_support_end": "2021-12-06T00:00:00+00:00"
  },
  {
    "branch": "7.2",
    "latest": "7.2.34",
    "state": "eol",
    "initial_release": "2017-11-30T00:00:00+00:00",
    "active_support_end": "2019-11-30T00:00:00+00:00",
    "security_support_end": "2020-11-30T00:00:00+00:00"
  },
  {
    "branch": "7.1",
    "latest": "7.1.33",
    "state": "eol",
    "initial_release": "2016-12-01T00:00:00+00:00",
    "active_support_end": "2018-12-01T00:00:00+00:00",
    "security_support_end": "2019-12-01T00:00:00+00:00"
  },
  {
    "branch": "7.0",
    "latest": "7.0.33",
    "state": "eol",
    "initial_release": "2015-12-03T00:00:00+00:00",
    "active_support_end": "2018-01-04T00:00:00+00:00",
    "security_support_end": "2019-01-10T00:00:00+00:00"
  },
  {
    "branch": "5.6",
    "latest": "5.6.40",
    "state": "eol",
    "initial_release": "2014-08-28T00:00:00+00:00",
    "active_support_end": "2017-01-19T00:00:00+00:00",
    "security_support_end": "2018-12-31T00:00:00+00:00"
  },
  {
    "branch": "5.5",
    "latest": "5.5.38",
    "state": "eol",
    "initial_release": "2013-06-20T00:00:00+00:00",
    "active_support_end": "2015-07-10T00:00:00+00:00",
    "security_support_end": "2016-07-21T00:00:00+00:00"
  },
  {
    "branch": "5.4",
    "latest": "5.4.45",
    "state": "eol",
    "initial_release": "2012-03-01T00:00:00+00:00",
    "active_support_end": "2014-09-14T00:00:00+00:00",
    "security_support_end": "2015-09-03T00:00:00+00:00"
  },
  {
    "branch": "5.3",
    "latest": "5.3.29",
    "state": "eol",
    "initial_release": "2009-06-30T00:00:00+00:00",
    "active_support_end": "2013-07-11T00:00:00+00:00",
    "security_support_end": "2014-08-14T00:00:00+00:00"
  },
  {
    "branch": "5.2",
    "latest": "5.2.17",
    "state": "eol",
    "initial_release": "2006-11-02T00:00:00+00:00",
    "active_support_end": "2008-11-02T00:00:00+00:00",
    "security_support_end": "2011-01-06T00:00:00+00:00"
  },
  {
    "branch": "5.1",
    "latest": "5.1.6",
    "state": "eol",
    "initial_release": "2005-11-24T00:00:00+00:00",
    "active_support_end": "2007-11-24T00:00:00+00:00",
    "security_support_end": "2006-08-24T00:00:00+00:00"
  },
  {
    "branch": "5.0",
    "latest": "5.0.5",
    "state": "eol",
    "initial_release": "2004-07-13T00:00:00+00:00",
    "active_support_end": "2006-07-13T00:00:00+00:00",
    "security_support_end": "2005-09-05T00:00:00+00:00"
  },
  {
    "branch": "4.4",
    "latest": "4.4.9",
    "state": "eol",
    "initial_release": "2005-07-11T00:00:00+00:00",
    "active_support_end": "2007-07-11T00:00:00+00:00",
    "security_support_end": "2008-08-07T00:00:00+00:00"
  },
  {
    "branch": "4.3",
    "latest": "4.3.11",
    "state": "eol",
    "initial_release": "2002-12-27T00:00:00+00:00",
    "active_support_end": "2004-12-27T00:00:00+00:00",
    "security_support_end": "2005-03-31T00:00:00+00:00"
  },
  {
    "branch": "4.2",
    "latest": "4.2.3",
    "state": "eol",
    "initial_release": "2002-04-22T00:00:00+00:00",
    "active_support_end": "2004-04-22T00:00:00+00:00",
    "security_support_end": "2002-09-06T00:00:00+00:00"
  },
  {
    "branch": "4.1",
    "latest": "4.1.2",
    "state": "eol",
    "initial_release": "2001-12-10T00:00:00+00:00",
    "active_support_end": "2003-12-10T00:00:00+00:00",
    "security_support_end": "2002-03-12T00:00:00+00:00"
  },
  {
    "branch": "4.0",
    "latest": "4.0.6",
    "state": "eol",
    "initial_release": "2000-05-22T00:00:00+00:00",
    "active_support_end": "2002-05-22T00:00:00+00:00",
    "security_support_end": "2001-06-23T00:00:00+00:00"
  },
  {
    "branch": "3.0",
    "latest": "3.0.x (latest)",
    "state": null,
    "initial_release": null,
    "active_support_end": null,
    "security_support_end": "2000-10-20T00:00:00+00:00"
  }
]

Scoop and Buckets Version

PS C:\Users\MTsTQA> scoop --version
Current Scoop version:
b588a06e (HEAD -> master, tag: v0.5.3, origin/master, origin/HEAD) chore(release): Bump to version 0.5.3 (resync) (#6436)

'main' bucket:
02cbbaa3ae (HEAD -> master, origin/master, origin/HEAD) vim: Update to version 9.2.0588

'extras' bucket:
ebd5689290 (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (Closes #17966)

'versions' bucket:
4d22e3db5a (HEAD -> master, origin/master, origin/HEAD) vscode-insiders: Update to version 1.124.0-f5d16d0

'nerd-fonts' bucket:
4cec3284 (HEAD -> master, origin/master, origin/HEAD) LXGWNeoZhiSong: Update to version 1.064

'java' bucket:
261427ce (HEAD -> master, origin/master, origin/HEAD) openjdk-ea: Update to version 27-24-ea

'hoilc_scoop-lemon' bucket:
8fcf8a20f2 (HEAD -> master, origin/master, origin/HEAD) touchhle-nightly: Update to version b2232

'PHP' bucket:
70bfa53 (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (Closes #31)

PS C:\Users\MTsTQA>

Scoop Config

PS C:\Users\MTsTQA> scoop config

last_update         scoop_repo                              scoop_branch
-----------         ----------                              ------------
03/06/2026 09.00.55 https://github.com/ScoopInstaller/Scoop master

PS C:\Users\MTsTQA>

PowerShell Version

PS C:\Users\MTsTQA> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.5.5
PSEdition                      Core
GitCommitId                    7.5.5
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

PS C:\Users\MTsTQA>

Additional Softwares

No response

rifqiabd avatar Jun 03 '26 02:06 rifqiabd

scoop install php8.4

https://www.php.net/downloads.php?os=windows&osvariant=windows-scoop&version=8.4

Consider using PHP 8.4 from the versions bucket instead; the php bucket is pretty much unmaintained.

scoop bucket add versions
scoop install versions/php84

z-Fng avatar Jun 03 '26 07:06 z-Fng