From 5f7c6aaf109fec9ee92a2bca6cb96bf2faba95ce Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Thu, 1 Jan 2026 22:12:40 +0100 Subject: [PATCH] fix: update docs.php.net URLs to https://www.php.net Replace outdated docs.php.net domain references with the current https://www.php.net domain across archive pages and documentation links. Also remove legacy inactive language filtering logic from download-docs.php that was specific to the old docs domain. --- archive/2007.php | 2 +- archive/2007.xml | 2 +- archive/2009.php | 2 +- archive/2012.php | 4 ++-- archive/2014.php | 14 +++++++------- download-docs.php | 4 ---- manual/help-translate.php | 2 +- releases/5_4_0.php | 4 ++-- 8 files changed, 15 insertions(+), 19 deletions(-) diff --git a/archive/2007.php b/archive/2007.php index bb5d0b399..cfa1f4859 100644 --- a/archive/2007.php +++ b/archive/2007.php @@ -64,7 +64,7 @@ Visit the website for m The PHP documentation team is pleased to announce the initial release of the new build system that generates the PHP Manual. Written in PHP, PhD ([PH]P based [D]ocBook renderer) builds are now available for -viewing at docs.php.net. Everyone is +viewing at php.net. Everyone is encouraged to test and use this system so that bugs will be found and squashed.

diff --git a/archive/2007.xml b/archive/2007.xml index 55eaba097..2051f28e8 100644 --- a/archive/2007.xml +++ b/archive/2007.xml @@ -56,7 +56,7 @@ Visit the website for m The PHP documentation team is pleased to announce the initial release of the new build system that generates the PHP Manual. Written in PHP, PhD ([PH]P based [D]ocBook renderer) builds are now available for -viewing at docs.php.net. Everyone is +viewing at php.net. Everyone is encouraged to test and use this system so that bugs will be found and squashed.

diff --git a/archive/2009.php b/archive/2009.php index 1da86b1c9..26a252594 100644 --- a/archive/2009.php +++ b/archive/2009.php @@ -829,7 +829,7 @@ site_header("News Archive - 2009", ["cache" => true]);
  • Support for namespaces
  • Under the hood performance improvements
  • Late static binding
  • -
  • Lambda functions and closures
  • +
  • Lambda functions and closures
  • Syntax additions: NOWDOC, limited GOTO, diff --git a/archive/2012.php b/archive/2012.php index 5228454d1..2f72ff967 100644 --- a/archive/2012.php +++ b/archive/2012.php @@ -607,7 +607,7 @@ site_header("News Archive - 2012", ["cache" => true]); encouraged to upgrade to PHP 5.4.4 or PHP 5.3.14.

    The release fixes multiple security issues: A weakness in the DES - implementation of crypt and a + implementation of crypt and a heap overflow issue in the phar extension

    PHP 5.4.4 and PHP 5.3.14 fixes over 30 bugs. Please note that the @@ -918,7 +918,7 @@ site_header("News Archive - 2012", ["cache" => true]);

    Some of the key new features include: traits, - a shortened array syntax, + a shortened array syntax, a built-in webserver for testing purposes and more. PHP 5.4.0 significantly improves performance, memory footprint and fixes over diff --git a/archive/2014.php b/archive/2014.php index 7a61874b9..6dc4f4f8c 100644 --- a/archive/2014.php +++ b/archive/2014.php @@ -1196,7 +1196,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. @@ -1395,7 +1395,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. @@ -1445,7 +1445,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. @@ -1540,7 +1540,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. @@ -1731,7 +1731,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. @@ -1804,7 +1804,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. @@ -1952,7 +1952,7 @@ The list of changes is recorded in the documentation + documentation or you can read the full list of changes in the NEWS file contained in the release archive. diff --git a/download-docs.php b/download-docs.php index e4b3e27c4..b8714ea57 100644 --- a/download-docs.php +++ b/download-docs.php @@ -91,10 +91,6 @@ $filepath = $filename = ''; // Go through all possible manual languages foreach (Languages::LANGUAGES as $langcode => $language) { - if (isset(Languages::INACTIVE_ONLINE_LANGUAGES[$langcode]) && $MYSITE !== 'http://docs.php.net/') { - continue; - } - // Go through all possible manual formats foreach ($formats as $formatname => $extension) { diff --git a/manual/help-translate.php b/manual/help-translate.php index df69f428d..228460ff4 100644 --- a/manual/help-translate.php +++ b/manual/help-translate.php @@ -32,7 +32,7 @@ $archived = ['da', 'kr', 'pl', 'tw']; foreach (Languages::INACTIVE_ONLINE_LANGUAGES as $cc => $lang) { $link = 'no archive'; if (in_array($cc, $archived, true)) { - $link = 'archive'; + $link = 'archive'; } echo '

  • ', $lang, ': (', $link, ')
  • '; } diff --git a/releases/5_4_0.php b/releases/5_4_0.php index be67e7d4b..ee7fe0786 100644 --- a/releases/5_4_0.php +++ b/releases/5_4_0.php @@ -17,8 +17,8 @@ and includes a large number of new features and bug fixes.