Skip to content

Commit 5f7c6aa

Browse files
jordikroonderickr
authored andcommitted
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.
1 parent fbd19fc commit 5f7c6aa

File tree

8 files changed

+15
-19
lines changed

8 files changed

+15
-19
lines changed

archive/2007.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
The PHP documentation team is pleased to announce the initial release of
6565
the new build system that generates the PHP Manual. Written in PHP, PhD
6666
(<em>[PH]P based [D]ocBook renderer</em>) builds are now available for
67-
viewing at <a href="http://docs.php.net/">docs.php.net</a>. Everyone is
67+
viewing at <a href="https://www.php.net/">php.net</a>. Everyone is
6868
encouraged to test and use this system so
6969
that <a href="https://bugs.php.net/">bugs</a> will be found and squashed.
7070
</p>

archive/2007.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Visit <a href="http://www.prophp.com.br/phpconference.php">the website</a> for m
5656
The PHP documentation team is pleased to announce the initial release of
5757
the new build system that generates the PHP Manual. Written in PHP, PhD
5858
(<em>[PH]P based [D]ocBook renderer</em>) builds are now available for
59-
viewing at <a href="http://docs.php.net/">docs.php.net</a>. Everyone is
59+
viewing at <a href="https://www.php.net/">php.net</a>. Everyone is
6060
encouraged to test and use this system so
6161
that <a href="https://bugs.php.net/">bugs</a> will be found and squashed.
6262
</p>

archive/2009.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@
829829
<li>Support for <a href="http://php.net/namespaces">namespaces</a></li>
830830
<li>Under the hood performance improvements</li>
831831
<li><a href="http://php.net/lsb">Late static binding</a></li>
832-
<li><a href="http://docs.php.net/functions.anonymous">Lambda functions and closures</a></li>
832+
<li><a href="https://www.php.net/functions.anonymous">Lambda functions and closures</a></li>
833833
<li>
834834
Syntax additions:
835835
<a href="http://php.net/manual/language.types.string.php#language.types.string.syntax.nowdoc">NOWDOC</a>, limited GOTO,

archive/2012.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
encouraged to upgrade to PHP 5.4.4 or PHP 5.3.14.</p>
608608

609609
<p>The release fixes multiple security issues: A weakness in the DES
610-
implementation of <a href="http://docs.php.net/crypt">crypt</a> and a
610+
implementation of <a href="https://www.php.net/crypt">crypt</a> and a
611611
heap overflow issue in the phar extension</p>
612612

613613
<p>PHP 5.4.4 and PHP 5.3.14 fixes over 30 bugs. Please note that the
@@ -918,7 +918,7 @@ classes in multiple threads.
918918
<p>
919919
Some of the key new features include:
920920
<a href="http://php.net/traits">traits</a>,
921-
<a href="http://docs.php.net/manual/en/language.types.array.php">a shortened array syntax</a>,
921+
<a href="https://www.php.net/manual/en/language.types.array.php">a shortened array syntax</a>,
922922
<a href="http://php.net/manual/en/features.commandline.webserver.php">
923923
a built-in webserver for testing purposes</a>
924924
and more. PHP 5.4.0 significantly improves performance, memory footprint and fixes over

archive/2014.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@
11961196

11971197
<p>
11981198
For more information about the new features you can check out the work-in-progress
1199-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1199+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
12001200
or you can read the full list of changes in the
12011201
<a href="https://github.com/php/php-src/blob/php-5.6.0beta4/NEWS">NEWS file</a>
12021202
contained in the release archive.
@@ -1395,7 +1395,7 @@
13951395
<strong>THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!</strong>
13961396

13971397
<p>For more information about the new features you can check out the work-in-progress
1398-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1398+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
13991399
or you can read the full list of changes in the
14001400
<a href="https://github.com/php/php-src/blob/php-5.6.0beta3/NEWS">NEWS file</a> contained
14011401
in the release archive.
@@ -1445,7 +1445,7 @@
14451445
</ul>
14461446

14471447
<p>For more information about the new features you can check out the work-in-progress
1448-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1448+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
14491449
or you can read the full list of changes in the
14501450
<a href="https://github.com/php/php-src/blob/php-5.6.0beta2/NEWS">NEWS file</a> contained
14511451
in the release archive.
@@ -1540,7 +1540,7 @@
15401540
</ul>
15411541

15421542
<p>For more information about the new features you can check out the work-in-progress
1543-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1543+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
15441544
or you can read the full list of changes in the
15451545
<a href="https://github.com/php/php-src/blob/php-5.6.0beta1/NEWS">NEWS file</a> contained
15461546
in the release archive.
@@ -1731,7 +1731,7 @@
17311731
</ul>
17321732

17331733
<p>For more information about the new features you can check out the work-in-progress
1734-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1734+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
17351735
or you can read the full list of changes in the
17361736
<a href="https://github.com/php/php-src/blob/php-5.6.0alpha3/NEWS">NEWS file</a> contained
17371737
in the release archive.
@@ -1804,7 +1804,7 @@
18041804
</ul>
18051805

18061806
<p>For more information about the new features you can check out the work-in-progress
1807-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1807+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
18081808
or you can read the full list of changes in the
18091809
<a href="https://github.com/php/php-src/blob/php-5.6.0alpha2/NEWS">NEWS file</a> contained
18101810
in the release archive.
@@ -1952,7 +1952,7 @@
19521952
</ul>
19531953

19541954
<p>For more information about the new features you can check out the work-in-progress
1955-
<a href="http://docs.php.net/manual/en/migration56.new-features.php">documentation</a>
1955+
<a href="https://www.php.net/manual/en/migration56.new-features.php">documentation</a>
19561956
or you can read the full list of changes in the
19571957
<a href="https://github.com/php/php-src/blob/php-5.6.0alpha1/NEWS">NEWS file</a> contained
19581958
in the release archive.

download-docs.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@
9191

9292
// Go through all possible manual languages
9393
foreach (Languages::LANGUAGES as $langcode => $language) {
94-
if (isset(Languages::INACTIVE_ONLINE_LANGUAGES[$langcode]) && $MYSITE !== 'http://docs.php.net/') {
95-
continue;
96-
}
97-
9894
// Go through all possible manual formats
9995
foreach ($formats as $formatname => $extension) {
10096

manual/help-translate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
foreach (Languages::INACTIVE_ONLINE_LANGUAGES as $cc => $lang) {
3333
$link = 'no archive';
3434
if (in_array($cc, $archived, true)) {
35-
$link = '<a href="http://docs.php.net/manual/' . $cc . '">archive</a>';
35+
$link = '<a href="https://www.php.net/manual/' . $cc . '">archive</a>';
3636
}
3737
echo '<li>', $lang, ': (', $link, ')</li>';
3838
}

releases/5_4_0.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</p>
1818
<ul>
1919
<li>New language syntax including <a href="http://php.net/traits">Traits</a>,
20-
<a href="http://docs.php.net/manual/language.types.array.php">shortened array syntax</a>
21-
and <a href="http://docs.php.net/manual/migration54.new-features.php">more</a></li>
20+
<a href="https://www.php.net/manual/language.types.array.php">shortened array syntax</a>
21+
and <a href="https://www.php.net/manual/migration54.new-features.php">more</a></li>
2222
<li>Improved performance and reduced memory consumption</li>
2323
<li>Support for multibyte languages now available in all builds of PHP at the flip of a runtime switch</li>
2424
<li><a href="http://php.net/manual/features.commandline.webserver.php">

0 commit comments

Comments
 (0)