Skip to content

Commit 0a1cf41

Browse files
authored
php(-nts): Update to version 8.5.2, fix checkver & autoupdate (#7560)
* Migrate download source to downloads.php.net since windows.php.net is going to shut down.
1 parent e1237d1 commit 0a1cf41

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

bucket/php-nts.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"version": "8.5.1",
2+
"version": "8.5.2",
33
"description": "A popular general-purpose scripting language that is especially suited to web development. (non-thread safe)",
4-
"homepage": "https://windows.php.net/",
4+
"homepage": "https://www.php.net/",
55
"license": "PHP-3.01",
66
"suggest": {
77
"vcredist": "extras/vcredist2022"
88
},
99
"architecture": {
1010
"64bit": {
11-
"url": "https://windows.php.net/downloads/releases/php-8.5.1-nts-Win32-vs17-x64.zip",
12-
"hash": "b80175dc14753e0645b0a2637782c02583aa5d25d487721129501a25796526db"
11+
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.2-nts-Win32-vs17-x64.zip",
12+
"hash": "acb844830aee008a7dde4092f6aab62b09541b3f16260806beff4e4dcc7d9617"
1313
},
1414
"32bit": {
15-
"url": "https://windows.php.net/downloads/releases/php-8.5.1-nts-Win32-vs17-x86.zip",
16-
"hash": "de3747b785af34f8978afbadf0dfe81004bfc3c0e4850416dd618c327c5c3a6c"
15+
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.2-nts-Win32-vs17-x86.zip",
16+
"hash": "6d52684520ef79421f678c8d70792bfe746df31e0b76224ac39d3107f5f89daa"
1717
}
1818
},
1919
"pre_install": [
@@ -42,20 +42,21 @@
4242
]
4343
],
4444
"checkver": {
45-
"url": "https://windows.php.net/download/",
46-
"regex": "<h3 id=\"php-[\\d.]+\".*?>.*?\\(([\\d.]+)\\)</h3>"
45+
"url": "https://www.php.net/releases/branches.php",
46+
"jsonpath": "$[0].latest"
4747
},
4848
"autoupdate": {
4949
"architecture": {
5050
"64bit": {
51-
"url": "https://windows.php.net/downloads/releases/php-$version-nts-Win32-vs17-x64.zip"
51+
"url": "https://downloads.php.net/~windows/releases/archives/php-$version-nts-Win32-vs17-x64.zip"
5252
},
5353
"32bit": {
54-
"url": "https://windows.php.net/downloads/releases/php-$version-nts-Win32-vs17-x86.zip"
54+
"url": "https://downloads.php.net/~windows/releases/archives/php-$version-nts-Win32-vs17-x86.zip"
5555
}
5656
},
5757
"hash": {
58-
"url": "$baseurl/sha256sum.txt"
58+
"url": "https://www.php.net/backend/win-releases.json",
59+
"jsonpath": "$..[?(@.path == '$basename')].sha256"
5960
}
6061
}
6162
}

bucket/php.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"version": "8.5.1",
2+
"version": "8.5.2",
33
"description": "A popular general-purpose scripting language that is especially suited to web development. (thread safe)",
4-
"homepage": "https://windows.php.net/",
4+
"homepage": "https://www.php.net/",
55
"license": "PHP-3.01",
66
"suggest": {
77
"vcredist": "extras/vcredist2022"
88
},
99
"architecture": {
1010
"64bit": {
11-
"url": "https://windows.php.net/downloads/releases/php-8.5.1-Win32-vs17-x64.zip",
12-
"hash": "77fbee57c8159279bc065942d361103b0a3f53c8dfabc182a07433be9eec8dba"
11+
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.2-Win32-vs17-x64.zip",
12+
"hash": "a44bda6ae67fe20cb5da8d38d228601d48459f857d95b54251d12365bd428dfe"
1313
},
1414
"32bit": {
15-
"url": "https://windows.php.net/downloads/releases/php-8.5.1-Win32-vs17-x86.zip",
16-
"hash": "cfd66a27d32e0ce2f462527f8f29fd2d797c714083c07a32b6147d06a7553d6f"
15+
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.2-Win32-vs17-x86.zip",
16+
"hash": "7fd2816819165b3504275140e040e13e7f55e1f146641188257715d063eeeecf"
1717
}
1818
},
1919
"pre_install": [
@@ -42,20 +42,21 @@
4242
]
4343
],
4444
"checkver": {
45-
"url": "https://windows.php.net/download/",
46-
"regex": "<h3 id=\"php-[\\d.]+\".*?>.*?\\(([\\d.]+)\\)</h3>"
45+
"url": "https://www.php.net/releases/branches.php",
46+
"jsonpath": "$[0].latest"
4747
},
4848
"autoupdate": {
4949
"architecture": {
5050
"64bit": {
51-
"url": "https://windows.php.net/downloads/releases/php-$version-Win32-vs17-x64.zip"
51+
"url": "https://downloads.php.net/~windows/releases/archives/php-$version-Win32-vs17-x64.zip"
5252
},
5353
"32bit": {
54-
"url": "https://windows.php.net/downloads/releases/php-$version-Win32-vs17-x86.zip"
54+
"url": "https://downloads.php.net/~windows/releases/archives/php-$version-Win32-vs17-x86.zip"
5555
}
5656
},
5757
"hash": {
58-
"url": "$baseurl/sha256sum.txt"
58+
"url": "https://www.php.net/backend/win-releases.json",
59+
"jsonpath": "$..[?(@.path == '$basename')].sha256"
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)