\n" . $LANGUAGES[$langcode] . " \n";
@@ -189,7 +189,7 @@
echo "";
if (!isset($lang_files[$formatname])) {
- echo " ";
+ echo ' ';
} else {
$fileinfo = $lang_files[$formatname];
diff --git a/download-logos.php b/download-logos.php
index f044336630..d1793a04df 100644
--- a/download-logos.php
+++ b/download-logos.php
@@ -10,7 +10,7 @@
under a GPL license.
';
-site_header("Download Logos", ["current" => "downloads"]);
+site_header('Download Logos', ['current' => 'downloads']);
// Print recommended star cell
function print_star(): void
@@ -21,9 +21,9 @@ function print_star(): void
// Provide a random bgcolor setting for a cell
function random_bgcolor($min, $max): void
{
- echo "style=\"background-color: #" .
+ echo 'style="background-color: #' .
sprintf('%02x%02x%02x', mt_rand($min, $max) * 51, mt_rand($min, $max) * 51, mt_rand($min, $max) * 51) .
- ";\"";
+ ';"';
}
?>
@@ -65,7 +65,7 @@ function random_bgcolor($min, $max): void
-
+
SVG |
PNG
@@ -78,7 +78,7 @@ function random_bgcolor($min, $max): void
-
+
SVG |
PNG
@@ -98,7 +98,7 @@ function random_bgcolor($min, $max): void
-
+
(not exactly as shown)
@@ -115,7 +115,7 @@ function random_bgcolor($min, $max): void
-
+
(not exactly as shown)
@@ -131,7 +131,7 @@ function random_bgcolor($min, $max): void
>
-
+
@@ -146,7 +146,7 @@ function random_bgcolor($min, $max): void
-
+
@@ -161,7 +161,7 @@ function random_bgcolor($min, $max): void
-
+
@@ -176,7 +176,7 @@ function random_bgcolor($min, $max): void
>
-
+
@@ -191,7 +191,7 @@ function random_bgcolor($min, $max): void
-
+
@@ -206,7 +206,7 @@ function random_bgcolor($min, $max): void
>
-
+
@@ -221,7 +221,7 @@ function random_bgcolor($min, $max): void
-
+
@@ -236,9 +236,9 @@ function random_bgcolor($min, $max): void
-
-
-
+
+
+
@@ -257,7 +257,7 @@ function random_bgcolor($min, $max): void
>
-
+
@@ -272,7 +272,7 @@ function random_bgcolor($min, $max): void
-
+
@@ -287,7 +287,7 @@ function random_bgcolor($min, $max): void
-
+
@@ -302,7 +302,7 @@ function random_bgcolor($min, $max): void
-
+
(not exactly as shown)
@@ -322,7 +322,7 @@ function random_bgcolor($min, $max): void
-
+
(not exactly as shown)
@@ -339,7 +339,7 @@ function random_bgcolor($min, $max): void
-
+
(not exactly as shown)
@@ -356,7 +356,7 @@ function random_bgcolor($min, $max): void
-
+
(not exactly as shown)
diff --git a/downloads.php b/downloads.php
index eaf7452d24..c2d0a772eb 100644
--- a/downloads.php
+++ b/downloads.php
@@ -25,17 +25,17 @@
Old archives
';
-site_header("Downloads",
+site_header('Downloads',
[
'link' => [
[
- "rel" => "alternate",
- "type" => "application/atom+xml",
- "href" => $MYSITE . "releases/feed.php",
- "title" => "PHP Release feed",
+ 'rel' => 'alternate',
+ 'type' => 'application/atom+xml',
+ 'href' => $MYSITE . 'releases/feed.php',
+ 'title' => 'PHP Release feed',
],
],
- "current" => "downloads",
+ 'current' => 'downloads',
],
);
?>
@@ -45,7 +45,7 @@
$a): ?>
-
+
diff --git a/elephpant.php b/elephpant.php
index 6b8aca09cf..24a3685b5f 100644
--- a/elephpant.php
+++ b/elephpant.php
@@ -9,7 +9,7 @@
see our licensing information page .
';
-site_header("ElePHPant", ["current" => "footer"]);
+site_header('ElePHPant', ['current' => 'footer']);
?>
diff --git a/error.php b/error.php
index a4d8f9a2c1..6ecf2376e0 100644
--- a/error.php
+++ b/error.php
@@ -35,40 +35,40 @@
// ============================================================================
// BC: handle bugs.php moved completely to bugs.php.net
-if (preg_match("!^bugs.php\\?(.+)$!", $URI, $array)) {
+if (preg_match('!^bugs.php\\?(.+)$!', $URI, $array)) {
mirror_redirect("https://bugs.php.net/?$array[1]");
}
// ============================================================================
// FC: handle advisories
-if (preg_match("!^security/advisories/PHPSA-(\\d+)\\.php$!", $URI, $array)) {
+if (preg_match('!^security/advisories/PHPSA-(\\d+)\\.php$!', $URI, $array)) {
status_header(200);
- $_GET["id"] = $array[1];
+ $_GET['id'] = $array[1];
include_once __DIR__ . '/security/index.php';
exit;
}
// ============================================================================
// Omit query string from URL and urldecode special chars
-$URI = urldecode(preg_replace("!(\\?.*$)!", "", $URI));
+$URI = urldecode(preg_replace('!(\\?.*$)!', '', $URI));
// ============================================================================
// An empty URI is useless at this point, so let's give them the search page
if (empty($URI)) {
- mirror_redirect("/search.php");
+ mirror_redirect('/search.php');
}
// ============================================================================
// Perform a redirect for manual figures, other images display a 404 automatically
-if (preg_match("!^manual/(\\w+)/(print|printwn)/figures/(.+)$!", $URI, $parts)) {
+if (preg_match('!^manual/(\\w+)/(print|printwn)/figures/(.+)$!', $URI, $parts)) {
mirror_redirect("/manual/$parts[1]/figures/$parts[3]");
-} elseif (preg_match("!\\.(pdf|gif|jpg|png)$!i", $URI)) {
+} elseif (preg_match('!\\.(pdf|gif|jpg|png)$!i', $URI)) {
error_404();
}
// ============================================================================
// BC: handle .php3 files that were renamed to .php
-if (preg_match("!(.*\\.php)3$!", $URI, $array)) {
+if (preg_match('!(.*\\.php)3$!', $URI, $array)) {
mirror_redirect("/$array[1]");
}
@@ -76,24 +76,24 @@
// BC: handle moving english manual down into its own directory (also supports
// default language manual accessibility on mirror sites through /manual/filename)
// @todo do we rely on this? how about removing it...
-if (preg_match("!^manual/([^/]*)$!", $URI, $array)) {
+if (preg_match('!^manual/([^/]*)$!', $URI, $array)) {
if (!isset($INACTIVE_ONLINE_LANGUAGES[$array[1]])) {
mirror_redirect("/manual/$LANG/$array[1]");
}
-} elseif (preg_match("!^manual/html/([^/]+)$!", $URI, $array)) {
- $array[1] = preg_replace("!.html$!", ".php", $array[1]);
+} elseif (preg_match('!^manual/html/([^/]+)$!', $URI, $array)) {
+ $array[1] = preg_replace('!.html$!', '.php', $array[1]);
mirror_redirect("/manual/$LANG/$array[1]");
}
// ============================================================================
// BC: News archive moved to subfolder
-if (preg_match("!^news-(\\d+)(\\.|$)!", $URI, $array)) {
+if (preg_match('!^news-(\\d+)(\\.|$)!', $URI, $array)) {
mirror_redirect("/archive/$array[1].php");
}
// ============================================================================
// BC: Release files moved to subfolder
-if (preg_match("!^release_([^\\.]+)(\\.php$|$)!", $URI, $array)) {
+if (preg_match('!^release_([^\\.]+)(\\.php$|$)!', $URI, $array)) {
mirror_redirect("/releases/$array[1].php");
}
@@ -101,17 +101,17 @@
// BC: Printer friendly manual page handling was separate previously, but we
// only need to redirect the old URLs now. Our pages are now printer friendly
// by design.
-if (preg_match("!^manual/(\\w+)/(print|printwn|html)((/.+)|$)!", $URI, $array)) {
- $array[3] = preg_replace("!.html$!", ".php", $array[3]);
+if (preg_match('!^manual/(\\w+)/(print|printwn|html)((/.+)|$)!', $URI, $array)) {
+ $array[3] = preg_replace('!.html$!', '.php', $array[3]);
mirror_redirect("/manual/$array[1]$array[3]");
}
// ============================================================================
// If someone is looking for something in distributions/* and it isn't there,
// send them to the /releases page since that is likely to be most helpful.
-if (preg_match("!^distributions/.*!", $URI, $array)) {
+if (preg_match('!^distributions/.*!', $URI, $array)) {
status_header(404);
- include_once __DIR__ . "/releases/index.php";
+ include_once __DIR__ . '/releases/index.php';
}
// ============================================================================
@@ -120,30 +120,30 @@
// ============================================================================
// Some nice URLs for getting something for download
-if (preg_match("!^get/([^/]+)$!", $URI, $what)) {
+if (preg_match('!^get/([^/]+)$!', $URI, $what)) {
switch ($what[1]) {
- case "php":
- $URI = "downloads";
+ case 'php':
+ $URI = 'downloads';
break;
- case "docs": // intentional
- case "documentation":
- $URI = "download-docs";
+ case 'docs': // intentional
+ case 'documentation':
+ $URI = 'download-docs';
break;
}
}
// ============================================================================
// Nice URLs for download files, so wget works completely well with download links
-if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
+if (preg_match('!^get/([^/]+)/from/([^/]+)(/mirror)?$!', $URI, $dlinfo)) {
$df = $dlinfo[1];
- if (strpos($df, "7-LATEST") !== false) {
- include_once __DIR__ . "/include/version.inc";
+ if (strpos($df, '7-LATEST') !== false) {
+ include_once __DIR__ . '/include/version.inc';
[$latest] = release_get_latest();
- $df = str_replace("7-LATEST", $latest, $df);
+ $df = str_replace('7-LATEST', $latest, $df);
}
- $mr = "https://www.php.net/";
+ $mr = 'https://www.php.net/';
// Check if that mirror really exists if not, bail out
if (!isset($MIRRORS[$mr])) {
@@ -152,7 +152,7 @@
}
// Start the download process
- include __DIR__ . "/include/do-download.inc";
+ include __DIR__ . '/include/do-download.inc';
$filename = get_actual_download_file($df);
if ($filename) {
status_header(200);
@@ -160,7 +160,7 @@
} else {
status_header(404);
/* The file didn't exist on this server.. ask the user to pick another mirror */
- include __DIR__ . "/include/get-download.inc";
+ include __DIR__ . '/include/get-download.inc';
}
exit;
}
@@ -172,7 +172,7 @@
// php.net/GH-123 -> php-src GH issue #123
if (preg_match('/^GH-(\d+)$/', $URI, $matches)) {
- mirror_redirect("https://github.com/php/php-src/issues/" . $matches[1]);
+ mirror_redirect('https://github.com/php/php-src/issues/' . $matches[1]);
}
// ============================================================================
@@ -248,16 +248,16 @@
// Refactored
'regexp.reference' => 'regexp.introduction',
- "security" => "manual/security",
+ 'security' => 'manual/security',
];
if (isset($manual_page_moves[$URI])) {
status_header(301);
- mirror_redirect("/" . $manual_page_moves[$URI]);
-} elseif (preg_match("!^manual/([^/]+)/([^/]+).php$!", $URI, $match) &&
+ mirror_redirect('/' . $manual_page_moves[$URI]);
+} elseif (preg_match('!^manual/([^/]+)/([^/]+).php$!', $URI, $match) &&
isset($manual_page_moves[$match[2]])) {
status_header(301);
- mirror_redirect("/manual/$match[1]/" . $manual_page_moves[$match[2]] . ".php");
+ mirror_redirect("/manual/$match[1]/" . $manual_page_moves[$match[2]] . '.php');
}
$manual_redirections = [
@@ -316,326 +316,326 @@
$uri_aliases = [
# PHP page shortcuts
- "download" => "downloads",
- "getphp" => "downloads",
- "getdocs" => "download-docs",
- "documentation" => "docs",
- "mailinglists" => "mailing-lists",
- "mailinglist" => "mailing-lists",
- "changelog" => "ChangeLog-8",
- "gethelp" => "support",
- "help" => "support",
- "unsubscribe" => "unsub",
- "subscribe" => "mailing-lists",
- "logos" => "download-logos",
+ 'download' => 'downloads',
+ 'getphp' => 'downloads',
+ 'getdocs' => 'download-docs',
+ 'documentation' => 'docs',
+ 'mailinglists' => 'mailing-lists',
+ 'mailinglist' => 'mailing-lists',
+ 'changelog' => 'ChangeLog-8',
+ 'gethelp' => 'support',
+ 'help' => 'support',
+ 'unsubscribe' => 'unsub',
+ 'subscribe' => 'mailing-lists',
+ 'logos' => 'download-logos',
# manual shortcuts
- "intro" => "introduction",
- "whatis" => "introduction",
- "whatisphp" => "introduction",
- "what_is_php" => "introduction",
-
- "windows" => "install.windows",
- "win32" => "install.windows",
-
- "globals" => "language.variables.predefined",
- "register_globals" => "security.globals",
- "registerglobals" => "security.globals",
- "manual/en/security.registerglobals.php" => "security.globals", // fix for 4.3.8 configure
- "magic_quotes" => "security.magicquotes",
- "magicquotes" => "security.magicquotes",
- "gd" => "image",
- "bcmath" => "bc",
+ 'intro' => 'introduction',
+ 'whatis' => 'introduction',
+ 'whatisphp' => 'introduction',
+ 'what_is_php' => 'introduction',
+
+ 'windows' => 'install.windows',
+ 'win32' => 'install.windows',
+
+ 'globals' => 'language.variables.predefined',
+ 'register_globals' => 'security.globals',
+ 'registerglobals' => 'security.globals',
+ 'manual/en/security.registerglobals.php' => 'security.globals', // fix for 4.3.8 configure
+ 'magic_quotes' => 'security.magicquotes',
+ 'magicquotes' => 'security.magicquotes',
+ 'gd' => 'image',
+ 'bcmath' => 'bc',
'streams' => 'book.stream',
- "mongodb" => "set.mongodb",
- "hrtime" => "function.hrtime", // Prefer function over PECL ext
-
- "callback" => "language.pseudo-types",
- "number" => "language.pseudo-types",
- "mixed" => "language.pseudo-types",
- "bool" => "language.types.boolean",
- "boolean" => "language.types.boolean",
- "int" => "language.types.integer",
- "integer" => "language.types.integer",
- "float" => "language.types.float",
- "string" => "language.types.string",
- "heredoc" => "language.types.string",
- "<<<" => "language.types.string",
- "object" => "language.types.object",
- "null" => "language.types.null",
+ 'mongodb' => 'set.mongodb',
+ 'hrtime' => 'function.hrtime', // Prefer function over PECL ext
+
+ 'callback' => 'language.pseudo-types',
+ 'number' => 'language.pseudo-types',
+ 'mixed' => 'language.pseudo-types',
+ 'bool' => 'language.types.boolean',
+ 'boolean' => 'language.types.boolean',
+ 'int' => 'language.types.integer',
+ 'integer' => 'language.types.integer',
+ 'float' => 'language.types.float',
+ 'string' => 'language.types.string',
+ 'heredoc' => 'language.types.string',
+ '<<<' => 'language.types.string',
+ 'object' => 'language.types.object',
+ 'null' => 'language.types.null',
'callable' => 'language.types.callable',
- "htaccess" => "configuration.changes",
- "php_value" => "configuration.changes",
-
- "ternary" => "language.operators.comparison",
- "instanceof" => "language.operators.type",
- "if" => "language.control-structures",
- "static" => "language.variables.scope",
- "global" => "language.variables.scope",
- "@" => "language.operators.errorcontrol",
- "&" => "language.references",
- "**" => "language.operators.arithmetic",
- "..." => "functions.arguments",
- "splat" => "functions.arguments",
- "arrow" => "functions.arrow",
- "fn" => "functions.arrow",
+ 'htaccess' => 'configuration.changes',
+ 'php_value' => 'configuration.changes',
+
+ 'ternary' => 'language.operators.comparison',
+ 'instanceof' => 'language.operators.type',
+ 'if' => 'language.control-structures',
+ 'static' => 'language.variables.scope',
+ 'global' => 'language.variables.scope',
+ '@' => 'language.operators.errorcontrol',
+ '&' => 'language.references',
+ '**' => 'language.operators.arithmetic',
+ '...' => 'functions.arguments',
+ 'splat' => 'functions.arguments',
+ 'arrow' => 'functions.arrow',
+ 'fn' => 'functions.arrow',
// ?:, ??, ??=
// These shortcuts can not be captured here since they
// don't actually produce a 404 error.
// Instead, we have a small check in index.php directly.
- "dowhile" => "control-structures.do.while",
-
- "tut" => "tutorial",
- "tut.php" => "tutorial", // BC
-
- "faq.php" => "faq", // BC
- "bugs.php" => "bugs", // BC
- "bugstats.php" => "bugstats", // BC
- "docs-echm.php" => "download-docs", // BC
-
- "odbc" => "uodbc", // BC
-
- "links" => "support", // BC
- "links.php" => "support", // BC
- "oracle" => "oci8",
- "_" => "function.gettext",
- "cli" => "features.commandline",
-
- "oop" => "language.oop5",
- "enum" => "language.enumerations",
- "enums" => "language.enumerations",
-
- "const" => "language.constants.syntax",
- "class" => "language.oop5.basic",
- "new" => "language.oop5.basic",
- "extends" => "language.oop5.basic",
- "clone" => "language.oop5.cloning",
- "construct" => "language.oop5.decon",
- "destruct" => "language.oop5.decon",
- "public" => "language.oop5.visibility",
- "private" => "language.oop5.visibility",
- "protected" => "language.oop5.visibility",
- "var" => "language.oop5.visibility",
- "abstract" => "language.oop5.abstract",
- "interface" => "language.oop5.interfaces",
- "interfaces" => "language.oop5.interfaces",
- "autoload" => "language.oop5.autoload",
- "__autoload" => "language.oop5.autoload",
- "language.oop5.reflection" => "book.reflection", // BC
- "::" => "language.oop5.paamayim-nekudotayim",
-
- "__construct" => "language.oop5.decon",
- "__destruct" => "language.oop5.decon",
- "__call" => "language.oop5.overloading",
- "__callstatic" => "language.oop5.overloading",
- "__get" => "language.oop5.overloading",
- "__set" => "language.oop5.overloading",
- "__isset" => "language.oop5.overloading",
- "__unset" => "language.oop5.overloading",
- "__sleep" => "language.oop5.magic",
- "__wakeup" => "language.oop5.magic",
- "__tostring" => "language.oop5.magic",
- "__set_state" => "language.oop5.magic",
- "__debuginfo" => "language.oop5.magic",
- "__clone" => "language.oop5.cloning",
-
- "throw" => "language.exceptions",
- "try" => "language.exceptions",
- "catch" => "language.exceptions",
- "lsb" => "language.oop5.late-static-bindings",
- "namespace" => "language.namespaces",
- "use" => "language.namespaces.using",
-
- "factory" => "language.oop5.patterns",
- "singleton" => "language.oop5.patterns",
-
- "trait" => "language.oop5.traits",
- "traits" => "language.oop5.traits",
-
- "news.php" => "archive/index", // BC
- "readme.mirror" => "mirroring", // BC
-
- "php5" => "language.oop5",
- "zend_changes.txt" => "language.oop5", // BC
- "zend2_example.phps" => "language.oop5", // BC
- "zend_changes_php_5_0_0b2.txt" => "language.oop5", // BC
- "zend-engine-2" => "language.oop5", // BC
- "zend-engine-2.php" => "language.oop5", // BC
-
- "news_php_5_0_0b2.txt" => "ChangeLog-5", // BC
- "news_php_5_0_0b3.txt" => "ChangeLog-5", // BC
-
- "manual/about-notes.php" => "manual/add-note", // BC
- "software/index.php" => "software", // BC
- "releases.php" => "releases/index", // BC
-
- "migration7" => "migration70", // Consistent with migration5
- "update_5_2.txt" => "migration52", // BC
- "readme_upgrade_51.php" => "migration51", // BC
- "internals" => "internals2", // BC
- "configuration.directives" => "ini.core", // BC
+ 'dowhile' => 'control-structures.do.while',
+
+ 'tut' => 'tutorial',
+ 'tut.php' => 'tutorial', // BC
+
+ 'faq.php' => 'faq', // BC
+ 'bugs.php' => 'bugs', // BC
+ 'bugstats.php' => 'bugstats', // BC
+ 'docs-echm.php' => 'download-docs', // BC
+
+ 'odbc' => 'uodbc', // BC
+
+ 'links' => 'support', // BC
+ 'links.php' => 'support', // BC
+ 'oracle' => 'oci8',
+ '_' => 'function.gettext',
+ 'cli' => 'features.commandline',
+
+ 'oop' => 'language.oop5',
+ 'enum' => 'language.enumerations',
+ 'enums' => 'language.enumerations',
+
+ 'const' => 'language.constants.syntax',
+ 'class' => 'language.oop5.basic',
+ 'new' => 'language.oop5.basic',
+ 'extends' => 'language.oop5.basic',
+ 'clone' => 'language.oop5.cloning',
+ 'construct' => 'language.oop5.decon',
+ 'destruct' => 'language.oop5.decon',
+ 'public' => 'language.oop5.visibility',
+ 'private' => 'language.oop5.visibility',
+ 'protected' => 'language.oop5.visibility',
+ 'var' => 'language.oop5.visibility',
+ 'abstract' => 'language.oop5.abstract',
+ 'interface' => 'language.oop5.interfaces',
+ 'interfaces' => 'language.oop5.interfaces',
+ 'autoload' => 'language.oop5.autoload',
+ '__autoload' => 'language.oop5.autoload',
+ 'language.oop5.reflection' => 'book.reflection', // BC
+ '::' => 'language.oop5.paamayim-nekudotayim',
+
+ '__construct' => 'language.oop5.decon',
+ '__destruct' => 'language.oop5.decon',
+ '__call' => 'language.oop5.overloading',
+ '__callstatic' => 'language.oop5.overloading',
+ '__get' => 'language.oop5.overloading',
+ '__set' => 'language.oop5.overloading',
+ '__isset' => 'language.oop5.overloading',
+ '__unset' => 'language.oop5.overloading',
+ '__sleep' => 'language.oop5.magic',
+ '__wakeup' => 'language.oop5.magic',
+ '__tostring' => 'language.oop5.magic',
+ '__set_state' => 'language.oop5.magic',
+ '__debuginfo' => 'language.oop5.magic',
+ '__clone' => 'language.oop5.cloning',
+
+ 'throw' => 'language.exceptions',
+ 'try' => 'language.exceptions',
+ 'catch' => 'language.exceptions',
+ 'lsb' => 'language.oop5.late-static-bindings',
+ 'namespace' => 'language.namespaces',
+ 'use' => 'language.namespaces.using',
+
+ 'factory' => 'language.oop5.patterns',
+ 'singleton' => 'language.oop5.patterns',
+
+ 'trait' => 'language.oop5.traits',
+ 'traits' => 'language.oop5.traits',
+
+ 'news.php' => 'archive/index', // BC
+ 'readme.mirror' => 'mirroring', // BC
+
+ 'php5' => 'language.oop5',
+ 'zend_changes.txt' => 'language.oop5', // BC
+ 'zend2_example.phps' => 'language.oop5', // BC
+ 'zend_changes_php_5_0_0b2.txt' => 'language.oop5', // BC
+ 'zend-engine-2' => 'language.oop5', // BC
+ 'zend-engine-2.php' => 'language.oop5', // BC
+
+ 'news_php_5_0_0b2.txt' => 'ChangeLog-5', // BC
+ 'news_php_5_0_0b3.txt' => 'ChangeLog-5', // BC
+
+ 'manual/about-notes.php' => 'manual/add-note', // BC
+ 'software/index.php' => 'software', // BC
+ 'releases.php' => 'releases/index', // BC
+
+ 'migration7' => 'migration70', // Consistent with migration5
+ 'update_5_2.txt' => 'migration52', // BC
+ 'readme_upgrade_51.php' => 'migration51', // BC
+ 'internals' => 'internals2', // BC
+ 'configuration.directives' => 'ini.core', // BC
# regexp. BC
- "regexp.reference.backslash" => "regexp.reference.escape",
- "regexp.reference.circudollar" => "regexp.reference.anchors",
- "regexp.reference.squarebrackets" => "regexp.reference.character-classes",
- "regexp.reference.verticalbar" => "regexp.reference.alternation",
+ 'regexp.reference.backslash' => 'regexp.reference.escape',
+ 'regexp.reference.circudollar' => 'regexp.reference.anchors',
+ 'regexp.reference.squarebrackets' => 'regexp.reference.character-classes',
+ 'regexp.reference.verticalbar' => 'regexp.reference.alternation',
# external shortcut aliases ;)
- "dochowto" => "phpdochowto",
+ 'dochowto' => 'phpdochowto',
# CVS -> SVN
- "anoncvs.php" => "git",
- "cvs-php.php" => "git-php",
+ 'anoncvs.php' => 'git',
+ 'cvs-php.php' => 'git-php',
# SVN -> Git
- "svn" => "git",
- "svn.php" => "git",
- "svn-php" => "git-php",
- "svn-php.php" => "git-php",
+ 'svn' => 'git',
+ 'svn.php' => 'git',
+ 'svn-php' => 'git-php',
+ 'svn-php.php' => 'git-php',
# CVSUp -> Nada
- "cvsup" => "mirroring",
+ 'cvsup' => 'mirroring',
# Other items
- "security/crypt" => "security/crypt_blowfish",
+ 'security/crypt' => 'security/crypt_blowfish',
# Bugfixes
- "array_sort" => "sort", // #64743
- "array-sort" => "sort", // #64743
+ 'array_sort' => 'sort', // #64743
+ 'array-sort' => 'sort', // #64743
# Removed pages
- "tips.php" => "urlhowto",
- "tips" => "urlhowto",
+ 'tips.php' => 'urlhowto',
+ 'tips' => 'urlhowto',
];
$external_redirects = [
- "php4news" => "https://github.com/php/php-src/raw/PHP-4.4/NEWS",
- "php5news" => "https://github.com/php/php-src/raw/PHP-5.6/NEWS",
- "php53news" => "https://github.com/php/php-src/raw/PHP-5.3/NEWS",
- "php54news" => "https://github.com/php/php-src/raw/PHP-5.4/NEWS",
- "php55news" => "https://github.com/php/php-src/raw/PHP-5.5/NEWS",
- "php56news" => "https://github.com/php/php-src/raw/PHP-5.6/NEWS",
- "php70news" => "https://github.com/php/php-src/raw/PHP-7.0/NEWS",
- "php71news" => "https://github.com/php/php-src/raw/PHP-7.1/NEWS",
- "php72news" => "https://github.com/php/php-src/raw/PHP-7.2/NEWS",
- "php73news" => "https://github.com/php/php-src/raw/PHP-7.3/NEWS",
- "php74news" => "https://github.com/php/php-src/raw/PHP-7.4/NEWS",
- "php80news" => "https://github.com/php/php-src/raw/PHP-8.0/NEWS",
- "phptrunknews" => "https://github.com/php/php-src/raw/master/NEWS",
- "pear" => "http://pear.php.net/",
- "bugs" => "https://bugs.php.net/",
- "bugstats" => "https://bugs.php.net/stats.php",
- "phpdochowto" => "http://doc.php.net/tutorial/",
- "rev" => "http://doc.php.net/revcheck.php?p=graph&lang=$LANG",
- "release/5_3_0.php" => "/releases/5_3_0.php", // PHP 5.3.0 release announcement had a typo
- "ideas.php" => "http://wiki.php.net/ideas", // BC
- "releases.atom" => "/releases/feed.php", // BC, No need to pre-generate it
- "spec" => "https://github.com/php/php-langspec",
- "sunglasses" => "https://www.youtube.com/watch?v=dQw4w9WgXcQ", // Temporary easter egg for bug#66144
+ 'php4news' => 'https://github.com/php/php-src/raw/PHP-4.4/NEWS',
+ 'php5news' => 'https://github.com/php/php-src/raw/PHP-5.6/NEWS',
+ 'php53news' => 'https://github.com/php/php-src/raw/PHP-5.3/NEWS',
+ 'php54news' => 'https://github.com/php/php-src/raw/PHP-5.4/NEWS',
+ 'php55news' => 'https://github.com/php/php-src/raw/PHP-5.5/NEWS',
+ 'php56news' => 'https://github.com/php/php-src/raw/PHP-5.6/NEWS',
+ 'php70news' => 'https://github.com/php/php-src/raw/PHP-7.0/NEWS',
+ 'php71news' => 'https://github.com/php/php-src/raw/PHP-7.1/NEWS',
+ 'php72news' => 'https://github.com/php/php-src/raw/PHP-7.2/NEWS',
+ 'php73news' => 'https://github.com/php/php-src/raw/PHP-7.3/NEWS',
+ 'php74news' => 'https://github.com/php/php-src/raw/PHP-7.4/NEWS',
+ 'php80news' => 'https://github.com/php/php-src/raw/PHP-8.0/NEWS',
+ 'phptrunknews' => 'https://github.com/php/php-src/raw/master/NEWS',
+ 'pear' => 'http://pear.php.net/',
+ 'bugs' => 'https://bugs.php.net/',
+ 'bugstats' => 'https://bugs.php.net/stats.php',
+ 'phpdochowto' => 'http://doc.php.net/tutorial/',
+ 'rev' => "http://doc.php.net/revcheck.php?p=graph&lang=$LANG",
+ 'release/5_3_0.php' => '/releases/5_3_0.php', // PHP 5.3.0 release announcement had a typo
+ 'ideas.php' => 'http://wiki.php.net/ideas', // BC
+ 'releases.atom' => '/releases/feed.php', // BC, No need to pre-generate it
+ 'spec' => 'https://github.com/php/php-langspec',
+ 'sunglasses' => 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', // Temporary easter egg for bug#66144
];
// Temporary hack to fix bug #49956 for mysqli -- Please don't hate me for this. Data taken from mysqli/summary.xml
$mysqli_redirects = [
- "mysqli_affected_rows" => "mysqli.affected-rows",
- "mysqli_get_client_version" => "mysqli.client-version",
- "mysqli_connect_errno" => "mysqli.connect-errno",
- "mysqli_connect_error" => "mysqli.connect-error",
- "mysqli_errno" => "mysqli.errno",
- "mysqli_error" => "mysqli.error",
- "mysqli_field_count" => "mysqli.field-count",
- "mysqli_get_host_info" => "mysqli.host-info",
- "mysqli_get_proto_info" => "mysqli.protocol-version",
- "mysqli_get_server_version" => "mysqli.server-version",
- "mysqli_info" => "mysqli.info",
- "mysqli_insert_id" => "mysqli.insert-id",
- "mysqli_sqlstate" => "mysqli.sqlstate",
- "mysqli_warning_count" => "mysqli.warning-count",
- "mysqli_autocommit" => "mysqli.autocommit",
- "mysqli_change_user" => "mysqli.change-user",
- "mysqli_character_set_name" => "mysqli.character-set-name",
- "mysqli_close" => "mysqli.close",
- "mysqli_commit" => "mysqli.commit",
- "mysqli_connect" => "mysqli.construct",
- "mysqli_debug" => "mysqli.debug",
- "mysqli_dump_debug_info" => "mysqli.dump-debug-info",
- "mysqli_get_charset" => "mysqli.get-charset",
- "mysqli_get_connection_stats" => "mysqli.get-connection-stats",
- "mysqli_get_client_info" => "mysqli.get-client-info",
- "mysqli_get_client_stats" => "mysqli.get-client-stats",
- "mysqli_get_cache_stats" => "mysqli.get-cache-stats",
- "mysqli_get_server_info" => "mysqli.get-server-info",
- "mysqli_get_warnings" => "mysqli.get-warnings",
- "mysqli_init" => "mysqli.init",
- "mysqli_kill" => "mysqli.kill",
- "mysqli_more_results" => "mysqli.more-results",
- "mysqli_multi_query" => "mysqli.multi-query",
- "mysqli_next_result" => "mysqli.next-result",
- "mysqli_options" => "mysqli.options",
- "mysqli_ping" => "mysqli.ping",
- "mysqli_prepare" => "mysqli.prepare",
- "mysqli_query" => "mysqli.query",
- "mysqli_real_connect" => "mysqli.real-connect",
- "mysqli_real_escape_string" => "mysqli.real-escape-string",
- "mysqli_real_query" => "mysqli.real-query",
- "mysqli_refresh" => "mysqli.refresh",
- "mysqli_rollback" => "mysqli.rollback",
- "mysqli_select_db" => "mysqli.select-db",
- "mysqli_set_charset" => "mysqli.set-charset",
- "mysqli_set_local_infile_default" => "mysqli.set-local-infile-default",
- "mysqli_set_local_infile_handler" => "mysqli.set-local-infile-handler",
- "mysqli_ssl_set" => "mysqli.ssl-set",
- "mysqli_stat" => "mysqli.stat",
- "mysqli_stmt_init" => "mysqli.stmt-init",
- "mysqli_store_result" => "mysqli.store-result",
- "mysqli_thread_id" => "mysqli.thread-id",
- "mysqli_thread_safe" => "mysqli.thread-safe",
- "mysqli_use_result" => "mysqli.use-result",
- "mysqli_stmt_affected_rows" => "mysqli-stmt.affected-rows",
- "mysqli_stmt_errno" => "mysqli-stmt.errno",
- "mysqli_stmt_error" => "mysqli-stmt.error",
- "mysqli_stmt_field_count" => "mysqli-stmt.field-count",
- "mysqli_stmt_insert_id" => "mysqli-stmt.insert-id",
- "mysqli_stmt_param_count" => "mysqli-stmt.param-count",
- "mysqli_stmt_sqlstate" => "mysqli-stmt.sqlstate",
- "mysqli_stmt_attr_get" => "mysqli-stmt.attr-get",
- "mysqli_stmt_attr_set" => "mysqli-stmt.attr-set",
- "mysqli_stmt_bind_param" => "mysqli-stmt.bind-param",
- "mysqli_stmt_bind_result" => "mysqli-stmt.bind-result",
- "mysqli_stmt_close" => "mysqli-stmt.close",
- "mysqli_stmt_data_seek" => "mysqli-stmt.data-seek",
- "mysqli_stmt_execute" => "mysqli-stmt.execute",
- "mysqli_stmt_fetch" => "mysqli-stmt.fetch",
- "mysqli_stmt_free_result" => "mysqli-stmt.free-result",
- "mysqli_stmt_get_result" => "mysqli-stmt.get-result",
- "mysqli_stmt_get_warnings" => "mysqli-stmt.get-warnings",
- "mysqli_stmt_more_results" => "mysqli-stmt.more-results",
- "mysqli_stmt_next_result" => "mysqli-stmt.next-result",
- "mysqli_stmt_num_rows" => "mysqli-stmt.num-rows",
- "mysqli_stmt_prepare" => "mysqli-stmt.prepare",
- "mysqli_stmt_reset" => "mysqli-stmt.reset",
- "mysqli_stmt_result_metadata" => "mysqli-stmt.result-metadata",
- "mysqli_stmt_send_long_data" => "mysqli-stmt.send-long-data",
- "mysqli_stmt_store_result" => "mysqli-stmt.store-result",
- "mysqli_field_tell" => "mysqli-result.current-field",
- "mysqli_num_fields" => "mysqli-result.field-count",
- "mysqli_fetch_lengths" => "mysqli-result.lengths",
- "mysqli_num_rows" => "mysqli-result.num-rows",
- "mysqli_data_seek" => "mysqli-result.data-seek",
- "mysqli_fetch_all" => "mysqli-result.fetch-all",
- "mysqli_fetch_array" => "mysqli-result.fetch-array",
- "mysqli_fetch_assoc" => "mysqli-result.fetch-assoc",
- "mysqli_fetch_field_direct" => "mysqli-result.fetch-field-direct",
- "mysqli_fetch_field" => "mysqli-result.fetch-field",
- "mysqli_fetch_fields" => "mysqli-result.fetch-fields",
- "mysqli_fetch_object" => "mysqli-result.fetch-object",
- "mysqli_fetch_row" => "mysqli-result.fetch-row",
- "mysqli_field_seek" => "mysqli-result.field-seek",
- "mysqli_free_result" => "mysqli-result.free",
- "mysqli_embedded_server_end" => "mysqli-driver.embedded-server-end",
- "mysqli_embedded_server_start" => "mysqli-driver.embedded-server-start",
+ 'mysqli_affected_rows' => 'mysqli.affected-rows',
+ 'mysqli_get_client_version' => 'mysqli.client-version',
+ 'mysqli_connect_errno' => 'mysqli.connect-errno',
+ 'mysqli_connect_error' => 'mysqli.connect-error',
+ 'mysqli_errno' => 'mysqli.errno',
+ 'mysqli_error' => 'mysqli.error',
+ 'mysqli_field_count' => 'mysqli.field-count',
+ 'mysqli_get_host_info' => 'mysqli.host-info',
+ 'mysqli_get_proto_info' => 'mysqli.protocol-version',
+ 'mysqli_get_server_version' => 'mysqli.server-version',
+ 'mysqli_info' => 'mysqli.info',
+ 'mysqli_insert_id' => 'mysqli.insert-id',
+ 'mysqli_sqlstate' => 'mysqli.sqlstate',
+ 'mysqli_warning_count' => 'mysqli.warning-count',
+ 'mysqli_autocommit' => 'mysqli.autocommit',
+ 'mysqli_change_user' => 'mysqli.change-user',
+ 'mysqli_character_set_name' => 'mysqli.character-set-name',
+ 'mysqli_close' => 'mysqli.close',
+ 'mysqli_commit' => 'mysqli.commit',
+ 'mysqli_connect' => 'mysqli.construct',
+ 'mysqli_debug' => 'mysqli.debug',
+ 'mysqli_dump_debug_info' => 'mysqli.dump-debug-info',
+ 'mysqli_get_charset' => 'mysqli.get-charset',
+ 'mysqli_get_connection_stats' => 'mysqli.get-connection-stats',
+ 'mysqli_get_client_info' => 'mysqli.get-client-info',
+ 'mysqli_get_client_stats' => 'mysqli.get-client-stats',
+ 'mysqli_get_cache_stats' => 'mysqli.get-cache-stats',
+ 'mysqli_get_server_info' => 'mysqli.get-server-info',
+ 'mysqli_get_warnings' => 'mysqli.get-warnings',
+ 'mysqli_init' => 'mysqli.init',
+ 'mysqli_kill' => 'mysqli.kill',
+ 'mysqli_more_results' => 'mysqli.more-results',
+ 'mysqli_multi_query' => 'mysqli.multi-query',
+ 'mysqli_next_result' => 'mysqli.next-result',
+ 'mysqli_options' => 'mysqli.options',
+ 'mysqli_ping' => 'mysqli.ping',
+ 'mysqli_prepare' => 'mysqli.prepare',
+ 'mysqli_query' => 'mysqli.query',
+ 'mysqli_real_connect' => 'mysqli.real-connect',
+ 'mysqli_real_escape_string' => 'mysqli.real-escape-string',
+ 'mysqli_real_query' => 'mysqli.real-query',
+ 'mysqli_refresh' => 'mysqli.refresh',
+ 'mysqli_rollback' => 'mysqli.rollback',
+ 'mysqli_select_db' => 'mysqli.select-db',
+ 'mysqli_set_charset' => 'mysqli.set-charset',
+ 'mysqli_set_local_infile_default' => 'mysqli.set-local-infile-default',
+ 'mysqli_set_local_infile_handler' => 'mysqli.set-local-infile-handler',
+ 'mysqli_ssl_set' => 'mysqli.ssl-set',
+ 'mysqli_stat' => 'mysqli.stat',
+ 'mysqli_stmt_init' => 'mysqli.stmt-init',
+ 'mysqli_store_result' => 'mysqli.store-result',
+ 'mysqli_thread_id' => 'mysqli.thread-id',
+ 'mysqli_thread_safe' => 'mysqli.thread-safe',
+ 'mysqli_use_result' => 'mysqli.use-result',
+ 'mysqli_stmt_affected_rows' => 'mysqli-stmt.affected-rows',
+ 'mysqli_stmt_errno' => 'mysqli-stmt.errno',
+ 'mysqli_stmt_error' => 'mysqli-stmt.error',
+ 'mysqli_stmt_field_count' => 'mysqli-stmt.field-count',
+ 'mysqli_stmt_insert_id' => 'mysqli-stmt.insert-id',
+ 'mysqli_stmt_param_count' => 'mysqli-stmt.param-count',
+ 'mysqli_stmt_sqlstate' => 'mysqli-stmt.sqlstate',
+ 'mysqli_stmt_attr_get' => 'mysqli-stmt.attr-get',
+ 'mysqli_stmt_attr_set' => 'mysqli-stmt.attr-set',
+ 'mysqli_stmt_bind_param' => 'mysqli-stmt.bind-param',
+ 'mysqli_stmt_bind_result' => 'mysqli-stmt.bind-result',
+ 'mysqli_stmt_close' => 'mysqli-stmt.close',
+ 'mysqli_stmt_data_seek' => 'mysqli-stmt.data-seek',
+ 'mysqli_stmt_execute' => 'mysqli-stmt.execute',
+ 'mysqli_stmt_fetch' => 'mysqli-stmt.fetch',
+ 'mysqli_stmt_free_result' => 'mysqli-stmt.free-result',
+ 'mysqli_stmt_get_result' => 'mysqli-stmt.get-result',
+ 'mysqli_stmt_get_warnings' => 'mysqli-stmt.get-warnings',
+ 'mysqli_stmt_more_results' => 'mysqli-stmt.more-results',
+ 'mysqli_stmt_next_result' => 'mysqli-stmt.next-result',
+ 'mysqli_stmt_num_rows' => 'mysqli-stmt.num-rows',
+ 'mysqli_stmt_prepare' => 'mysqli-stmt.prepare',
+ 'mysqli_stmt_reset' => 'mysqli-stmt.reset',
+ 'mysqli_stmt_result_metadata' => 'mysqli-stmt.result-metadata',
+ 'mysqli_stmt_send_long_data' => 'mysqli-stmt.send-long-data',
+ 'mysqli_stmt_store_result' => 'mysqli-stmt.store-result',
+ 'mysqli_field_tell' => 'mysqli-result.current-field',
+ 'mysqli_num_fields' => 'mysqli-result.field-count',
+ 'mysqli_fetch_lengths' => 'mysqli-result.lengths',
+ 'mysqli_num_rows' => 'mysqli-result.num-rows',
+ 'mysqli_data_seek' => 'mysqli-result.data-seek',
+ 'mysqli_fetch_all' => 'mysqli-result.fetch-all',
+ 'mysqli_fetch_array' => 'mysqli-result.fetch-array',
+ 'mysqli_fetch_assoc' => 'mysqli-result.fetch-assoc',
+ 'mysqli_fetch_field_direct' => 'mysqli-result.fetch-field-direct',
+ 'mysqli_fetch_field' => 'mysqli-result.fetch-field',
+ 'mysqli_fetch_fields' => 'mysqli-result.fetch-fields',
+ 'mysqli_fetch_object' => 'mysqli-result.fetch-object',
+ 'mysqli_fetch_row' => 'mysqli-result.fetch-row',
+ 'mysqli_field_seek' => 'mysqli-result.field-seek',
+ 'mysqli_free_result' => 'mysqli-result.free',
+ 'mysqli_embedded_server_end' => 'mysqli-driver.embedded-server-end',
+ 'mysqli_embedded_server_start' => 'mysqli-driver.embedded-server-start',
];
// Merge this temporary hack with $uri_aliases so it'll be treated as such
@@ -668,7 +668,7 @@
// ============================================================================
// Try to find the page using the preferred language as a manual page
-include_once __DIR__ . "/include/manual-lookup.inc";
+include_once __DIR__ . '/include/manual-lookup.inc';
$try = find_manual_page($LANG, $URI);
if ($try) {
status_header(200);
@@ -677,7 +677,7 @@
}
// BC. The class methods are now classname.methodname
if (preg_match("!^manual/(.+)/function\.(.+)-(.+).php$!", $URI, $array)) {
- $try = find_manual_page($array[1], $array[2] . "." . $array[3]);
+ $try = find_manual_page($array[1], $array[2] . '.' . $array[3]);
if ($try) {
status_header(301);
mirror_redirect($try);
@@ -687,9 +687,9 @@
// ============================================================================
// For manual pages for inactive languages, point visitors to the English page
-if (preg_match("!^manual/([^/]+)/([^/]+).php$!", $URI, $match) &&
+if (preg_match('!^manual/([^/]+)/([^/]+).php$!', $URI, $match) &&
isset($INACTIVE_ONLINE_LANGUAGES[$match[1]])) {
- $try = find_manual_page("en", $match[2]);
+ $try = find_manual_page('en', $match[2]);
if ($try) {
error_inactive_manual_page($INACTIVE_ONLINE_LANGUAGES[$match[1]], $try);
}
@@ -697,7 +697,7 @@
// ============================================================================
// 404 page for manual pages (eg. not built language)
-if (strpos($URI, "manual/") === 0) {
+if (strpos($URI, 'manual/') === 0) {
$legacy_manual_urls = get_legacy_manual_urls($URI);
if (count($legacy_manual_urls) > 0) {
fallback_to_legacy_manuals($legacy_manual_urls);
@@ -708,7 +708,7 @@
// ============================================================================
// If no match was found till this point, the last action is to start a
// search with the URI the user typed in
-$fallback = (myphpnet_urlsearch() === MYPHPNET_URL_MANUAL ? "404manual" : "404quickref");
+$fallback = (myphpnet_urlsearch() === MYPHPNET_URL_MANUAL ? '404manual' : '404quickref');
mirror_redirect(
'/search.php?show=' . $fallback . '&lang=' . urlencode($LANG) .
'&pattern=' . substr($_SERVER['REQUEST_URI'], 1),
diff --git a/get-involved.php b/get-involved.php
index 8df36b5069..695e20180f 100644
--- a/get-involved.php
+++ b/get-involved.php
@@ -2,7 +2,7 @@
$_SERVER['BASE_PAGE'] = 'get-involved.php';
include_once __DIR__ . '/include/prepend.inc';
-site_header("Get Involved", ["current" => "community"]);
+site_header('Get Involved', ['current' => 'community']);
?>
Contributing to PHP
diff --git a/git-php.php b/git-php.php
index bf6a980658..6721294506 100644
--- a/git-php.php
+++ b/git-php.php
@@ -24,14 +24,14 @@
Git . No Git account is required.
';
-site_header("Using Git for PHP Development", ["current" => "community"]);
+site_header('Using Git for PHP Development', ['current' => 'community']);
$groups = [
- "none" => "Choose One",
- "php" => "PHP Group",
- "pear" => "PEAR Group",
- "pecl" => "PECL Group",
- "doc" => "Doc Group",
+ 'none' => 'Choose One',
+ 'php' => 'PHP Group',
+ 'pear' => 'PEAR Group',
+ 'pecl' => 'PECL Group',
+ 'doc' => 'Doc Group',
];
?>
@@ -43,49 +43,49 @@
// We have a form submitted, and the user have read all the comments
if (count($_POST) && (!isset($_POST['purpose']) || !is_array($_POST['purpose']) || !count($_POST['purpose']))) {
// No error found yet
- $error = "";
+ $error = '';
// Check for errors
if (empty($_POST['id'])) {
- $error .= "You must supply a desired Git user id. ";
+ $error .= 'You must supply a desired Git user id. ';
} elseif (!preg_match('!^[a-z]\w+$!', $_POST['id']) || strlen($_POST['id']) > 16) {
- $error .= "Your user id must be from 1-16 characters long, start with " .
- "a letter and contain nothing but a-z, 0-9, and _ ";
+ $error .= 'Your user id must be from 1-16 characters long, start with ' .
+ 'a letter and contain nothing but a-z, 0-9, and _ ';
}
if (empty($_POST['fullname'])) {
- $error .= "You must supply your real name. ";
+ $error .= 'You must supply your real name. ';
}
if (empty($_POST['realpurpose'])) {
- $error .= "You must supply a reason for requesting the Git account. ";
+ $error .= 'You must supply a reason for requesting the Git account. ';
}
if (empty($_POST['password'])) {
- $error .= "You must supply a desired password. ";
+ $error .= 'You must supply a desired password. ';
}
if (empty($_POST['email']) || !is_emailable_address($_POST['email'])) {
- $error .= "You must supply a proper email address. ";
+ $error .= 'You must supply a proper email address. ';
}
if (empty($_POST['yesno']) || $_POST['yesno'] != 'yes') {
- $error .= "You did not fill the form out correctly. ";
+ $error .= 'You did not fill the form out correctly. ';
}
if (empty($_POST['group']) || $_POST['group'] === 'none' || !isset($groups[$_POST['group']])) {
- $error .= "You did not fill out where to send the request. ";
+ $error .= 'You did not fill out where to send the request. ';
}
if (empty($_POST['guidelines'])) {
- $error .= "You did not agree to follow the contribution guidelines. ";
+ $error .= 'You did not agree to follow the contribution guidelines. ';
}
// Post the request if there is no error
if (!$error) {
$error = posttohost(
- "https://main.php.net/entry/svn-account.php",
+ 'https://main.php.net/entry/svn-account.php',
[
- "username" => $_POST['id'],
- "name" => $_POST['fullname'],
- "email" => $_POST['email'],
- "passwd" => $_POST['password'],
- "note" => $_POST['realpurpose'],
- "yesno" => $_POST['yesno'],
- "group" => $_POST['group'],
+ 'username' => $_POST['id'],
+ 'name' => $_POST['fullname'],
+ 'email' => $_POST['email'],
+ 'passwd' => $_POST['password'],
+ 'note' => $_POST['realpurpose'],
+ 'yesno' => $_POST['yesno'],
+ 'group' => $_POST['group'],
],
);
// Error while posting
@@ -360,10 +360,10 @@ class="max" value="
$p) { ?>
$name) {
- $selected = (isset($_POST["group"]) && $_POST["group"] == $group) ? ' selected="selected"' : '';
+ $selected = (isset($_POST['group']) && $_POST['group'] == $group) ? ' selected="selected"' : '';
echo "$name \n";
}
?>
diff --git a/git.php b/git.php
index 71deee808f..da39b5b2cf 100644
--- a/git.php
+++ b/git.php
@@ -21,7 +21,7 @@
to contribute.
';
-site_header("Git Access", ["current" => "community"]);
+site_header('Git Access', ['current' => 'community']);
?>
Git Access
diff --git a/images/elephpants.php b/images/elephpants.php
index b950c92386..aa2ab4cd95 100644
--- a/images/elephpants.php
+++ b/images/elephpants.php
@@ -2,20 +2,20 @@
include_once __DIR__ . '/../include/prepend.inc';
-$now = $_SERVER["REQUEST_TIME"];
-if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
- $last = strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]);
+$now = $_SERVER['REQUEST_TIME'];
+if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
+ $last = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
/* Use the same logo for a day */
- if (strtotime("+1 day", $last) > $now) {
- header("HTTP/1.1 304 Not Modified");
+ if (strtotime('+1 day', $last) > $now) {
+ header('HTTP/1.1 304 Not Modified');
exit;
}
}
-$future = strtotime("+1 day", $now);
-$tsstring = gmdate("D, d M Y H:i:s ", $now) . "GMT";
-header("Last-Modified: " . $tsstring);
-header("Expires: " . date(DATE_RSS, $future));
+$future = strtotime('+1 day', $now);
+$tsstring = gmdate('D, d M Y H:i:s ', $now) . 'GMT';
+header('Last-Modified: ' . $tsstring);
+header('Expires: ' . date(DATE_RSS, $future));
/*
@@ -54,7 +54,7 @@
if (!$photos || !is_array($photos)) {
header('HTTP/1.1 500', true, 500);
echo json_encode([
- 'error' => "No elephpant metadata available.",
+ 'error' => 'No elephpant metadata available.',
]);
exit;
}
@@ -79,7 +79,7 @@
// add photo to response array.
$elephpants[] = [
'title' => $photo['title'],
- 'url' => "http://flickr.com/photos/" . $photo['owner'] . "/" . $photo['id'],
+ 'url' => 'http://flickr.com/photos/' . $photo['owner'] . '/' . $photo['id'],
'data' => base64_encode(file_get_contents($path . '/' . $photo['filename'])),
];
}
diff --git a/include/changelogs.inc b/include/changelogs.inc
index 1a63631438..8582f1d093 100644
--- a/include/changelogs.inc
+++ b/include/changelogs.inc
@@ -1,7 +1,7 @@
PHP {$major}.x \n ";
foreach ($minor_versions as $branch) {
- $sidebar .= " " . changelog_makelink($branch) . " \n";
+ $sidebar .= ' ' . changelog_makelink($branch) . " \n";
}
$sidebar .= " \n";
} else {
diff --git a/include/do-download.inc b/include/do-download.inc
index b31f763b2c..7a21d60e4d 100644
--- a/include/do-download.inc
+++ b/include/do-download.inc
@@ -30,11 +30,11 @@ function download_file($mirror, $file): void
status_header(302);
header('Location: ' . $mirror . 'distributions/' . $file);
} else {
- exit("Unable to serve you the requested file for download");
+ exit('Unable to serve you the requested file for download');
}
// Try to flush output, and make the browser really
// download the file, even if the log server is down
- echo " ";
+ echo ' ';
flush();
}
diff --git a/include/email-validation.inc b/include/email-validation.inc
index a4045127b2..3757b39e73 100644
--- a/include/email-validation.inc
+++ b/include/email-validation.inc
@@ -3,8 +3,8 @@
// Try to remove anti-SPAM bits
function clean_AntiSPAM($email)
{
- $remove_spam = "![-_]?(NO|I[-_]?HATE|DELETE|REMOVE)[-_]?(THIS)?(ME|SPAM)?[-_]?!i";
- return preg_replace($remove_spam, "", trim($email));
+ $remove_spam = '![-_]?(NO|I[-_]?HATE|DELETE|REMOVE)[-_]?(THIS)?(ME|SPAM)?[-_]?!i';
+ return preg_replace($remove_spam, '', trim($email));
}
// Try to check that this email address is valid
diff --git a/include/errors.inc b/include/errors.inc
index 17fd869123..6b40f7af6d 100644
--- a/include/errors.inc
+++ b/include/errors.inc
@@ -10,7 +10,7 @@ function error_404(): void
{
global $MYSITE;
status_header(404);
- site_header('404 Not Found', ["noindex"]);
+ site_header('404 Not Found', ['noindex']);
echo "Not Found \n" .
htmlspecialchars(substr($MYSITE, 0, -1) . $_SERVER['REQUEST_URI']) .
" not found on this server.
\n";
@@ -23,12 +23,12 @@ function error_404_manual(): void
{
global $MYSITE;
status_header(404);
- site_header('404 Not Found', ["noindex"]);
+ site_header('404 Not Found', ['noindex']);
echo "Not Found \n" .
- "The manual page you are looking for (" .
+ 'The manual page you are looking for (' .
htmlspecialchars(substr($MYSITE, 0, -1) . $_SERVER['REQUEST_URI']) .
- " ) is not available on this server right now. " .
- "Please check back later, or if the problem persists, " .
+ '
) is not available on this server right now. ' .
+ 'Please check back later, or if the problem persists, ' .
"contact the webmasters .
\n";
site_footer();
exit;
@@ -39,9 +39,9 @@ function error_inactive_manual_page($lang_name, $en_page): void
{
global $MYSITE, $ACTIVE_ONLINE_LANGUAGES;
status_header(404);
- site_header('Page gone', ["noindex"]);
+ site_header('Page gone', ['noindex']);
echo "Page gone \n" .
- "The " . htmlspecialchars($lang_name) . " manual page you are looking for (" .
+ 'The ' . htmlspecialchars($lang_name) . ' manual page you are looking for (' .
htmlspecialchars(substr($MYSITE, 0, -1) . $_SERVER['REQUEST_URI']) .
" ) is no longer available.
\n";
$en_url = htmlspecialchars(substr($MYSITE, 0, -1) . $en_page);
@@ -49,10 +49,10 @@ function error_inactive_manual_page($lang_name, $en_page): void
echo "Several other languages are also available:
\n";
echo "\n";
foreach ($ACTIVE_ONLINE_LANGUAGES as $alt_lang => $alt_lang_name) {
- if ($alt_lang === "en") {
+ if ($alt_lang === 'en') {
continue;
}
- $alt_url = htmlspecialchars(substr($MYSITE, 0, -1) . str_replace("/en/", "/{$alt_lang}/", $en_page));
+ $alt_url = htmlspecialchars(substr($MYSITE, 0, -1) . str_replace('/en/', "/{$alt_lang}/", $en_page));
echo "" . htmlspecialchars($alt_lang_name) . " \n";
}
echo " \n";
@@ -64,12 +64,12 @@ function error_inactive_manual_page($lang_name, $en_page): void
function error_noservice(): void
{
global $MYSITE;
- site_header('Service not working', ["noindex"]);
+ site_header('Service not working', ['noindex']);
echo "Service not working \n" .
- "The service you tried to access with " .
+ 'The service you tried to access with ' .
htmlspecialchars(substr($MYSITE, 0, -1) . $_SERVER['REQUEST_URI']) .
- " is not available on this server right now. " .
- "Please check back later, or if the problem persists, " .
+ '
is not available on this server right now. ' .
+ 'Please check back later, or if the problem persists, ' .
"contact the webmasters .
\n";
site_footer();
exit;
@@ -77,11 +77,11 @@ function error_noservice(): void
// There is no such mirror
function error_nomirror($mirror): void {
- site_header("No such mirror", ["noindex"]);
+ site_header('No such mirror', ['noindex']);
echo "No such mirror \nThe mirror you tried to access (" .
htmlspecialchars($mirror) .
- ") is not registered php.net mirror. Please check back later," .
- " or if the problem persists, " .
+ ') is not registered php.net mirror. Please check back later,' .
+ ' or if the problem persists, ' .
"contact the webmasters .
\n";
site_footer();
exit;
@@ -576,7 +576,7 @@ function is_known_snippet(string $term): ?string {
*/
function get_legacy_manual_urls(string $uri): array
{
- $filename = $_SERVER["DOCUMENT_ROOT"] . "/manual/legacyurls.json";
+ $filename = $_SERVER['DOCUMENT_ROOT'] . '/manual/legacyurls.json';
$pages_ids = json_decode(file_get_contents($filename), true);
$page_id = preg_replace_callback('/^manual\/.*\/(.*?)(\.php)?$/', function (array $matches): string {
if (count($matches) < 2) {
@@ -604,7 +604,7 @@ function fallback_to_legacy_manuals(array $legacy_urls): void
{
global $MYSITE;
status_header(404);
- site_header('404 Not Found', ["noindex"]);
+ site_header('404 Not Found', ['noindex']);
$original_url = htmlspecialchars(substr($MYSITE, 0, -1) . $_SERVER['REQUEST_URI']);
$legacy_links = '';
diff --git a/include/footer.inc b/include/footer.inc
index 6386a9aa24..33d6c80041 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -3,7 +3,7 @@
if (!empty($config['spanning-content'])) {
echo "";
echo $config['spanning-content'];
- echo "
";
+ echo '';
}
?>
@@ -87,7 +87,7 @@
' . "\n";
diff --git a/include/get-download.inc b/include/get-download.inc
index 2aeb1aa896..b16da2d344 100644
--- a/include/get-download.inc
+++ b/include/get-download.inc
@@ -4,7 +4,7 @@ header_nocache();
// No file to download
if (!isset($df)) {
- exit("No file requested for download");
+ exit('No file requested for download');
}
// Could be a normal download or a manual download file
@@ -31,8 +31,8 @@ echo '';
$size = 0;
// No downloadable file found
if ($file === false) {
- $info = "
- The file you requested (" . htmlspecialchars($df, ENT_QUOTES, "UTF-8") . " ) is not found on
+ $info = '
+ The file you requested (' . htmlspecialchars($df, ENT_QUOTES, 'UTF-8') . " ) is not found on
this server ({$MYSITE} ).
";
echo <<
";
+ 'uid Anatol Belski ';
case 'bukka':
return
@@ -18,33 +18,33 @@ function gpg_key_get(string $rm): ?string {
"uid [ultimate] Jakub Zelenka \n" .
"uid [ultimate] Jakub Zelenka \n" .
"uid [ultimate] Jakub Zelenka \n" .
- "sub cv25519 2021-04-10 [E]";
+ 'sub cv25519 2021-04-10 [E]';
case 'carusogabriel-old':
return
"pub rsa4096 2020-05-09 [SC] [expires: 2024-05-08]\n" .
" BFDD D286 4282 4F81 18EF 7790 9B67 A5C1 2229 118F\n" .
"uid [ultimate] Gabriel Caruso (Release Manager) \n" .
- "sub rsa4096 2020-05-09 [E] [expires: 2024-05-08]";
+ 'sub rsa4096 2020-05-09 [E] [expires: 2024-05-08]';
case 'carusogabriel-new':
return
"pub rsa4096 2022-08-30 [SC] [expires: 2024-08-29]\n" .
" 2C16 C765 DBE5 4A08 8130 F1BC 4B9B 5F60 0B55 F3B4\n" .
"uid [ultimate] Gabriel Caruso \n" .
- "sub rsa4096 2022-08-30 [E] [expires: 2024-08-29]";
+ 'sub rsa4096 2022-08-30 [E] [expires: 2024-08-29]';
case 'cmb':
return
"pub rsa4096/118BCCB6 2018-06-05 [SC] [expires: 2022-06-04]\n" .
" Key fingerprint = CBAF 69F1 73A0 FEA4 B537 F470 D66C 9593 118B CCB6\n" .
- "uid Christoph M. Becker ";
+ 'uid Christoph M. Becker ';
case 'davey':
return
"pub 4096R/7BD5DCD0 2016-05-07\n" .
" Key fingerprint = A917 B1EC DA84 AEC2 B568 FED6 F50A BC80 7BD5 DCD0\n" .
- "uid Davey Shafik ";
+ 'uid Davey Shafik ';
case 'derick':
return
@@ -54,13 +54,13 @@ function gpg_key_get(string $rm): ?string {
"uid [ultimate] Derick Rethans \n" .
"uid [ultimate] Derick Rethans (GitHub) \n" .
"uid [ultimate] Derick Rethans (PHP) \n" .
- "ssb rsa4096 2019-06-11 [E] [expires: 2029-06-08]";
+ 'ssb rsa4096 2019-06-11 [E] [expires: 2029-06-08]';
case 'dsp':
return
"pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]\n" .
" Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D\n" .
- "uid David Soria Parra ";
+ 'uid David Soria Parra ';
case 'ericmann':
return
@@ -72,66 +72,66 @@ function gpg_key_get(string $rm): ?string {
"uid [ultimate] Eric Mann \n" .
"sub rsa4096 2016-11-25 [S]\n" .
"sub rsa4096 2016-11-25 [E]\n" .
- "sub rsa4096 2016-11-25 [A]";
+ 'sub rsa4096 2016-11-25 [A]';
case 'johannes':
return
"pub 2048R/FC9C83D7 2012-03-18 [expires: 2017-03-17]\n" .
" Key fingerprint = 0A95 E9A0 2654 2D53 835E 3F3A 7DEC 4E69 FC9C 83D7\n" .
"uid Johannes Schlüter \n" .
- "uid Johannes Schlüter ";
+ 'uid Johannes Schlüter ';
case 'jpauli':
return
"pub 2048R/90D90EC1 2013-07-18 [expire : 2016-07-17]\n" .
" Key fingerprint = 0BD7 8B5F 9750 0D45 0838 F95D FE85 7D9A 90D9 0EC1\n" .
- "uid Julien Pauli ";
+ 'uid Julien Pauli ';
case 'krakjoe':
return
"pub 2048R/31CBD89E 2016-12-08\n" .
" Key fingerprint = 5289 95BF EDFB A719 1D46 839E F9BA 0ADA 31CB D89E\n" .
- "uid Joe Watkins ";
+ 'uid Joe Watkins ';
case 'patrickallaert':
return
"pub rsa4096 2021-04-01 [SC]\n" .
" F1F6 9223 8FBC 1666 E5A5 CCD4 199F 9DFE F6FF BAFD\n" .
"uid [ultimate] Patrick Allaert \n" .
- "sub rsa4096 2021-04-01 [E]";
+ 'sub rsa4096 2021-04-01 [E]';
case 'petk':
return
"pub rsa4096 2019-05-29 [SC] [expires: 2021-05-28]\n" .
" 4267 0A7F E4D0 441C 8E46 3234 9E4F DC07 4A4E F02D\n" .
"uid [ultimate] Peter Kokot \n" .
- "sub rsa4096 2019-05-29 [E] [expires: 2021-05-28]";
+ 'sub rsa4096 2019-05-29 [E] [expires: 2021-05-28]';
case 'pierrick':
return
"pub rsa4096 2021-04-01 [SC]\n" .
" 1198 C011 7593 497A 5EC5 C199 286A F1F9 8974 69DC\n" .
"uid [ultimate] Pierrick Charron \n" .
- "sub rsa4096 2021-04-01 [E]";
+ 'sub rsa4096 2021-04-01 [E]';
case 'pollita':
return
"pub 4096R/70D12172 2017-04-14 [expires: 2024-04-21]\n" .
" Key fingerprint = 1729 F839 38DA 44E2 7BA0 F4D3 DBDB 3974 70D1 2172\n" .
- "uid Sara Golemon ";
+ 'uid Sara Golemon ';
case 'ramsey':
return
"pub rsa4096 2021-04-26 [SC] [expires: 2025-11-24]\n" .
" 39B6 4134 3D8C 104B 2B14 6DC3 F9C3 9DC0 B969 8544\n" .
"uid [ultimate] Ben Ramsey \n" .
- "sub rsa4096 2021-04-26 [E] [expires: 2025-11-24]";
+ 'sub rsa4096 2021-04-26 [E] [expires: 2025-11-24]';
case 'remi':
return
"pub 4096R/EE5AF27F 2017-05-24 [expires: 2024-05-22]\n" .
" Key fingerprint = B1B4 4D8F 021E 4E2D 6021 E995 DC9F F8D3 EE5A F27F\n" .
- "uid Remi Collet ";
+ 'uid Remi Collet ';
case 'sergey':
return
@@ -140,7 +140,7 @@ function gpg_key_get(string $rm): ?string {
"uid [ultimate] Sergey Panteleev \n" .
"uid [ultimate] Sergey Panteleev \n" .
"uid [ultimate] Sergey Panteleev \n" .
- "sub rsa4096 2021-03-26 [E] [expires: 2025-03-26]";
+ 'sub rsa4096 2021-03-26 [E] [expires: 2025-03-26]';
case 'stas':
return
@@ -148,13 +148,13 @@ function gpg_key_get(string $rm): ?string {
" Key fingerprint = F382 5282 6ACD 957E F380 D39F 2F79 56BC 5DA0 4B5D\n" .
"uid Stanislav Malyshev (PHP key) \n" .
"uid Stanislav Malyshev (PHP key) \n" .
- "uid Stanislav Malyshev (PHP key) ";
+ 'uid Stanislav Malyshev (PHP key) ';
case 'tyrael':
return
"pub 2048R/33CFC8B3 2014-01-14 [expires: 2020-01-13]\n" .
" Key fingerprint = 6E4F 6AB3 21FD C07F 2C33 2E3A C2BF 0BC4 33CF C8B3\n" .
- "uid Ferenc Kovacs ";
+ 'uid Ferenc Kovacs ';
default:
return null;
diff --git a/include/header.inc b/include/header.inc
index 26a13846f0..315b8cb4f9 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -9,8 +9,8 @@ $css_files = [
if (isset($config['css'])) {
$css_files = array_merge($css_files, (array) $config['css']);
}
-if (isset($config["css_overwrite"])) {
- $css_files = $config["css_overwrite"];
+if (isset($config['css_overwrite'])) {
+ $css_files = $config['css_overwrite'];
}
foreach($css_files as $filename) {
@@ -27,22 +27,22 @@ if (isset($shortname) && $shortname) {
header("Link: <$shorturl>; rel=shorturl");
}
-if ($config["cache"]) {
- if (is_numeric($config["cache"])) {
- $timestamp = $config["cache"];
+if ($config['cache']) {
+ if (is_numeric($config['cache'])) {
+ $timestamp = $config['cache'];
} else {
- $timestamp = filemtime($_SERVER["DOCUMENT_ROOT"] . "/" . $_SERVER["BASE_PAGE"]);
+ $timestamp = filemtime($_SERVER['DOCUMENT_ROOT'] . '/' . $_SERVER['BASE_PAGE']);
}
- $tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT";
+ $tsstring = gmdate('D, d M Y H:i:s ', $timestamp) . 'GMT';
- if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && $_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring) {
- header("HTTP/1.1 304 Not Modified");
+ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $_SERVER['HTTP_IF_MODIFIED_SINCE'] == $tsstring) {
+ header('HTTP/1.1 304 Not Modified');
exit;
}
- header("Last-Modified: " . $tsstring);
+ header('Last-Modified: ' . $tsstring);
}
-if (!isset($config["languages"])) {
- $config["languages"] = [];
+if (!isset($config['languages'])) {
+ $config['languages'] = [];
}
?>
@@ -73,20 +73,20 @@ if (!isset($config["languages"])) {
- $page): ?>
+ $page): ?>
-
- " hreflang="">
+
+
$modified): ?>
-
- ">
+
+
@@ -100,11 +100,11 @@ if (!isset($config["languages"])) {
-
-
+
+
-
+
diff --git a/include/historical_mirrors.inc b/include/historical_mirrors.inc
index 12dca14e54..1e694e016c 100644
--- a/include/historical_mirrors.inc
+++ b/include/historical_mirrors.inc
@@ -1,90 +1,90 @@
$idx[1]) {
- $country = "NA"; break;
+ $country = 'NA'; break;
}
// Try to read record
$record = fread($ipdb, 24);
// Unable to read the record => error
- if (strlen($record) != 24) { $country = "NA"; break; }
+ if (strlen($record) != 24) { $country = 'NA'; break; }
// Split the record to it's parts
$range_start = (float) substr($record, 0, 10);
@@ -180,7 +180,7 @@ function i2c_search_in_db($ip, $idx)
function i2c_valid_country()
{
global $COUNTRY, $COUNTRIES;
- return (!empty($COUNTRY) && $COUNTRY != "NA" && isset($COUNTRIES[$COUNTRY]));
+ return (!empty($COUNTRY) && $COUNTRY != 'NA' && isset($COUNTRIES[$COUNTRY]));
}
// Returns the real IP address of the user
@@ -191,8 +191,8 @@ function i2c_realip()
$ip = false;
// If HTTP_CLIENT_IP is set, then give it priority
- if (!empty($_SERVER["HTTP_CLIENT_IP"])) {
- $ip = $_SERVER["HTTP_CLIENT_IP"];
+ if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
+ $ip = $_SERVER['HTTP_CLIENT_IP'];
}
// User is behind a proxy and check that we discard RFC1918 IP addresses
@@ -202,7 +202,7 @@ function i2c_realip()
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
// Put the IP's into an array which we shall work with shortly.
- $ips = explode(", ", $_SERVER['HTTP_X_FORWARDED_FOR']);
+ $ips = explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR']);
if ($ip) { array_unshift($ips, $ip); $ip = false; }
for ($i = 0; $i < count($ips); $i++) {
diff --git a/include/langchooser.inc b/include/langchooser.inc
index f86ef8e83f..50c07f920c 100644
--- a/include/langchooser.inc
+++ b/include/langchooser.inc
@@ -52,11 +52,11 @@ function language_choose_code()
$explicitly_specified = language_add(htmlspecialchars($_REQUEST['lang'], ENT_QUOTES, 'UTF-8'), $languages);
// Set the language in a cookie for a year
- mirror_setcookie("LAST_LANG", $explicitly_specified, 60 * 60 * 24 * 365);
+ mirror_setcookie('LAST_LANG', $explicitly_specified, 60 * 60 * 24 * 365);
}
// Specified in a shortcut URL (eg. /en/echo or /pt_br/echo)
- if (preg_match("!^/(\\w{2}(_\\w{2})?)/!", htmlspecialchars($_SERVER['REQUEST_URI'],ENT_QUOTES, 'UTF-8'), $flang)) {
+ if (preg_match('!^/(\\w{2}(_\\w{2})?)/!', htmlspecialchars($_SERVER['REQUEST_URI'],ENT_QUOTES, 'UTF-8'), $flang)) {
// Put language into preference list
$rlang = language_add($flang[1], $languages);
@@ -68,13 +68,13 @@ function language_choose_code()
// Drop out langauge specification from URL, as this is already handled
$_SERVER['STRIPPED_URI'] = preg_replace(
- "!^/$flang[1]/!", "/", htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8'),
+ "!^/$flang[1]/!", '/', htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8'),
);
}
// Specified in a manual URL (eg. manual/en/ or manual/pt_br/)
- if (preg_match("!^/manual/(\\w{2}(_\\w{2})?)(/|$)!", htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8'), $flang)) {
+ if (preg_match('!^/manual/(\\w{2}(_\\w{2})?)(/|$)!', htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES, 'UTF-8'), $flang)) {
$flang = language_add($flang[1], $languages);
@@ -84,7 +84,7 @@ function language_choose_code()
}
// Set the language in a cookie for a year
- mirror_setcookie("LAST_LANG", $flang, 60 * 60 * 24 * 365);
+ mirror_setcookie('LAST_LANG', $flang, 60 * 60 * 24 * 365);
}
// Honor the users own language setting (if available)
@@ -99,14 +99,14 @@ function language_choose_code()
// Check if we have $_SERVER['HTTP_ACCEPT_LANGUAGE'] set and
// it no longer breaks if you only have one language set :)
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
- $browser_accept = explode(",", $_SERVER['HTTP_ACCEPT_LANGUAGE']);
+ $browser_accept = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
// Go through all language preference specs
foreach ($browser_accept as $value) {
// The language part is either a code or a code with a quality
// We cannot do anything with a * code, so it is skipped
// If the quality is missing, it is assumed to be 1 according to the RFC
- if (preg_match("!([a-z-]+)(;q=([0-9\\.]+))?!", trim($value), $found)) {
+ if (preg_match('!([a-z-]+)(;q=([0-9\\.]+))?!', trim($value), $found)) {
$quality = (isset($found[3]) ? (float) $found[3] : 1.0);
$browser_langs[] = [$found[1], $quality];
}
@@ -115,23 +115,23 @@ function language_choose_code()
}
// Order the codes by quality
- usort($browser_langs, "language_accept_order");
+ usort($browser_langs, 'language_accept_order');
// For all languages found in the accept-language
foreach ($browser_langs as $langdata) {
// Translation table for accept-language codes and phpdoc codes
switch ($langdata[0]) {
- case "pt-br":
+ case 'pt-br':
$langdata[0] = 'pt_br';
break;
- case "zh-cn":
+ case 'zh-cn':
$langdata[0] = 'zh';
break;
- case "zh-hk":
+ case 'zh-hk':
$langdata[0] = 'hk';
break;
- case "zh-tw":
+ case 'zh-tw':
$langdata[0] = 'tw';
break;
}
@@ -139,7 +139,7 @@ function language_choose_code()
// We do not support flavors of languages (except the ones above)
// This is not in conformance to the RFC, but it here for user
// convinience reasons
- if (preg_match("!^(.+)-!", $langdata[0], $match)) {
+ if (preg_match('!^(.+)-!', $langdata[0], $match)) {
$langdata[0] = $match[1];
}
@@ -151,7 +151,7 @@ function language_choose_code()
language_add(default_language(), $languages);
// Last default language is English
- language_add("en", $languages);
+ language_add('en', $languages);
// Try to find out what language is available on this mirror.
// As most of the language dependant operations involve manual
diff --git a/include/layout.inc b/include/layout.inc
index c7064ecb82..29960433d9 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -15,8 +15,8 @@ function highlight_php($code, $return = false)
$highlighted = highlight_string($code, true);
// Use this ugly hack for now to avoid code snippets with bad syntax screwing up the highlighter
- if (strstr($highlighted, "include/layout.inc")) {
- $highlighted = '
' . nl2br(htmlentities($code, ENT_HTML5), false) . " ";
+ if (strstr($highlighted, 'include/layout.inc')) {
+ $highlighted = '
' . nl2br(htmlentities($code, ENT_HTML5), false) . ' ';
}
// Fix output to use CSS classes and wrap well
@@ -78,7 +78,7 @@ function make_image($file, $alt = false, $align = false, $extras = false,
// Convert right or left alignment to CSS float,
// but leave other alignments intact (for now)
- if (in_array($align, ["right", "left"], true)) {
+ if (in_array($align, ['right', 'left'], true)) {
$align = ' style="float: ' . $align . ';"';
} elseif ($align) {
$align = ' align="' . $align . '"';
@@ -108,7 +108,7 @@ function print_image($file, $alt = false, $align = false, $extras = false,
// image from the news dir with an alt and an URL)
function news_image($URL, $image, $alt, $print = true)
{
- $str = "
" . make_image("news/$image", $alt, "right") . " ";
+ $str = "
" . make_image("news/$image", $alt, 'right') . ' ';
if ($print) {
echo $str;
}
@@ -136,18 +136,18 @@ function make_submit($file, $alt = false, $align = false, $extras = false,
// Return a hiperlink to something within the site
function make_link(string $url, string $linktext = ''): string
{
- return sprintf("
%s ", $url, $linktext ?: $url);
+ return sprintf('
%s ', $url, $linktext ?: $url);
}
// make_popup_link()
// return a hyperlink to something, within the site, that pops up a new window
//
-function make_popup_link($url, $linktext = false, $target = false, $windowprops = "", $extras = false) {
+function make_popup_link($url, $linktext = false, $target = false, $windowprops = '', $extras = false) {
return sprintf("
%s ",
htmlspecialchars($url, ENT_QUOTES | ENT_IGNORE),
- ($target ?: "_new"),
+ ($target ?: '_new'),
htmlspecialchars($url, ENT_QUOTES | ENT_IGNORE),
- ($target ?: "_new"),
+ ($target ?: '_new'),
$windowprops,
($extras ? ' ' . $extras : ''),
($linktext ?: $url),
@@ -157,22 +157,22 @@ function make_popup_link($url, $linktext = false, $target = false, $windowprops
// Print a link for a downloadable file (including filesize)
function download_link($file, $title): void
{
- $download_link = "/distributions/" . $file;
+ $download_link = '/distributions/' . $file;
// Print out the download link
echo make_link($download_link, $title);
// We have a full path or a relative to the distributions dir
- if ($tmp = strrchr($file, "/")) {
+ if ($tmp = strrchr($file, '/')) {
$local_file = substr($tmp, 1, strlen($tmp));
} else {
$local_file = "distributions/$file";
}
- if (@file_exists($local_file . ".asc")) {
- echo " ";
+ if (@file_exists($local_file . '.asc')) {
+ echo ' ';
$sig_link = "/distributions/$file.asc";
- echo make_link($sig_link, "(sig)");
+ echo make_link($sig_link, '(sig)');
}
// Try to get the size of the file
@@ -213,11 +213,11 @@ function display_errors($errors): void
{
echo '
';
if (count($errors) > 1) {
- echo "You need to do the following before your submission will be accepted:
";
+ echo 'You need to do the following before your submission will be accepted:';
foreach ($errors as $error) {
echo "$error \n";
}
- echo " ";
+ echo ' ';
}
else {
echo $errors[0];
@@ -269,39 +269,39 @@ function display_event($event, $include_date = 1): void
// Print out date if needed
if ($include_date && (isset($event['start']))) {
- echo "
", date("F j, Y", $sday), " \n";
+ echo '
', date('F j, Y', $sday), " \n";
}
// Print link in case we have one
if ($event['url']) { echo '
'; }
// Print event description
- echo "", stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8')), " ";
+ echo "", stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8')), ' ';
// End link
- if ($event['url']) { echo " "; }
+ if ($event['url']) { echo ''; }
// Print extra date info for recurring and multiday events
switch ($event['type']) {
case 2:
case 'multi':
- $dtend = date("Y-m-d", strtotime("+1 day", $eday));
- echo " (
", date("Y-m-d",$sday), " to
", date("Y-m-d",$eday), " )";
+ $dtend = date('Y-m-d', strtotime('+1 day', $eday));
+ echo " (
", date('Y-m-d',$sday), " to
", date('Y-m-d',$eday), ' )';
break;
case 3:
case 'recur':
- $days = $re[$event['recur']] . " " . $days[$event['recur_day']];
+ $days = $re[$event['recur']] . ' ' . $days[$event['recur_day']];
if (!$cm || $cy) {
- $cm = date("m");
- $cy = date("Y");
+ $cm = date('m');
+ $cy = date('Y');
}
- $month = date("M", mktime(0, 0, 0, $cm, 1, $cy));
- $dtstart = date("Y-m-d", strtotime($days . ' 0st' . $month . ' ' . $cy));
- echo ' (Every
', $days, " of the month)";
+ $month = date('M', mktime(0, 0, 0, $cm, 1, $cy));
+ $dtstart = date('Y-m-d', strtotime($days . ' 0st' . $month . ' ' . $cy));
+ echo ' (Every
', $days, ' of the month)';
break;
}
// Event category
if (isset($event['category']) && $event['category']) {
- $cat = ["unknown", "User Group Event", "Conference", "Training"];
+ $cat = ['unknown', 'User Group Event', 'Conference', 'Training'];
echo ' [' . $cat[$event['category']] . '] ';
}
@@ -313,7 +313,7 @@ function display_event($event, $include_date = 1): void
", trim(htmlentities($event['ldesc'],ENT_QUOTES | ENT_IGNORE, 'UTF-8')));
+ echo preg_replace("/\r?\n\r?\n/", '
', trim(htmlentities($event['ldesc'],ENT_QUOTES | ENT_IGNORE, 'UTF-8')));
// If we have an URL, print it out
if ($event['url']) {
echo '
URL: ',
@@ -334,9 +334,9 @@ function news_archive_sidebar(): void
Archives by year
';
- for ($i = date("Y"); $i >= 1998; $i--) {
+ for ($i = date('Y'); $i >= 1998; $i--) {
$pagename = "archive/$i.php";
- $classname = ($pagename == $_SERVER['BASE_PAGE'] ? " active" : '');
+ $classname = ($pagename == $_SERVER['BASE_PAGE'] ? ' active' : '');
$SIDEBAR_DATA .= "
{$i}
\n";
}
}
@@ -351,8 +351,8 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
// Only print entries in the provided s/dog/cat/ egory
// If $dog is null, everything matches
- foreach ($item["category"] as $category) {
- if (null === $dog || in_array($category["term"], (array)$dog, true)) {
+ foreach ($item['category'] as $category) {
+ if (null === $dog || in_array($category['term'], (array)$dog, true)) {
$ok = true;
$count++;
break;
@@ -365,39 +365,39 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
continue;
}
- $image = "";
- if (isset($item["newsImage"])) {
- $image = news_image($item["newsImage"]["link"], $item["newsImage"]["content"], $item["newsImage"]["title"], false);
+ $image = '';
+ if (isset($item['newsImage'])) {
+ $image = news_image($item['newsImage']['link'], $item['newsImage']['content'], $item['newsImage']['title'], false);
}
- $id = parse_url($item["id"]);
- $id = $id["fragment"];
+ $id = parse_url($item['id']);
+ $id = $id['fragment'];
// Find the permlink
- foreach ($item["link"] as $link) {
- if ($link["rel"] === "via") {
- $permlink = $link["href"];
+ foreach ($item['link'] as $link) {
+ if ($link['rel'] === 'via') {
+ $permlink = $link['href'];
break;
}
}
if (!isset($permlink)) {
- $permlink = "#" . $id;
+ $permlink = '#' . $id;
}
- $published = substr($item["published"], 0, 10);
+ $published = substr($item['published'], 0, 10);
$nixtimestamp = strtotime($published);
- $newsdate = date("d M Y", $nixtimestamp);
- if ($onlyyear && date("Y", $nixtimestamp) != $onlyyear) {
+ $newsdate = date('d M Y', $nixtimestamp);
+ if ($onlyyear && date('Y', $nixtimestamp) != $onlyyear) {
$count--;
continue;
}
if ($return) {
$retval[] = [
- "title" => $item["title"],
- "id" => $id,
- "permlink" => $permlink,
- "date" => $newsdate,
+ 'title' => $item['title'],
+ 'id' => $id,
+ 'permlink' => $permlink,
+ 'date' => $newsdate,
];
continue;
}
@@ -406,11 +406,11 @@ function print_news($news, $dog, $max = 5, $onlyyear = null, $return = false) {
- {$newsdate}
+ {$newsdate}
- {$item["content"]}
+ {$item['content']}
@@ -425,60 +425,60 @@ function site_header(string $title = 'Hypertext Preprocessor', array $config = [
global $MYSITE;
$defaults = [
- "lang" => myphpnet_language(),
- "current" => "",
- "meta-navigation" => [],
+ 'lang' => myphpnet_language(),
+ 'current' => '',
+ 'meta-navigation' => [],
'classes' => '',
'layout_span' => 9,
- "cache" => false,
- "headsup" => "",
+ 'cache' => false,
+ 'headsup' => '',
];
$config = array_merge($defaults, $config);
- $config["headsup"] = get_news_changes();
+ $config['headsup'] = get_news_changes();
- $lang = language_convert($config["lang"]);
- $curr = $config["current"];
+ $lang = language_convert($config['lang']);
+ $curr = $config['current'];
$classes = $config['classes'];
- if (isset($_COOKIE["MD"]) || isset($_GET["MD"])) {
- $classes .= "markdown-content";
- $config["css_overwrite"] = ["/styles/i-love-markdown.css"];
+ if (isset($_COOKIE['MD']) || isset($_GET['MD'])) {
+ $classes .= 'markdown-content';
+ $config['css_overwrite'] = ['/styles/i-love-markdown.css'];
}
// shorturl; http://wiki.snaplog.com/short_url
- if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER["BASE_PAGE"])) {
- $shorturl = "https://www.php.net/" . $shortname;
+ if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER['BASE_PAGE'])) {
+ $shorturl = 'https://www.php.net/' . $shortname;
}
- require __DIR__ . "/header.inc";
+ require __DIR__ . '/header.inc';
}
function site_footer(array $config = []): void
{
- require __DIR__ . "/footer.inc";
+ require __DIR__ . '/footer.inc';
}
function get_news_changes()
{
- include __DIR__ . "/pregen-news.inc";
- $date = date_create($NEWS_ENTRIES[0]["updated"]);
- if (isset($_COOKIE["LAST_NEWS"]) && $_COOKIE["LAST_NEWS"] >= $date->getTimestamp()) {
+ include __DIR__ . '/pregen-news.inc';
+ $date = date_create($NEWS_ENTRIES[0]['updated']);
+ if (isset($_COOKIE['LAST_NEWS']) && $_COOKIE['LAST_NEWS'] >= $date->getTimestamp()) {
return false;
}
/* It is a bug when this happens.. but I don't know where it is coming from */
- if (!isset($_SERVER["BASE_PAGE"])) {
+ if (!isset($_SERVER['BASE_PAGE'])) {
return false;
}
- if ($_SERVER["BASE_PAGE"] == "index.php") {
+ if ($_SERVER['BASE_PAGE'] == 'index.php') {
return false;
}
- $date->modify("+1 week");
- if ($date->getTimestamp() > $_SERVER["REQUEST_TIME"]) {
- $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '/', $NEWS_ENTRIES[0]["link"][0]["href"]);
- $title = $NEWS_ENTRIES[0]["title"];
+ $date->modify('+1 week');
+ if ($date->getTimestamp() > $_SERVER['REQUEST_TIME']) {
+ $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '/', $NEWS_ENTRIES[0]['link'][0]['href']);
+ $title = $NEWS_ENTRIES[0]['title'];
return "
{$title} ";
}
return false;
@@ -487,27 +487,27 @@ function get_news_changes()
function doc_toc($lang): void {
$file = __DIR__ . "/../manual/$lang/toc/index.inc";
if (!file_exists($file)) {
- $lang = "en"; // Fallback on english if the translation doesn't exist
- $file = __DIR__ . "/../manual/en/toc/index.inc";
+ $lang = 'en'; // Fallback on english if the translation doesn't exist
+ $file = __DIR__ . '/../manual/en/toc/index.inc';
}
require __DIR__ . "/../manual/$lang/toc/index.inc";
echo "
\n";
- doc_toc_list($lang, $TOC, "getting-started");
- doc_toc_list($lang, $TOC, "langref");
+ doc_toc_list($lang, $TOC, 'getting-started');
+ doc_toc_list($lang, $TOC, 'langref');
echo " \n";
echo "
\n";
- doc_toc_list($lang, $TOC, "security");
- doc_toc_list($lang, $TOC, "features");
+ doc_toc_list($lang, $TOC, 'security');
+ doc_toc_list($lang, $TOC, 'features');
echo " \n";
echo "
\n";
- doc_toc_list($lang, $TOC, "funcref");
+ doc_toc_list($lang, $TOC, 'funcref');
echo " \n";
echo "
\n";
- echo "Keyboard Shortcuts ";
+ echo 'Keyboard Shortcuts ';
echo "? \n";
echo "This help \n";
echo "j \n";
@@ -528,7 +528,7 @@ function doc_toc($lang): void {
echo "Goto search (current page) \n";
echo "/ \n";
echo "Focus search box \n";
- echo " ";
+ echo '';
}
function doc_toc_list($lang, $index, $file): void {
@@ -539,7 +539,7 @@ function doc_toc_list($lang, $index, $file): void {
echo "\t
{$entry[1]} \n";
}
}
-function doc_toc_title($lang, $index, $file, $elm = "dt"): void {
+function doc_toc_title($lang, $index, $file, $elm = 'dt'): void {
foreach ($index as $entry) {
if ($entry[0] == "$file.php") {
$link = $entry[0];
diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc
index 0ba47d77c6..aad1ee507f 100644
--- a/include/manual-lookup.inc
+++ b/include/manual-lookup.inc
@@ -7,31 +7,31 @@ include_once __DIR__ . '/errors.inc';
function tryprefix($lang, $keyword, $prefix)
{
// Replace all underscores with hyphens (phpdoc convention)
- $keyword = str_replace("_", "-", $keyword);
+ $keyword = str_replace('_', '-', $keyword);
// Replace everything in parentheses with a hyphen (ie. function call)
- $keyword = preg_replace("!\\(.*\\)!", "-", $keyword);
+ $keyword = preg_replace('!\\(.*\\)!', '-', $keyword);
// Try the keyword with the prefix
$try = "/manual/{$lang}/{$prefix}{$keyword}.php";
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; }
// Drop out spaces, and try that keyword (if different)
- $nosp = str_replace(" ", "", $keyword);
+ $nosp = str_replace(' ', '', $keyword);
if ($nosp != $keyword) {
$try = "/manual/{$lang}/{$prefix}{$nosp}.php";
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; }
}
// Replace spaces with hyphens, and try that (if different)
- $dasp = str_replace(" ", "-", $keyword);
+ $dasp = str_replace(' ', '-', $keyword);
if ($dasp != $keyword) {
$try = "/manual/{$lang}/{$prefix}{$dasp}.php";
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; }
}
// Remove hyphens (and underscores), and try that (if different)
- $noul = str_replace("-", "", $keyword);
+ $noul = str_replace('-', '', $keyword);
if ($noul != $keyword) {
$try = "/manual/{$lang}/{$prefix}{$noul}.php";
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; }
@@ -39,7 +39,7 @@ function tryprefix($lang, $keyword, $prefix)
// urldecode() (%5C == \) Replace namespace sperators, and try that (if different)
$keyword = urldecode($keyword);
- $noul = str_replace("\\", "-", $keyword);
+ $noul = str_replace('\\', '-', $keyword);
if ($noul != $keyword) {
$try = "/manual/{$lang}/{$prefix}{$noul}.php";
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; }
@@ -58,7 +58,7 @@ function tryprefix($lang, $keyword, $prefix)
}
// Nothing found
- return "";
+ return '';
}
// Try to find a manual page in a specified language
@@ -70,7 +70,7 @@ function find_manual_page_slow($lang, $keyword)
$sections = get_manual_search_sections();
// Remove .. for security reasons
- $keyword = str_replace("..", "", $keyword);
+ $keyword = str_replace('..', '', $keyword);
// Try to find a manual page with the specified prefix
foreach ($sections as $section) {
@@ -80,21 +80,21 @@ function find_manual_page_slow($lang, $keyword)
// Fall back to English, if the language was not English,
// and nothing was found so far for any of the prefixes
- if ($lang != "en") {
+ if ($lang != 'en') {
foreach ($sections as $section) {
- $found = tryprefix("en", $keyword, $section);
+ $found = tryprefix('en', $keyword, $section);
if ($found) { return $found; }
}
}
// BC: Few references pages where moved to book.
- if (strpos($keyword, "ref.") === 0) {
- $kw = substr_replace($keyword, "book.", 0, 4);
+ if (strpos($keyword, 'ref.') === 0) {
+ $kw = substr_replace($keyword, 'book.', 0, 4);
return find_manual_page($lang, $kw);
}
// Nothing found
- return "";
+ return '';
}
// If sqlite is available on this mirror use that for manual
@@ -131,12 +131,12 @@ function find_manual_page($lang, $keyword)
$keyword = str_replace('_', '-', $keyword);
}
if (strpos($keyword, '(') !== false) {
- $keyword = preg_replace("!\\(.*\\)!", "-", $keyword);
+ $keyword = preg_replace('!\\(.*\\)!', '-', $keyword);
}
// No keyword to search for
if (strlen($keyword) == 0) {
- return "";
+ return '';
}
// If there is a dot in the $keyword, then a prefix
@@ -160,8 +160,8 @@ function find_manual_page($lang, $keyword)
This also applies to other sections like book.foo, language.foo, example.foo, etc.
Note: $keyword replaces _ with - above, so _ variants also work
*/
- if (strpos($keyword, ".") > 0) {
- $SQL = "SELECT name from fs WHERE lang = ? AND (name = ? OR keyword = ?) ORDER BY prio LIMIT 1";
+ if (strpos($keyword, '.') > 0) {
+ $SQL = 'SELECT name from fs WHERE lang = ? AND (name = ? OR keyword = ?) ORDER BY prio LIMIT 1';
$_keyword = $keyword;
if (pathinfo($keyword, PATHINFO_EXTENSION) !== 'php') {
@@ -182,8 +182,8 @@ function find_manual_page($lang, $keyword)
// the similar_text() search fallback works fine (see quickref.php)
// if this change remains, adjust the gen-phpweb-sqlite script accordingly
- $SQL = "SELECT name, prio FROM fs WHERE lang = :lang
- AND keyword IN (?, ?, ?, ?, ?) ORDER BY keyword = ? DESC, prio LIMIT 1";
+ $SQL = 'SELECT name, prio FROM fs WHERE lang = :lang
+ AND keyword IN (?, ?, ?, ?, ?) ORDER BY keyword = ? DESC, prio LIMIT 1';
$stm = $dbh->prepare($SQL);
if ($stm) {
@@ -206,7 +206,7 @@ function find_manual_page($lang, $keyword)
// But does the file really exist?
// @todo consider redirecting here, instead of including content within the 404
// @todo considering the file path is generated from the manual build, we can probably remove this file_exists() check
- if (file_exists($_SERVER["DOCUMENT_ROOT"] . $r[0])) {
+ if (file_exists($_SERVER['DOCUMENT_ROOT'] . $r[0])) {
return $r[0];
}
}
diff --git a/include/prepend.inc b/include/prepend.inc
index 338982710d..af52f80896 100644
--- a/include/prepend.inc
+++ b/include/prepend.inc
@@ -8,57 +8,57 @@
// Provide default content-type, charset and language information
// Manual pages will override this, and maybe others too
-header("Content-language: en");
-header("Content-type: text/html; charset=utf-8");
+header('Content-language: en');
+header('Content-type: text/html; charset=utf-8');
// Opt out of FLoC
-header("Permissions-Policy: interest-cohort=()");
+header('Permissions-Policy: interest-cohort=()');
/* Fix Silly Same Origin Policies */
(function (): void {
- if (!isset($_SERVER["HTTP_ORIGIN"])) {
+ if (!isset($_SERVER['HTTP_ORIGIN'])) {
return;
}
- $host = parse_url($_SERVER["HTTP_ORIGIN"]);
- if (strncmp(strrev($host["host"]), strrev("php.net"), strlen("php.net")) != 0) {
- if ($host["host"] != $_SERVER["SERVER_NAME"]) {
+ $host = parse_url($_SERVER['HTTP_ORIGIN']);
+ if (strncmp(strrev($host['host']), strrev('php.net'), strlen('php.net')) != 0) {
+ if ($host['host'] != $_SERVER['SERVER_NAME']) {
exit(10);
}
}
- if (isset($host["port"])) {
- $hostname = $host["host"] . ":" . $host["port"];
+ if (isset($host['port'])) {
+ $hostname = $host['host'] . ':' . $host['port'];
} else {
- $hostname = $host["host"];
+ $hostname = $host['host'];
}
header("Access-Control-Allow-Origin: http://$hostname");
- if (isset($_SERVER["HTTP_ACCESS_CONTROL_REQUEST_HEADERS"])) {
- $headers = $_SERVER["HTTP_ACCESS_CONTROL_REQUEST_HEADERS"];
- $headers = str_replace(["\r", "\n", "\0"], "", $headers);
+ if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) {
+ $headers = $_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'];
+ $headers = str_replace(["\r", "\n", "\0"], '', $headers);
header("Access-Control-Allow-Headers: $headers");
}
})();
/* Clickjacking workaround. Nothing should be in a frame so it could technically be 'deny'
* but it doesn't make any difference anyway */
-header("X-Frame-Options: SAMEORIGIN");
+header('X-Frame-Options: SAMEORIGIN');
// Be 100% sure the timezone is set
-if (ini_get("date.timezone") === "" && function_exists("date_default_timezone_set")) {
- date_default_timezone_set("UTC");
+if (ini_get('date.timezone') === '' && function_exists('date_default_timezone_set')) {
+ date_default_timezone_set('UTC');
}
/* Compatibility with the PHP webserver.. */
-if (!isset($_SERVER["SERVER_ADDR"])) {
- $_SERVER["SERVER_ADDR"] = "127.0.0.1";
+if (!isset($_SERVER['SERVER_ADDR'])) {
+ $_SERVER['SERVER_ADDR'] = '127.0.0.1';
}
// As of PHP 5.3.0 multibyte sequence errors are no longer
// silent. Prior to that version this bitfield does not exist
// so define it to prevent notices on older versions
-if (!defined("ENT_IGNORE")) {
- define("ENT_IGNORE", 0);
+if (!defined('ENT_IGNORE')) {
+ define('ENT_IGNORE', 0);
}
// Prevent cross site scripting problems
@@ -99,7 +99,7 @@ function myphpnet_load(): void
global $MYPHPNET, $MYSITE;
// Empty the preferences array
- $MYPHPNET = [false, false, "NONE", 0, false];
+ $MYPHPNET = [false, false, 'NONE', 0, false];
if ($MYSITE === 'http://docs.php.net/') {
$MYPHPNET[4] = true;
@@ -107,7 +107,7 @@ function myphpnet_load(): void
// If we have a cookie, set the values in the array
if (!empty($_COOKIE['MYPHPNET'])) {
- $MYPHPNET = explode(",", $_COOKIE['MYPHPNET']);
+ $MYPHPNET = explode(',', $_COOKIE['MYPHPNET']);
}
// Ignore site part, and always use https://www.php.net
@@ -149,7 +149,7 @@ function myphpnet_urlsearch($type = false)
function myphpnet_showug($enable = null) {
global $MYPHPNET;
- if (isset($_GET["showug"])) {
+ if (isset($_GET['showug'])) {
$enable = true;
}
@@ -161,7 +161,7 @@ function myphpnet_showug($enable = null) {
return $MYPHPNET[3];
}
- if ($_SERVER["REQUEST_TIME"] % 10) {
+ if ($_SERVER['REQUEST_TIME'] % 10) {
return true;
}
@@ -179,7 +179,7 @@ function myphpnet_save(): void
}
// Set all the preferred values for a year
- mirror_setcookie("MYPHPNET", join(",", $MYPHPNET), 60 * 60 * 24 * 365);
+ mirror_setcookie('MYPHPNET', join(',', $MYPHPNET), 60 * 60 * 24 * 365);
}
diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index a686b15cef..9606e1e720 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -50,13 +50,13 @@ function manual_notes($notes):void {
'&redirect=' . $_SERVER['BASE_HREF'];
$addnotesnippet = make_link(
$addnotelink,
- "+
add a note ",
+ '+
add a note ',
);
$num_notes = count($notes);
$noteCountHtml = '';
if ($num_notes) {
- $noteCountHtml = "
$num_notes note" . ($num_notes == 1 ? '' : 's') . " ";
+ $noteCountHtml = "
$num_notes note" . ($num_notes == 1 ? '' : 's') . ' ';
}
echo <<
\n";
echo "\n";
}
- echo "";
+ echo '';
}
/**
@@ -90,7 +90,7 @@ END_USERNOTE_HEADER;
function manual_notes_load(string $id): array
{
$hash = substr(md5($id), 0, 16);
- $notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" .
+ $notes_file = $_SERVER['DOCUMENT_ROOT'] . '/backend/notes/' .
substr($hash, 0, 2) . "/$hash";
// Open the note file for reading and get the data (12KB)
@@ -99,11 +99,11 @@ function manual_notes_load(string $id): array
return [];
}
$notes = [];
- if ($fp = @fopen($notes_file, "r")) {
+ if ($fp = @fopen($notes_file, 'r')) {
while (!feof($fp)) {
$line = chop(fgets($fp, 12288));
- if ($line == "") { continue; }
- @list($id, $sect, $rate, $ts, $user, $note, $up, $down) = explode("|", $line);
+ if ($line == '') { continue; }
+ @list($id, $sect, $rate, $ts, $user, $note, $up, $down) = explode('|', $line);
$notes[$id] = new UserNote($id, $sect, $rate, $ts, $user, base64_decode($note, true), (int) $up, (int) $down);
}
fclose($fp);
@@ -115,22 +115,22 @@ function manual_notes_load(string $id): array
function manual_note_display(UserNote $note, $voteOption = true): void
{
if ($note->user) {
- $name = "\n " . htmlspecialchars($note->user) . " ";
+ $name = "\n " . htmlspecialchars($note->user) . ' ';
} else {
- $name = "Anonymous ";
+ $name = 'Anonymous ';
}
$name = ($note->id ? "\n id}\" class=\"name\">$name id}\"> ¶ " : "\n $name");
// New date style will be relative time
$date = new DateTime("@{$note->ts}");
$datestr = relTime($date);
- $fdatestr = $date->format("Y-m-d h:i");
+ $fdatestr = $date->format('Y-m-d h:i');
$text = clean_note($note->text);
// Calculate note rating by up/down votes
$vote = $note->upvotes - $note->downvotes;
$p = floor(($note->upvotes / (($note->upvotes + $note->downvotes) ?: 1)) * 100);
- $rate = !$p && !($note->upvotes + $note->downvotes) ? "no votes..." : "$p% like this...";
+ $rate = !$p && !($note->upvotes + $note->downvotes) ? 'no votes...' : "$p% like this...";
// Vote User Notes Div
if ($voteOption) {
@@ -199,18 +199,18 @@ USER_NOTE_TEXT;
function manual_navigation_breadcrumbs(array $setup) {
$menu = [];
- foreach (array_reverse($setup["parents"]) as $parent) {
+ foreach (array_reverse($setup['parents']) as $parent) {
$menu[] = [
- "title" => $parent[1],
- "link" => $parent[0],
+ 'title' => $parent[1],
+ 'link' => $parent[0],
];
}
// The index manual page has no parent..
- if ($setup["up"][0]) {
+ if ($setup['up'][0]) {
$last_item = [
- "title" => $setup["up"][1],
- "link" => $setup["up"][0],
+ 'title' => $setup['up'][1],
+ 'link' => $setup['up'][0],
];
$menu[] = $last_item;
}
@@ -221,19 +221,19 @@ function manual_navigation_related(array $setup) {
$siblings = [];
foreach ($setup['toc'] as $entry) {
$siblings[] = [
- "title" => manual_navigation_methodname($entry[1]),
- "link" => $entry[0],
- "current" => $setup["this"][0] == $entry[0],
+ 'title' => manual_navigation_methodname($entry[1]),
+ 'link' => $entry[0],
+ 'current' => $setup['this'][0] == $entry[0],
];
}
// The index manual page has no parent..
- if ($setup["up"][0]) {
+ if ($setup['up'][0]) {
$last_item = [
- "title" => $setup["up"][1],
- "link" => $setup["up"][0],
+ 'title' => $setup['up'][1],
+ 'link' => $setup['up'][0],
];
- $siblings = [array_merge($last_item, ["children" => $siblings])];
+ $siblings = [array_merge($last_item, ['children' => $siblings])];
}
return $siblings;
}
@@ -242,9 +242,9 @@ function manual_navigation_deprecated(array $setup) {
$methods = [];
foreach ((array)$setup['toc_deprecated'] as $entry) {
$methods[] = [
- "title" => manual_navigation_methodname($entry[1]),
- "link" => $entry[0],
- "current" => $setup["this"][0] == $entry[0],
+ 'title' => manual_navigation_methodname($entry[1]),
+ 'link' => $entry[0],
+ 'current' => $setup['this'][0] == $entry[0],
];
}
@@ -271,19 +271,19 @@ function manual_setup($setup): void {
//TODO: get rid of this hack to get the related items into manual_footer
global $__RELATED;
- if (!isset($setup["toc_deprecated"])) {
- $setup["toc_deprecated"] = [];
+ if (!isset($setup['toc_deprecated'])) {
+ $setup['toc_deprecated'] = [];
}
$PGI = $setup;
// Set base href for this manual page
- $base = 'manual/' . language_convert($setup['head'][1]) . "/";
+ $base = 'manual/' . language_convert($setup['head'][1]) . '/';
$_SERVER['BASE_PAGE'] = $base . $setup['this'][0];
$_SERVER['BASE_HREF'] = $MYSITE . $_SERVER['BASE_PAGE'];
$timestamps = [
- filemtime($_SERVER["DOCUMENT_ROOT"] . "/" . $_SERVER["BASE_PAGE"]),
- filemtime($_SERVER["DOCUMENT_ROOT"] . "/include/prepend.inc"),
- filemtime($_SERVER["DOCUMENT_ROOT"] . "/styles/theme-base.css"),
+ filemtime($_SERVER['DOCUMENT_ROOT'] . '/' . $_SERVER['BASE_PAGE']),
+ filemtime($_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'),
+ filemtime($_SERVER['DOCUMENT_ROOT'] . '/styles/theme-base.css'),
];
// Load user note for this page
@@ -306,22 +306,22 @@ function manual_setup($setup): void {
$__RELATED['toc_deprecated'] = manual_navigation_deprecated($setup);
$config = [
- "current" => "docs",
- "breadcrumbs" => $breadcrumbs,
- "languages" => array_keys($ACTIVE_ONLINE_LANGUAGES),
- "meta-navigation" => [
- "contents" => $base . $setup["home"][0],
- "index" => $base . $setup["up"][0],
- "prev" => $base . $setup["prev"][0],
- "next" => $base . $setup["next"][0],
+ 'current' => 'docs',
+ 'breadcrumbs' => $breadcrumbs,
+ 'languages' => array_keys($ACTIVE_ONLINE_LANGUAGES),
+ 'meta-navigation' => [
+ 'contents' => $base . $setup['home'][0],
+ 'index' => $base . $setup['up'][0],
+ 'prev' => $base . $setup['prev'][0],
+ 'next' => $base . $setup['next'][0],
],
- "lang" => $setup["head"][1],
- "thispage" => $setup["this"][0],
- "prev" => $setup["prev"],
- "next" => $setup["next"],
- "cache" => $lastmod,
+ 'lang' => $setup['head'][1],
+ 'thispage' => $setup['this'][0],
+ 'prev' => $setup['prev'],
+ 'next' => $setup['next'],
+ 'cache' => $lastmod,
];
- site_header($setup["this"][1] . " - Manual ", $config);
+ site_header($setup['this'][1] . ' - Manual ', $config);
$id = substr($setup['this'][0], 0, -4);
$repo = strtolower($config['lang']); // pt_BR etc.
@@ -395,19 +395,19 @@ function manual_footer(): void {
function relTime(DateTime $date) {
$current = new DateTime();
$diff = $current->diff($date);
- $units = ["year" => $diff->format("%y"),
- "month" => $diff->format("%m"),
- "day" => $diff->format("%d"),
- "hour" => $diff->format("%h"),
- "minute" => $diff->format("%i"),
- "second" => $diff->format("%s"),
+ $units = ['year' => $diff->format('%y'),
+ 'month' => $diff->format('%m'),
+ 'day' => $diff->format('%d'),
+ 'hour' => $diff->format('%h'),
+ 'minute' => $diff->format('%i'),
+ 'second' => $diff->format('%s'),
];
- $out = "just now...";
+ $out = 'just now...';
foreach ($units as $unit => $amount) {
if (empty($amount)) {
continue;
}
- $out = $amount . " " . ($amount == 1 ? $unit : $unit . "s") . " ago";
+ $out = $amount . ' ' . ($amount == 1 ? $unit : $unit . 's') . ' ago';
break;
}
return $out;
diff --git a/include/site.inc b/include/site.inc
index 50877ecbfa..6ac7b52959 100644
--- a/include/site.inc
+++ b/include/site.inc
@@ -14,14 +14,14 @@ const MIRROR_OUTDATED = 2;
const MIRROR_DOESNOTWORK = 3;
$MIRRORS = [
- "https://www.php.net/" => [
- "DEU",
- "MyraCloud",
+ 'https://www.php.net/' => [
+ 'DEU',
+ 'MyraCloud',
false,
- "https://myracloud.com/en/",
+ 'https://myracloud.com/en/',
MIRROR_SPECIAL,
true,
- "en",
+ 'en',
MIRROR_OK,
],
];
@@ -40,7 +40,7 @@ function is_primary_site($site = false)
{
global $MYSITE;
if (!$site) { $site = $MYSITE; }
- return ($site == "https://www.php.net/" );
+ return ($site == 'https://www.php.net/' );
}
// Returns true if the current (or specified)
@@ -120,7 +120,7 @@ function mirror_redirect($absoluteURI): void
// Test if there is no protocol spec
// in the URL, then prepend local site URI
- if (!preg_match("!^[a-z]+://!", $absoluteURI)) {
+ if (!preg_match('!^[a-z]+://!', $absoluteURI)) {
$absoluteURI = substr($MYSITE, 0, -1) . $absoluteURI;
}
@@ -156,8 +156,8 @@ function header_nocache(): void
// Only try to send out headers in case
// those were not sent already
if (!headers_sent()) {
- header("Cache-Control: private");
- header("Pragma: no-cache");
+ header('Cache-Control: private');
+ header('Pragma: no-cache');
}
}
@@ -190,9 +190,9 @@ function get_available_sqlites() {
// Get all manual prefix search sections
function get_manual_search_sections() {
return [
- "", "book.", "ref.", "function.", "class.",
- "features.", "control-structures.", "language.",
- "about.", "faq.",
+ '', 'book.', 'ref.', 'function.', 'class.',
+ 'features.', 'control-structures.', 'language.',
+ 'about.', 'faq.',
];
}
@@ -201,18 +201,18 @@ function get_shortname($page) {
$shorturl = substr($page, 0, -4);
// If its a "root page", we can't shorten it more
- if (strpos($shorturl, "/") === false) {
+ if (strpos($shorturl, '/') === false) {
return $shorturl;
}
// Manual pages get be quite short
- if (strpos($page, "manual/") !== false) {
+ if (strpos($page, 'manual/') !== false) {
$sections = get_manual_search_sections();
// Kill the first entry (empty)
array_shift($sections);
// We can atleast remove manual/xx/
- $shorturl = substr($page, strrpos($page, "/") + 1);
+ $shorturl = substr($page, strrpos($page, '/') + 1);
foreach ($sections as $section) {
// If we know this section
@@ -227,8 +227,8 @@ function get_shortname($page) {
}
// /conferences/index.php can be shortened to /conferences
- if (strpos($page, "conferences/") !== false) {
- return "conferences";
+ if (strpos($page, 'conferences/') !== false) {
+ return 'conferences';
}
return $shorturl;
@@ -239,24 +239,24 @@ function get_shortname($page) {
// it works under more then one name). SERVER_NAME is
// the name of the Apache vhost.
-if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") {
- $proto = "http";
+if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') {
+ $proto = 'http';
} else {
- $proto = "https";
+ $proto = 'https';
}
-if ($_SERVER["SERVER_PORT"] != '80' && $_SERVER["SERVER_PORT"] != 443) {
- $MYSITE = $proto . '://' . $_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] . '/';
- $msite = 'http://' . $_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] . '/';
+if ($_SERVER['SERVER_PORT'] != '80' && $_SERVER['SERVER_PORT'] != 443) {
+ $MYSITE = $proto . '://' . $_SERVER['SERVER_NAME'] . ':' . (int)$_SERVER['SERVER_PORT'] . '/';
+ $msite = 'http://' . $_SERVER['SERVER_NAME'] . ':' . (int)$_SERVER['SERVER_PORT'] . '/';
} else {
- $MYSITE = $proto . '://' . $_SERVER["SERVER_NAME"] . '/';
- $msite = 'https://' . $_SERVER["SERVER_NAME"] . '/';
+ $MYSITE = $proto . '://' . $_SERVER['SERVER_NAME'] . '/';
+ $msite = 'https://' . $_SERVER['SERVER_NAME'] . '/';
}
// If the mirror is not registered with this name, provide defaults
// (no country code, no search, no stats, English default language ...)
if (!isset($MIRRORS[$MYSITE])) {
- $MIRRORS[$MYSITE] = ["xx", $MYSITE, false, $MYSITE, MIRROR_VIRTUAL, false, "en", MIRROR_OK];
+ $MIRRORS[$MYSITE] = ['xx', $MYSITE, false, $MYSITE, MIRROR_VIRTUAL, false, 'en', MIRROR_OK];
}
// Override mirror language with local preference
@@ -269,7 +269,7 @@ if (isset($_SERVER['MIRROR_LANGUAGE'])) {
// Fallback to English in case the language
// set is definitely not supported
if (!isset($LANGUAGES[$MIRRORS[$MYSITE][6]])) {
- $MIRRORS[$MYSITE][6] = "en";
+ $MIRRORS[$MYSITE][6] = 'en';
}
// Provide base href information to make relative links on
diff --git a/index.php b/index.php
index 9e889f7880..6689be7ed8 100644
--- a/index.php
+++ b/index.php
@@ -23,29 +23,29 @@
the display of the index page). The cost of stat'ing
them all is prohibitive.
*/
-$timestamps[] = @filemtime("include/prepend.inc");
+$timestamps[] = @filemtime('include/prepend.inc');
// These are the only dynamic parts of the frontpage
-$timestamps[] = @filemtime("include/pregen-confs.inc");
-$timestamps[] = @filemtime("include/pregen-news.inc");
-$timestamps[] = @filemtime("include/version.inc");
-$timestamps[] = @filemtime("js/common.js");
+$timestamps[] = @filemtime('include/pregen-confs.inc');
+$timestamps[] = @filemtime('include/pregen-news.inc');
+$timestamps[] = @filemtime('include/version.inc');
+$timestamps[] = @filemtime('js/common.js');
// The latest of these modification dates is our real Last-Modified date
$timestamp = max($timestamps);
// Note that this is not a RFC 822 date (the tz is always GMT)
-$tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT";
+$tsstring = gmdate('D, d M Y H:i:s ', $timestamp) . 'GMT';
// Check if the client has the same page cached
-if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) &&
- ($_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring)) {
- header("HTTP/1.1 304 Not Modified");
+if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &&
+ ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $tsstring)) {
+ header('HTTP/1.1 304 Not Modified');
exit();
}
// Inform the user agent what is our last modification date
-header("Last-Modified: " . $tsstring);
+header('Last-Modified: ' . $tsstring);
$_SERVER['BASE_PAGE'] = 'index.php';
include_once 'include/prepend.inc';
@@ -54,13 +54,13 @@
include_once 'include/pregen-news.inc';
include_once 'include/version.inc';
-mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365);
+mirror_setcookie('LAST_NEWS', $_SERVER['REQUEST_TIME'], 60 * 60 * 24 * 365);
$content = "";
$frontpage = [];
foreach ($NEWS_ENTRIES as $entry) {
- foreach ($entry["category"] as $category) {
- if ($category["term"] == "frontpage") {
+ foreach ($entry['category'] as $category) {
+ if ($category['term'] == 'frontpage') {
$frontpage[] = $entry;
if (count($frontpage) >= 25) {
break 2;
@@ -69,8 +69,8 @@
}
}
foreach ($frontpage as $entry) {
- $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]);
- $id = parse_url($entry["id"], PHP_URL_FRAGMENT);
+ $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry['id']);
+ $id = parse_url($entry['id'], PHP_URL_FRAGMENT);
$date = date_create($entry['updated']);
$date_human = date_format($date, 'd M Y');
$date_w3c = date_format($date, DATE_W3C);
@@ -79,17 +79,17 @@
- {$entry["content"]}
+ {$entry['content']}
NEWSENTRY;
}
$content .= '
Older News Entries
';
-$content .= "
";
+$content .= ' ';
$intro = <<
@@ -120,9 +120,9 @@
// Write out common header
$meta_image_path = $MYSITE . 'images/meta-image.png';
-$meta_description = "PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.";
+$meta_description = 'PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.';
-site_header("Hypertext Preprocessor",
+site_header('Hypertext Preprocessor',
[
'current' => 'home',
'headtags' => [
@@ -134,16 +134,16 @@
],
'link' => [
[
- "rel" => "search",
- "type" => "application/opensearchdescription+xml",
- "href" => $MYSITE . "phpnetimprovedsearch.src",
- "title" => "Add PHP.net search",
+ 'rel' => 'search',
+ 'type' => 'application/opensearchdescription+xml',
+ 'href' => $MYSITE . 'phpnetimprovedsearch.src',
+ 'title' => 'Add PHP.net search',
],
[
- "rel" => "alternate",
- "type" => "application/atom+xml",
- "href" => $MYSITE . "releases/feed.php",
- "title" => "PHP Release feed",
+ 'rel' => 'alternate',
+ 'type' => 'application/atom+xml',
+ 'href' => $MYSITE . 'releases/feed.php',
+ 'title' => 'PHP Release feed',
],
],
@@ -180,14 +180,14 @@
'conference' => 'Upcoming conferences',
'cfp' => 'Conferences calling for papers',
];
- $announcements = "";
+ $announcements = '';
foreach ($CONF_TEASER as $category => $entries) {
if ($entries) {
$announcements .= '';
$announcements .= '
' . $conftype[$category] . ' ';
$announcements .= '
';
foreach (array_slice($entries, 0, 4) as $url => $title) {
- $title = preg_replace("'([A-Za-z0-9])([\s:\-,]*?)call for(.*?)$'i", "$1", $title);
+ $title = preg_replace("'([A-Za-z0-9])([\s:\-,]*?)call for(.*?)$'i", '$1', $title);
$announcements .= "$title ";
}
$announcements .= ' ';
@@ -234,7 +234,7 @@
// Print the common footer.
site_footer([
- "atom" => "/feed.atom", // Add a link to the feed at the bottom
+ 'atom' => '/feed.atom', // Add a link to the feed at the bottom
'elephpants' => true,
'sidebar' => $SIDEBAR,
]);
diff --git a/js/search-index.php b/js/search-index.php
index 6fb15b3cb3..53865cd923 100644
--- a/js/search-index.php
+++ b/js/search-index.php
@@ -1,18 +1,18 @@
*/
- $index[$item[1]] = [$item[0], "", $item[2]];
+ $index[$item[1]] = [$item[0], '', $item[2]];
}
}
diff --git a/license/contrib-guidelines-code.php b/license/contrib-guidelines-code.php
index 75b6194642..d84c862824 100644
--- a/license/contrib-guidelines-code.php
+++ b/license/contrib-guidelines-code.php
@@ -1,7 +1,7 @@
"help"]);
+site_header('License Information', ['current' => 'help']);
?>
PHP Contributor Guidelines for Code Developers
diff --git a/license/distrib-guidelines-code.php b/license/distrib-guidelines-code.php
index b88ff552ee..4a27986b3d 100644
--- a/license/distrib-guidelines-code.php
+++ b/license/distrib-guidelines-code.php
@@ -1,7 +1,7 @@
"help"]);
+site_header('License Information', ['current' => 'help']);
?>
PHP Distribution Guidelines
diff --git a/license/index.php b/license/index.php
index e45476ab42..78d92f3565 100644
--- a/license/index.php
+++ b/license/index.php
@@ -17,7 +17,7 @@
EOF;
-site_header("License Information", ["current" => "help"]);
+site_header('License Information', ['current' => 'help']);
?>
PHP Licensing
diff --git a/mailing-lists.php b/mailing-lists.php
index 9ecb0522cc..b308c205ca 100644
--- a/mailing-lists.php
+++ b/mailing-lists.php
@@ -39,25 +39,25 @@
';
-site_header("Mailing Lists", ["current" => "help"]);
+site_header('Mailing Lists', ['current' => 'help']);
// Some mailing list is selected for [un]subscription
if (isset($_POST['action'])) {
// No error found yet
- $error = "";
+ $error = '';
// Check email address
if (empty($_POST['email']) || $_POST['email'] == 'user@example.com' ||
$_POST['email'] == 'fake@from.net' || !is_emailable_address($_POST['email'])) {
- $error = "You forgot to specify an email address to be added to the list, or specified an invalid address." .
- "
Please go back and try again.";
+ $error = 'You forgot to specify an email address to be added to the list, or specified an invalid address.' .
+ '
Please go back and try again.';
}
// Check if any mailing list was selected
elseif (empty($_POST['maillist'])) {
- $error = "You need to select at least one mailing list to subscribe to." .
- "
Please go back and try again.";
+ $error = 'You need to select at least one mailing list to subscribe to.' .
+ '
Please go back and try again.';
}
// Seems to be a valid email address
@@ -65,27 +65,27 @@
// Decide on request mode, email address part and IP address
$request = strtolower($_POST['action']);
- if ($request != "subscribe" && $request != "unsubscribe") {
- $request = "subscribe";
+ if ($request != 'subscribe' && $request != 'unsubscribe') {
+ $request = 'subscribe';
}
$remote_addr = i2c_realip();
// Get in contact with main server to [un]subscribe the user
$result = posttohost(
- "https://main.php.net/entry/subscribe.php",
+ 'https://main.php.net/entry/subscribe.php',
[
- "request" => $request,
- "email" => $_POST['email'],
- "maillist" => $_POST['maillist'],
- "remoteip" => $remote_addr,
- "referer" => $MYSITE . "mailing-lists.php",
+ 'request' => $request,
+ 'email' => $_POST['email'],
+ 'maillist' => $_POST['maillist'],
+ 'remoteip' => $remote_addr,
+ 'referer' => $MYSITE . 'mailing-lists.php',
],
);
// Provide error if unable to [un]subscribe
if ($result) {
- $error = "We were unable to subscribe you due to some technical problems.
" .
- "Please try again later.";
+ $error = 'We were unable to subscribe you due to some technical problems.
' .
+ 'Please try again later.';
}
}
@@ -189,39 +189,39 @@
[
'php-announce', 'Announcements',
'Announcements of new PHP releases are sent to this very low-volume list',
- true, false, false, "php.announce",
+ true, false, false, 'php.announce',
],
[
'php-general', 'General user list',
'This is a high volume list for general PHP support; ask PHP questions here',
- false, true, true, "php.general",
+ false, true, true, 'php.general',
],
[
'php-windows', 'Windows PHP users list',
'Using PHP on Microsoft Windows',
- false, true, true, "php.windows",
+ false, true, true, 'php.windows',
],
'Subject specific lists for PHP users',
[
'php-install', 'Installation issues and problems',
'How to install PHP with particular configurations and servers',
- false, true, true, "php.install",
+ false, true, true, 'php.install',
],
[
'php-db', 'Databases and PHP',
'This list is for the discussion of PHP database topics',
- false, true, true, "php.db",
+ false, true, true, 'php.db',
],
[
'php-i18n', 'Unicode and Internationalization',
'Unicode support, Internationalization (i18n) and localization (l10n) issues and features',
- false, true, true, "php.i18n",
+ false, true, true, 'php.i18n',
],
[
'php-evangelism', 'PHP evangelism mailing list',
'A list for people interested in promoting PHP and learning good reasons to support PHP in the enterprise',
- true, true, true, "php.evangelism",
+ true, true, true, 'php.evangelism',
],
[
'soap', 'PHP SOAP list',
@@ -244,37 +244,37 @@
[
'internals', 'Internals list',
'A medium volume list for those who want to help out with the development of PHP',
- false, 'php-internals', true, "php.internals",
+ false, 'php-internals', true, 'php.internals',
],
[
'internals-win', 'Windows Internals list',
'A low volume list for those who want to help out with the development of PHP on Windows',
- false, false, true, "php.internals.win",
+ false, false, true, 'php.internals.win',
],
[
'php-cvs', 'Git commit list',
'All commits to internals (php-src) and the Zend Engine are posted to this list automatically',
- true, true, false, "php.cvs",
+ true, true, false, 'php.cvs',
],
[
'git-pulls', 'Git pull requests',
'Pull requests from Github',
- false, false, false, "php.git-pulls",
+ false, false, false, 'php.git-pulls',
],
[
'php-qa', 'Quality Assurance list',
'List for the members of the PHP-QA Team',
- false, true, false, "php.qa",
+ false, true, false, 'php.qa',
],
[
'php-bugs', 'General bugs',
'General bug activity are posted here',
- false, false, false, "php.bugs",
+ false, false, false, 'php.bugs',
],
[
'standards', 'PHP Standardization and interoperability list',
'Development of language standards',
- false, false, false, "php.standards",
+ false, false, false, 'php.standards',
],
'PHP internal website mailing lists',
@@ -282,24 +282,24 @@
'php-webmaster', 'PHP php.net internal infrastructure discussion',
'List for discussing and maintaining the php.net web infrastructure.
For general PHP support questions, see "General Mailing Lists" or the
support page ',
- false, false, false, "php.webmaster",
+ false, false, false, 'php.webmaster',
],
'PHP documentation mailing lists',
[
'phpdoc', 'Documentation discussion',
'List for discussing the PHP documentation',
- false, true, false, "php.doc",
+ false, true, false, 'php.doc',
],
[
'doc-cvs', 'Documentation changes and commits',
'Changes to the documentation are posted here',
- true, "php-doc-cvs", false, "php.doc.cvs",
+ true, 'php-doc-cvs', false, 'php.doc.cvs',
],
[
'doc-bugs', 'Documentation bugs',
'Documentation bug activity (translations, sources, and build system) are posted here',
- true, 'php-doc-bugs', false, "php.doc.bugs",
+ true, 'php-doc-bugs', false, 'php.doc.bugs',
],
];
diff --git a/manual/add-note.php b/manual/add-note.php
index 1398e5d006..eb1e8af8bb 100644
--- a/manual/add-note.php
+++ b/manual/add-note.php
@@ -9,7 +9,7 @@
use phpweb\UserNotes\UserNote;
-site_header("Add Manual Note", ['css' => 'add-note.css']);
+site_header('Add Manual Note', ['css' => 'add-note.css']);
// Copy over "sect" and "redirect" from GET to POST
if (empty($_POST['sect']) && isset($_GET['sect'])) {
@@ -42,8 +42,8 @@
$note = preg_replace("/\n{2,}/", "\n\n", $note);
// Don't pass through example username
- if ($user === "user@example.com") {
- $user = "Anonymous";
+ if ($user === 'user@example.com') {
+ $user = 'Anonymous';
}
// We don't know of any error now
@@ -51,7 +51,7 @@
// No note specified
if (strlen($note) == 0) {
- $error = "You have not specified the note text.";
+ $error = 'You have not specified the note text.';
}
// SPAM challenge failed
@@ -60,8 +60,8 @@
}
// The user name contains a malicious character
- elseif (stristr($user, "|")) {
- $error = "You have included bad characters within your username. We appreciate you may want to obfuscate your email further, but we have a system in place to do this for you.";
+ elseif (stristr($user, '|')) {
+ $error = 'You have included bad characters within your username. We appreciate you may want to obfuscate your email further, but we have a system in place to do this for you.';
}
// Check if the note is too long
@@ -78,23 +78,23 @@
else {
// Split the note by whitespace, and check length
- foreach (preg_split("/\\s+/", $note) as $chunk) {
+ foreach (preg_split('/\\s+/', $note) as $chunk) {
if (strlen($chunk) > 120) {
- $error = "Your note contains a bit of text that will result in a line that is too long, even after using wordwrap().";
+ $error = 'Your note contains a bit of text that will result in a line that is too long, even after using wordwrap().';
break;
}
}
}
// No error was found, and the submit action is required
- if (!$error && strtolower($_POST['action']) !== "preview") {
+ if (!$error && strtolower($_POST['action']) !== 'preview') {
$redirip = $_SERVER['HTTP_X_FORWARDED_FOR'] ??
($_SERVER['HTTP_VIA'] ?? '');
// Post the variables to the central user note script
$result = posttohost(
- "https://main.php.net/entry/user-note.php",
+ 'https://main.php.net/entry/user-note.php',
[
'user' => $user,
'note' => $note,
@@ -107,7 +107,7 @@
// If there is any non-header result, then it is an error
if ($result) {
if (strpos($result, '[TOO MANY NOTES]') !== false) {
- echo "
As a security precaution, we only allow a certain number of notes to be submitted per minute. At this time, this number has been exceeded. Please re-submit your note in about a minute.
";
+ echo '
As a security precaution, we only allow a certain number of notes to be submitted per minute. At this time, this number has been exceeded. Please re-submit your note in about a minute.
';
} elseif (($pos = strpos($result, '[SPAMMER]')) !== false) {
$ip = trim(substr($result, $pos + 9));
$spam_url = $ip_spam_lookup_url . $ip;
@@ -118,7 +118,7 @@
echo '
Due to some technical problems this service isn\'t currently working. Please try again later. Sorry for any inconvenience.
';
} else {
echo "";
- echo "
There was an internal error processing your submission. Please try to submit again later.
";
+ echo '
There was an internal error processing your submission. Please try to submit again later.
';
}
}
@@ -327,7 +327,7 @@
}
// If the user name was not specified, provide a default
-if (empty($_POST['user'])) { $_POST['user'] = "user@example.com"; }
+if (empty($_POST['user'])) { $_POST['user'] = 'user@example.com'; }
// There is no section to add note to
if (!isset($_POST['sect'], $_POST['redirect'])) {
diff --git a/manual/change.php b/manual/change.php
index f1d376eec7..73f5ef37ae 100644
--- a/manual/change.php
+++ b/manual/change.php
@@ -3,7 +3,7 @@
include_once __DIR__ . '/../include/prepend.inc';
$page = isset($_GET['page']) ? htmlspecialchars($_GET['page'], ENT_QUOTES, 'UTF-8') : '';
-$page = strtr($page, ["\r" => "", "\n" => ""]);
+$page = strtr($page, ["\r" => '', "\n" => '']);
// Redirect to new manual page
-mirror_redirect("/manual/" . $page);
+mirror_redirect('/manual/' . $page);
diff --git a/manual/help-translate.php b/manual/help-translate.php
index c416b10930..b6d241b029 100644
--- a/manual/help-translate.php
+++ b/manual/help-translate.php
@@ -2,7 +2,7 @@
$_SERVER['BASE_PAGE'] = 'manual/help-translate.php';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/shared-manual.inc';
-site_header("Help translate the PHP Manual");
+site_header('Help translate the PHP Manual');
?>
Looking for a translation?
diff --git a/manual/vote-note.php b/manual/vote-note.php
index fa8de7c7e2..b4a438721c 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -12,39 +12,39 @@
$BACKpage = htmlspecialchars($_REQUEST['page'] ?? '');
$BACKid = htmlspecialchars($_REQUEST['id'] ?? '');
$link = "/{$BACKpage}#{$BACKid}";
-$master_url = "https://main.php.net/entry/user-notes-vote.php";
+$master_url = 'https://main.php.net/entry/user-notes-vote.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (isset($_SERVER['HTTP_X_JSON']) && $_SERVER['HTTP_X_JSON'] == 'On' && !empty($_REQUEST['id']) && !empty($_REQUEST['page']) && ($N = manual_notes_load($_REQUEST['page'])) && array_key_exists($_REQUEST['id'], $N) && !empty($_REQUEST['vote']) && ($_REQUEST['vote'] === 'up' || $_REQUEST['vote'] === 'down')) {
$response = [];
$hash = substr(md5($_REQUEST['page']), 0, 16);
- $notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" . substr($hash, 0, 2) . "/$hash";
+ $notes_file = $_SERVER['DOCUMENT_ROOT'] . '/backend/notes/' . substr($hash, 0, 2) . "/$hash";
if (!file_exists($notes_file)) {
- $response["success"] = false;
- $response["msg"] = "Invalid request.";
+ $response['success'] = false;
+ $response['msg'] = 'Invalid request.';
}
else {
$data = [
- "noteid" => $_REQUEST['id'],
- "sect" => $_REQUEST['page'],
- "vote" => $_REQUEST['vote'],
- "ip" => $_SERVER['REMOTE_ADDR'],
+ 'noteid' => $_REQUEST['id'],
+ 'sect' => $_REQUEST['page'],
+ 'vote' => $_REQUEST['vote'],
+ 'ip' => $_SERVER['REMOTE_ADDR'],
];
- if (($r = posttohost($master_url, $data)) === null || strpos($r,"failed to open socket to") !== false) {
- $response["success"] = false;
- $response["msg"] = "Could not process your request at this time. Please try again later...";
+ if (($r = posttohost($master_url, $data)) === null || strpos($r,'failed to open socket to') !== false) {
+ $response['success'] = false;
+ $response['msg'] = 'Could not process your request at this time. Please try again later...';
}
else {
$r = json_decode($r);
if (isset($r->status, $r->votes) && $r->status) {
- $response["success"] = true;
- $response["update"] = (int)$r->votes;
+ $response['success'] = true;
+ $response['update'] = (int)$r->votes;
} elseif (isset($r->status, $r->message) && !$r->status) {
- $response["success"] = false;
- $response["msg"] = $r->message;
+ $response['success'] = false;
+ $response['msg'] = $r->message;
} else {
- $response["success"] = false;
- $response["msg"] = "The server did not respond properly. Please try again later...";
+ $response['success'] = false;
+ $response['msg'] = 'The server did not respond properly. Please try again later...';
}
}
}
@@ -54,7 +54,7 @@
if (!empty($_REQUEST['id']) && !empty($_REQUEST['page']) && ($N = manual_notes_load($_REQUEST['page'])) && array_key_exists($_REQUEST['id'], $N) && !empty($_REQUEST['vote']) && ($_REQUEST['vote'] === 'up' || $_REQUEST['vote'] === 'down')) {
if (!empty($_POST['challenge']) && !empty($_POST['func']) || empty($_POST['arga']) || empty($_POST['argb'])) {
if (!test_answer($_POST['func'], $_POST['arga'], $_POST['argb'], $_POST['challenge'])) {
- $error = "Incorrect answer! Please try again.";
+ $error = 'Incorrect answer! Please try again.';
}
else {
if ($_REQUEST['vote'] === 'up') {
@@ -64,42 +64,42 @@
$N[$_REQUEST['id']]->downvotes++;
}
$hash = substr(md5($_REQUEST['page']), 0, 16);
- $notes_file = $_SERVER['DOCUMENT_ROOT'] . "/backend/notes/" . substr($hash, 0, 2) . "/$hash";
+ $notes_file = $_SERVER['DOCUMENT_ROOT'] . '/backend/notes/' . substr($hash, 0, 2) . "/$hash";
if (file_exists($notes_file)) {
$data = [
- "noteid" => $_REQUEST['id'],
- "sect" => $_REQUEST['page'],
- "vote" => $_REQUEST['vote'],
- "ip" => $_SERVER['REMOTE_ADDR'],
+ 'noteid' => $_REQUEST['id'],
+ 'sect' => $_REQUEST['page'],
+ 'vote' => $_REQUEST['vote'],
+ 'ip' => $_SERVER['REMOTE_ADDR'],
];
- if (($r = posttohost($master_url, $data)) !== null && strpos($r,"failed to open socket to") === false) {
+ if (($r = posttohost($master_url, $data)) !== null && strpos($r,'failed to open socket to') === false) {
$r = json_decode($r);
if (isset($r->status, $r->votes) && $r->status) {
$thankyou = true;
} else {
- $error = "Invalid request.";
+ $error = 'Invalid request.';
}
}
else {
- $error = "Invalid request.";
+ $error = 'Invalid request.';
}
}
else {
- $error = "Invalid request.";
+ $error = 'Invalid request.';
}
}
}
else {
- $error = "You did not answer the spam challenge question.";
+ $error = 'You did not answer the spam challenge question.';
}
}
else {
- $error = "Invalid request.";
+ $error = 'Invalid request.';
}
}
else {
// Site header
- site_header("Vote On User Notes");
+ site_header('Vote On User Notes');
$headerset = true;
if (!empty($_REQUEST['id']) && !empty($_REQUEST['page']) && ($N = manual_notes_load($_REQUEST['page'])) && array_key_exists($_REQUEST['id'], $N) && !empty($_REQUEST['vote']) && ($_REQUEST['vote'] === 'up' || $_REQUEST['vote'] === 'down')) {
@@ -131,7 +131,7 @@
EOL;
if (!$headerset) {
- site_header("Error - Voting");
+ site_header('Error - Voting');
$headerset = true;
}
?>
@@ -170,7 +170,7 @@
The Note You're Voting On
@@ -185,7 +185,7 @@
}
}
if ($thankyou) {
- site_header("Thank you for voting!");
+ site_header('Thank you for voting!');
$headerset = true;
?>
diff --git a/mirror-info.php b/mirror-info.php
index d70f72eed1..5b9147d7c1 100644
--- a/mirror-info.php
+++ b/mirror-info.php
@@ -7,7 +7,7 @@
include_once __DIR__ . '/include/version.inc';
// Text/plain content type for better readability in browsers
-header("Content-type: text/plain; charset=utf-8");
+header('Content-type: text/plain; charset=utf-8');
// Provide information on local stats setup
$mirror_stats = (int) (isset($_SERVER['MIRROR_STATS']) && $_SERVER['MIRROR_STATS'] == '1');
diff --git a/mirror.php b/mirror.php
index ea1c397d62..2a9c92aa8b 100644
--- a/mirror.php
+++ b/mirror.php
@@ -22,10 +22,10 @@
if (is_official_mirror()) {
// Iterate through possible mirror provider logo types in priority order
- $types = ["gif", "jpg", "png"];
+ $types = ['gif', 'jpg', 'png'];
foreach ($types as $ext) {
// Check if file exists for this type
- if (file_exists("backend/mirror." . $ext)) {
+ if (file_exists('backend/mirror.' . $ext)) {
// Create image HTML code
$MIRROR_IMAGE = make_image(
@@ -48,7 +48,7 @@
}
}
}
-site_header("Information About This PHP Mirror Site", ["current" => "community"]);
+site_header('Information About This PHP Mirror Site', ['current' => 'community']);
?>
Information About This PHP Mirror Site
@@ -65,7 +65,7 @@
General Information
- This site is an official PHP.net mirror site
+ This site is an official PHP.net mirror site
The mirror site's address is = make_link($MYSITE)?>
diff --git a/mirroring-troubles.php b/mirroring-troubles.php
index 7e34446f66..dceb34ff65 100644
--- a/mirroring-troubles.php
+++ b/mirroring-troubles.php
@@ -9,7 +9,7 @@
';
-site_header("The PHP mirrors problem and troubleshooting guide", ["current" => "help"]);
+site_header('The PHP mirrors problem and troubleshooting guide', ['current' => 'help']);
?>
Common troubles that PHP.net mirrors face
diff --git a/mirrors.php b/mirrors.php
index f43220fd9e..49272e3a2c 100644
--- a/mirrors.php
+++ b/mirrors.php
@@ -2,5 +2,5 @@
include_once __DIR__ . '/include/prepend.inc';
-header("HTTP/1.1 301 Moved Permanently");
-header("Location: /");
+header('HTTP/1.1 301 Moved Permanently');
+header('Location: /');
diff --git a/mod.php b/mod.php
index d9e2caa8d4..bc87689668 100644
--- a/mod.php
+++ b/mod.php
@@ -8,7 +8,7 @@
$_SERVER['BASE_PAGE'] = 'mod.php';
include_once __DIR__ . '/include/prepend.inc';
-site_header("Email confirmation", ["current" => "community"]);
+site_header('Email confirmation', ['current' => 'community']);
// Only run on main php.net box.
if (!is_primary_site()) {
@@ -24,13 +24,13 @@
}
// These sites are handled by automoderation
-$sites = ["php.net", "lists.php.net"];
+$sites = ['php.net', 'lists.php.net'];
// Get data from the URL
-[$none, $site, $token, $sender] = explode("/", $_SERVER["PATH_INFO"]);
+[$none, $site, $token, $sender] = explode('/', $_SERVER['PATH_INFO']);
// Error in input data
-if ($sender == "" || strlen($token) < 32 || !isset($sites[$site])) {
+if ($sender == '' || strlen($token) < 32 || !isset($sites[$site])) {
echo <<
Email confirmation failed
@@ -44,8 +44,8 @@
// Data OK, send confirmation mail
else {
mail(
- "confirm@" . $sites[$site],
- "confirm",
+ 'confirm@' . $sites[$site],
+ 'confirm',
"[confirm: $token $sender]",
"From: $sender",
);
diff --git a/my.php b/my.php
index a2c4d7c931..8b3e38458e 100644
--- a/my.php
+++ b/my.php
@@ -47,24 +47,24 @@
// Assemble form from collected data
$langpref = "\n" .
- implode("", $options) . " \n";
+ implode('', $options) . "\n";
// Save URL shortcut fallback setting
if (isset($_POST['urlsearch'])) {
myphpnet_urlsearch($_POST['urlsearch']);
}
-if (isset($_POST["showug"])) {
- myphpnet_showug($_POST["showug"] === "enable");
+if (isset($_POST['showug'])) {
+ myphpnet_showug($_POST['showug'] === 'enable');
}
// Prepare mirror array
$mirror_sites = $MIRRORS;
-$mirror_sites["NONE"] = [7 => MIRROR_OK];
+$mirror_sites['NONE'] = [7 => MIRROR_OK];
myphpnet_save();
-site_header("My PHP.net", ["current" => "community"]);
+site_header('My PHP.net', ['current' => 'community']);
?>
\n";
}
?>
@@ -158,9 +158,9 @@
" . $COUNTRIES[$COUNTRY] . "";
+ echo 'We detected that you are from ' . $COUNTRIES[$COUNTRY] . ' ';
} else {
- echo "We were unable to detect your country";
+ echo 'We were unable to detect your country';
}
?>
@@ -197,8 +197,8 @@
We are experimenting with listing nearby user groups. This feature is highly experimental
and will very likely change a lot and be broken at times.
-
Enable UG tips >
-
Disable UG tips >
+
Enable UG tips >
+
Disable UG tips >
diff --git a/privacy.php b/privacy.php
index 7a912bb479..195a44cab0 100644
--- a/privacy.php
+++ b/privacy.php
@@ -1,7 +1,7 @@
"footer"]);
+site_header('Privacy Policy', ['current' => 'footer']);
?>
Privacy Policy
diff --git a/quickref.php b/quickref.php
index 569937b416..2300966fa1 100644
--- a/quickref.php
+++ b/quickref.php
@@ -18,7 +18,7 @@
include_once __DIR__ . '/include/errors.inc';
if (empty($notfound)) {
- mirror_redirect("/search.php");
+ mirror_redirect('/search.php');
}
// Print out the table of found (or all) functions. The HTML comments are
@@ -56,7 +56,7 @@ function quickref_table($functions, $sort = true): void
while (($entry = readdir($dirh)) !== false) {
// Skip names starting with a dot
- if (substr($entry, 0, 1) == ".") { continue; }
+ if (substr($entry, 0, 1) == '.') { continue; }
// For function and class pages, get the name out
if (preg_match('!^(function|class)\.(.+)\.php$!', $entry, $parts)) {
@@ -104,10 +104,10 @@ function quickref_table($functions, $sort = true): void
}
// Do not index page if presented as a search result
-if (count($maybe) > 0) { $head_options = ["noindex"]; }
+if (count($maybe) > 0) { $head_options = ['noindex']; }
else { $head_options = []; }
-site_header("Manual Quick Reference", $head_options + ["current" => "help"]);
+site_header('Manual Quick Reference', $head_options + ['current' => 'help']);
// Note: $notfound is defined (with htmlspecialchars) inside manual-lookup.php
$notfound_enc = urlencode($notfound);
@@ -131,6 +131,6 @@ function quickref_table($functions, $sort = true): void
quickref_table($maybe, false);
site_footer([
- "sidebar" => '
Full website search ',
+ 'sidebar' => '
Full website search ',
]);
}
diff --git a/releases/4_1_0.php b/releases/4_1_0.php
index 39b8474d15..67b522094b 100644
--- a/releases/4_1_0.php
+++ b/releases/4_1_0.php
@@ -1,7 +1,7 @@
PHP 4.1.0 Release Announcement
diff --git a/releases/4_1_0_fr.php b/releases/4_1_0_fr.php
index 04c16a721d..50aa4253e4 100644
--- a/releases/4_1_0_fr.php
+++ b/releases/4_1_0_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.1.0', ['lang' => 'fr']);
?>
Annonce de publication de PHP 4.1.0
diff --git a/releases/4_1_1.php b/releases/4_1_1.php
index bbbc8d6dfe..7b86233609 100644
--- a/releases/4_1_1.php
+++ b/releases/4_1_1.php
@@ -1,7 +1,7 @@
PHP 4.1.1 Release Announcement
diff --git a/releases/4_1_2_win32.php b/releases/4_1_2_win32.php
index d3ec735981..60ea863b93 100644
--- a/releases/4_1_2_win32.php
+++ b/releases/4_1_2_win32.php
@@ -1,7 +1,7 @@
PHP 4.1.2 Windows (Win32) Release Announcement
diff --git a/releases/4_2_0.php b/releases/4_2_0.php
index 81a94d2ea8..cb8a3fbdb2 100644
--- a/releases/4_2_0.php
+++ b/releases/4_2_0.php
@@ -1,7 +1,7 @@
PHP 4.2.0 Release Announcement
diff --git a/releases/4_2_0_fr.php b/releases/4_2_0_fr.php
index 80fb718f14..85297cc331 100644
--- a/releases/4_2_0_fr.php
+++ b/releases/4_2_0_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.2.0', ['lang' => 'fr']);
?>
Annonce de publication de PHP 4.2.0
diff --git a/releases/4_2_1.php b/releases/4_2_1.php
index 53cf98f87f..8fb23438ea 100644
--- a/releases/4_2_1.php
+++ b/releases/4_2_1.php
@@ -1,7 +1,7 @@
PHP 4.2.1 Release Announcement
diff --git a/releases/4_2_1_fr.php b/releases/4_2_1_fr.php
index d553fca296..27bc79b43c 100644
--- a/releases/4_2_1_fr.php
+++ b/releases/4_2_1_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.2.1', ['lang' => 'fr']);
?>
Annonce de publication de PHP 4.2.1
diff --git a/releases/4_2_2.php b/releases/4_2_2.php
index 7f9b248bd6..2c032ead3e 100644
--- a/releases/4_2_2.php
+++ b/releases/4_2_2.php
@@ -1,7 +1,7 @@
diff --git a/releases/4_2_2_fr.php b/releases/4_2_2_fr.php
index a9125184d5..3592e32eed 100644
--- a/releases/4_2_2_fr.php
+++ b/releases/4_2_2_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.2.2', ['lang' => 'fr']);
?>
diff --git a/releases/4_3_0.php b/releases/4_3_0.php
index 5b0a04ad6e..5473760fec 100644
--- a/releases/4_3_0.php
+++ b/releases/4_3_0.php
@@ -1,7 +1,7 @@
PHP 4.3.0 Release Announcement
diff --git a/releases/4_3_0_fr.php b/releases/4_3_0_fr.php
index 8fc1a959c2..71527ca2f8 100644
--- a/releases/4_3_0_fr.php
+++ b/releases/4_3_0_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.3.0', ['lang' => 'fr']);
?>
Annonce de publication de PHP 4.3.0
diff --git a/releases/4_3_1.php b/releases/4_3_1.php
index 9ae866e95a..1317580320 100644
--- a/releases/4_3_1.php
+++ b/releases/4_3_1.php
@@ -1,7 +1,7 @@
diff --git a/releases/4_3_10.php b/releases/4_3_10.php
index 9aff2fb70d..40f5016766 100644
--- a/releases/4_3_10.php
+++ b/releases/4_3_10.php
@@ -1,7 +1,7 @@
PHP 4.3.10 Release Announcement
diff --git a/releases/4_3_10_fr.php b/releases/4_3_10_fr.php
index 9dc6e5813c..f6f79beb81 100644
--- a/releases/4_3_10_fr.php
+++ b/releases/4_3_10_fr.php
@@ -1,7 +1,7 @@
Annonce de publication de PHP 4.3.10
diff --git a/releases/4_3_11.php b/releases/4_3_11.php
index 808755625e..bdd1eba131 100644
--- a/releases/4_3_11.php
+++ b/releases/4_3_11.php
@@ -1,7 +1,7 @@
PHP 4.3.11 Release Announcement
diff --git a/releases/4_3_11_fr.php b/releases/4_3_11_fr.php
index 715218c619..0fe29b5827 100644
--- a/releases/4_3_11_fr.php
+++ b/releases/4_3_11_fr.php
@@ -1,7 +1,7 @@
Annonce de publication de PHP 4.3.11
diff --git a/releases/4_3_2.php b/releases/4_3_2.php
index 48e099c15e..30a02e670b 100644
--- a/releases/4_3_2.php
+++ b/releases/4_3_2.php
@@ -1,7 +1,7 @@
PHP 4.3.2 Release Announcement
diff --git a/releases/4_3_2_fr.php b/releases/4_3_2_fr.php
index bd62af5f7b..a27ac9e808 100644
--- a/releases/4_3_2_fr.php
+++ b/releases/4_3_2_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.3.2', ['lang' => 'fr']);
?>
Annonce de publication de PHP 4.3.2
diff --git a/releases/4_3_3.php b/releases/4_3_3.php
index 93c0f20a4d..b48389de5c 100644
--- a/releases/4_3_3.php
+++ b/releases/4_3_3.php
@@ -1,7 +1,7 @@
PHP 4.3.3 Release Announcement
diff --git a/releases/4_3_3_fr.php b/releases/4_3_3_fr.php
index 3a48a9a893..d22db2b72f 100644
--- a/releases/4_3_3_fr.php
+++ b/releases/4_3_3_fr.php
@@ -1,7 +1,7 @@
Annonce de publication de PHP 4.3.3
diff --git a/releases/4_3_4.php b/releases/4_3_4.php
index 1e0ab94e1a..e3c08f8684 100644
--- a/releases/4_3_4.php
+++ b/releases/4_3_4.php
@@ -1,7 +1,7 @@
PHP 4.3.4 Release Announcement
diff --git a/releases/4_3_4_fr.php b/releases/4_3_4_fr.php
index 4f36924454..820cb3022c 100644
--- a/releases/4_3_4_fr.php
+++ b/releases/4_3_4_fr.php
@@ -1,7 +1,7 @@
"fr"]);
+site_header('Annonce de publication de PHP 4.3.4', ['lang' => 'fr']);
?>
Annonce de publication de PHP 4.3.4
diff --git a/releases/4_3_5.php b/releases/4_3_5.php
index d5efd309c2..a5bc627fc1 100644
--- a/releases/4_3_5.php
+++ b/releases/4_3_5.php
@@ -1,7 +1,7 @@
PHP 4.3.5 Release Announcement
diff --git a/releases/4_3_5_fr.php b/releases/4_3_5_fr.php
index f4d8fdbadf..d40dbc2ca7 100644
--- a/releases/4_3_5_fr.php
+++ b/releases/4_3_5_fr.php
@@ -1,7 +1,7 @@
Annonce de publication de PHP 4.3.5
diff --git a/releases/4_3_6.php b/releases/4_3_6.php
index 998c9c37aa..aba9663e9b 100644
--- a/releases/4_3_6.php
+++ b/releases/4_3_6.php
@@ -1,7 +1,7 @@
PHP 4.3.6 Release Announcement
diff --git a/releases/4_3_6_fr.php b/releases/4_3_6_fr.php
index df7a861f72..c11fac5c58 100644
--- a/releases/4_3_6_fr.php
+++ b/releases/4_3_6_fr.php
@@ -1,7 +1,7 @@
diff --git a/releases/4_3_7.php b/releases/4_3_7.php
index 12d5ead8d5..9141985f78 100644
--- a/releases/4_3_7.php
+++ b/releases/4_3_7.php
@@ -1,7 +1,7 @@
PHP 4.3.7 Release Announcement
diff --git a/releases/4_3_7_fr.php b/releases/4_3_7_fr.php
index 22776d6a95..b4f3494f6d 100644
--- a/releases/4_3_7_fr.php
+++ b/releases/4_3_7_fr.php
@@ -1,7 +1,7 @@
Annonce de publication de PHP 4.3.7
diff --git a/releases/4_3_8.php b/releases/4_3_8.php
index 3f590cf1bb..abb2e65ada 100644
--- a/releases/4_3_8.php
+++ b/releases/4_3_8.php
@@ -1,7 +1,7 @@
PHP 4.3.8 Release Announcement
diff --git a/releases/4_3_9.php b/releases/4_3_9.php
index d43691b8e4..7ce13e43eb 100644
--- a/releases/4_3_9.php
+++ b/releases/4_3_9.php
@@ -1,7 +1,7 @@
PHP 4.3.9 Release Announcement
diff --git a/releases/4_3_9_fr.php b/releases/4_3_9_fr.php
index 75210ebc4e..1578980f40 100644
--- a/releases/4_3_9_fr.php
+++ b/releases/4_3_9_fr.php
@@ -1,7 +1,7 @@
Annonce de publication de PHP 4.3.9
diff --git a/releases/4_4_0.php b/releases/4_4_0.php
index 500fd9b093..9fc0c38359 100644
--- a/releases/4_4_0.php
+++ b/releases/4_4_0.php
@@ -1,7 +1,7 @@
PHP 4.4. Release Announcement
diff --git a/releases/4_4_1.php b/releases/4_4_1.php
index 1d3bb9450e..fa1b3d454e 100644
--- a/releases/4_4_1.php
+++ b/releases/4_4_1.php
@@ -1,7 +1,7 @@
PHP 4.4.1. Release Announcement
diff --git a/releases/4_4_2.php b/releases/4_4_2.php
index e84d53a3b7..77dda798c6 100644
--- a/releases/4_4_2.php
+++ b/releases/4_4_2.php
@@ -1,7 +1,7 @@
PHP 4.4.2. Release Announcement
diff --git a/releases/4_4_3.php b/releases/4_4_3.php
index ad07b3ea19..39f0701d68 100644
--- a/releases/4_4_3.php
+++ b/releases/4_4_3.php
@@ -1,7 +1,7 @@
PHP 4.4.3. Release Announcement
diff --git a/releases/4_4_4.php b/releases/4_4_4.php
index e2ce4fa5fc..8c87f503cb 100644
--- a/releases/4_4_4.php
+++ b/releases/4_4_4.php
@@ -1,7 +1,7 @@
PHP 4.4.4 Release Announcement
diff --git a/releases/4_4_5.php b/releases/4_4_5.php
index 4c143df348..94162297f0 100644
--- a/releases/4_4_5.php
+++ b/releases/4_4_5.php
@@ -1,7 +1,7 @@
PHP 4.4.5 Release Announcement
diff --git a/releases/4_4_6.php b/releases/4_4_6.php
index 42fa75ec31..6ea8157f72 100644
--- a/releases/4_4_6.php
+++ b/releases/4_4_6.php
@@ -1,7 +1,7 @@
PHP 4.4.6 Release Announcement
diff --git a/releases/4_4_7.php b/releases/4_4_7.php
index d523396682..bb9827493f 100644
--- a/releases/4_4_7.php
+++ b/releases/4_4_7.php
@@ -1,7 +1,7 @@
PHP 4.4.7 Release Announcement
diff --git a/releases/4_4_8.php b/releases/4_4_8.php
index 2c122a8475..89805f1206 100644
--- a/releases/4_4_8.php
+++ b/releases/4_4_8.php
@@ -1,7 +1,7 @@
PHP 4.4.8 Release Announcement
diff --git a/releases/4_4_9.php b/releases/4_4_9.php
index 141b091635..e297ff4426 100644
--- a/releases/4_4_9.php
+++ b/releases/4_4_9.php
@@ -1,7 +1,7 @@
PHP 4.4.9 Release Announcement
diff --git a/releases/5_1_0.php b/releases/5_1_0.php
index 0ad76a5fdc..c800ec5e10 100644
--- a/releases/5_1_0.php
+++ b/releases/5_1_0.php
@@ -1,7 +1,7 @@
PHP 5.1.0. Release Announcement
diff --git a/releases/5_1_1.php b/releases/5_1_1.php
index c746291fbd..8fc5015401 100644
--- a/releases/5_1_1.php
+++ b/releases/5_1_1.php
@@ -1,7 +1,7 @@
PHP 5.1.1. Release Announcement
diff --git a/releases/5_1_2.php b/releases/5_1_2.php
index d4b1841cde..118861a30c 100644
--- a/releases/5_1_2.php
+++ b/releases/5_1_2.php
@@ -1,7 +1,7 @@
PHP 5.1.2. Release Announcement
diff --git a/releases/5_1_3.php b/releases/5_1_3.php
index 49deee03f4..f441efbac0 100644
--- a/releases/5_1_3.php
+++ b/releases/5_1_3.php
@@ -1,7 +1,7 @@
PHP 5.1.3. Release Announcement
diff --git a/releases/5_1_4.php b/releases/5_1_4.php
index 9ecb4b6306..1a10c1defb 100644
--- a/releases/5_1_4.php
+++ b/releases/5_1_4.php
@@ -1,7 +1,7 @@
PHP 5.1.4 Release Announcement
diff --git a/releases/5_1_5.php b/releases/5_1_5.php
index 1b87800981..b002a36e33 100644
--- a/releases/5_1_5.php
+++ b/releases/5_1_5.php
@@ -1,7 +1,7 @@
PHP 5.1.5 Release Announcement
diff --git a/releases/5_1_6.php b/releases/5_1_6.php
index 43d983e835..69910adb4f 100644
--- a/releases/5_1_6.php
+++ b/releases/5_1_6.php
@@ -1,7 +1,7 @@
PHP 5.1.6 Release Announcement
diff --git a/releases/5_2_0.php b/releases/5_2_0.php
index ef0de0ff52..58af54ca30 100644
--- a/releases/5_2_0.php
+++ b/releases/5_2_0.php
@@ -1,7 +1,7 @@
PHP 5.2.0 Release Announcement
diff --git a/releases/5_2_1.php b/releases/5_2_1.php
index 5acc7720b0..05367675b1 100644
--- a/releases/5_2_1.php
+++ b/releases/5_2_1.php
@@ -1,7 +1,7 @@
PHP 5.2.1 Release Announcement
diff --git a/releases/5_2_10.php b/releases/5_2_10.php
index 02122ae821..692a509b65 100644
--- a/releases/5_2_10.php
+++ b/releases/5_2_10.php
@@ -1,7 +1,7 @@
PHP 5.2.10 Release Announcement
diff --git a/releases/5_2_11.php b/releases/5_2_11.php
index 7df7b255e4..887ad92948 100644
--- a/releases/5_2_11.php
+++ b/releases/5_2_11.php
@@ -1,7 +1,7 @@
PHP 5.2.11 Release Announcement
diff --git a/releases/5_2_12.php b/releases/5_2_12.php
index c85ea50700..2c7665cb4b 100644
--- a/releases/5_2_12.php
+++ b/releases/5_2_12.php
@@ -1,7 +1,7 @@
PHP 5.2.12 Release Announcement
diff --git a/releases/5_2_13.php b/releases/5_2_13.php
index 8402449f1f..f3d52e0e80 100644
--- a/releases/5_2_13.php
+++ b/releases/5_2_13.php
@@ -1,7 +1,7 @@
PHP 5.2.13 Release Announcement
diff --git a/releases/5_2_14.php b/releases/5_2_14.php
index ad0f78486a..7f4f8eabfb 100644
--- a/releases/5_2_14.php
+++ b/releases/5_2_14.php
@@ -1,7 +1,7 @@
PHP 5.2.14 Release Announcement
diff --git a/releases/5_2_15.php b/releases/5_2_15.php
index fb8bf9781b..bf3c048e71 100644
--- a/releases/5_2_15.php
+++ b/releases/5_2_15.php
@@ -1,7 +1,7 @@
PHP 5.2.15 Release Announcement
diff --git a/releases/5_2_16.php b/releases/5_2_16.php
index 34224cd50d..173b440c12 100644
--- a/releases/5_2_16.php
+++ b/releases/5_2_16.php
@@ -1,7 +1,7 @@
PHP 5.2.16 Release Announcement
diff --git a/releases/5_2_17.php b/releases/5_2_17.php
index ac4a748273..6065848bd4 100644
--- a/releases/5_2_17.php
+++ b/releases/5_2_17.php
@@ -1,7 +1,7 @@
PHP 5.2.17 Release Announcement
diff --git a/releases/5_2_2.php b/releases/5_2_2.php
index 46685cb035..1b2f302c04 100644
--- a/releases/5_2_2.php
+++ b/releases/5_2_2.php
@@ -1,7 +1,7 @@
PHP 5.2.2 Release Announcement
diff --git a/releases/5_2_3.php b/releases/5_2_3.php
index 9eab6eee3a..571f0ecaba 100644
--- a/releases/5_2_3.php
+++ b/releases/5_2_3.php
@@ -1,7 +1,7 @@
PHP 5.2.3 Release Announcement
diff --git a/releases/5_2_4.php b/releases/5_2_4.php
index adf5277165..58d3b80f9f 100644
--- a/releases/5_2_4.php
+++ b/releases/5_2_4.php
@@ -1,7 +1,7 @@
PHP 5.2.4 Release Announcement
diff --git a/releases/5_2_5.php b/releases/5_2_5.php
index 5f738cdd6e..b752c3dc6d 100644
--- a/releases/5_2_5.php
+++ b/releases/5_2_5.php
@@ -1,7 +1,7 @@
PHP 5.2.5 Release Announcement
diff --git a/releases/5_2_6.php b/releases/5_2_6.php
index aadcebfed2..2926b88b50 100644
--- a/releases/5_2_6.php
+++ b/releases/5_2_6.php
@@ -1,7 +1,7 @@
PHP 5.2.6 Release Announcement
diff --git a/releases/5_2_7.php b/releases/5_2_7.php
index d188648933..bb5f7ddc48 100644
--- a/releases/5_2_7.php
+++ b/releases/5_2_7.php
@@ -1,7 +1,7 @@
PHP 5.2.7 Release Announcement
diff --git a/releases/5_2_8.php b/releases/5_2_8.php
index 4e8731caea..d227f6fa9e 100644
--- a/releases/5_2_8.php
+++ b/releases/5_2_8.php
@@ -1,7 +1,7 @@
PHP 5.2.8 Release Announcement
diff --git a/releases/5_2_9.php b/releases/5_2_9.php
index da895cda43..c8edb20e0d 100644
--- a/releases/5_2_9.php
+++ b/releases/5_2_9.php
@@ -1,7 +1,7 @@
PHP 5.2.9 Release Announcement
diff --git a/releases/5_3_0.php b/releases/5_3_0.php
index 16429cd0fc..0b3654713d 100644
--- a/releases/5_3_0.php
+++ b/releases/5_3_0.php
@@ -1,7 +1,7 @@
PHP 5.3.0 Release Announcement
diff --git a/releases/5_3_1.php b/releases/5_3_1.php
index 72d08ba64f..cee9431540 100644
--- a/releases/5_3_1.php
+++ b/releases/5_3_1.php
@@ -1,7 +1,7 @@
PHP 5.3.1 Release Announcement
diff --git a/releases/5_3_10.php b/releases/5_3_10.php
index 17fdaf2d0e..86caa6efae 100644
--- a/releases/5_3_10.php
+++ b/releases/5_3_10.php
@@ -1,7 +1,7 @@
PHP 5.3.10 Release Announcement
diff --git a/releases/5_3_11.php b/releases/5_3_11.php
index 9a24adfe0e..32292154f4 100644
--- a/releases/5_3_11.php
+++ b/releases/5_3_11.php
@@ -1,7 +1,7 @@
PHP 5.3.11 Release Announcement
diff --git a/releases/5_3_12.php b/releases/5_3_12.php
index 6ef2c48943..087946a5ce 100644
--- a/releases/5_3_12.php
+++ b/releases/5_3_12.php
@@ -1,7 +1,7 @@
PHP 5.3.12 Release Announcement
diff --git a/releases/5_3_13.php b/releases/5_3_13.php
index 37803df495..49517e1ea3 100644
--- a/releases/5_3_13.php
+++ b/releases/5_3_13.php
@@ -1,7 +1,7 @@
PHP 5.3.13 Release Announcement
diff --git a/releases/5_3_14.php b/releases/5_3_14.php
index 2deabd0e5b..34aecdc7d2 100644
--- a/releases/5_3_14.php
+++ b/releases/5_3_14.php
@@ -1,7 +1,7 @@
PHP 5.3.14 Release Announcement
diff --git a/releases/5_3_15.php b/releases/5_3_15.php
index 1e1504dd9e..73afdcbb68 100644
--- a/releases/5_3_15.php
+++ b/releases/5_3_15.php
@@ -1,7 +1,7 @@
PHP 5.3.15 Release Announcement
diff --git a/releases/5_3_16.php b/releases/5_3_16.php
index 77bda90b45..b8d9822854 100644
--- a/releases/5_3_16.php
+++ b/releases/5_3_16.php
@@ -1,7 +1,7 @@
PHP 5.3.16 Release Announcement
diff --git a/releases/5_3_17.php b/releases/5_3_17.php
index 713c0921d4..e7d760eedb 100644
--- a/releases/5_3_17.php
+++ b/releases/5_3_17.php
@@ -1,7 +1,7 @@
PHP 5.3.17 Release Announcement
diff --git a/releases/5_3_18.php b/releases/5_3_18.php
index 7aaa678b7e..1ea6aad0d9 100644
--- a/releases/5_3_18.php
+++ b/releases/5_3_18.php
@@ -1,7 +1,7 @@
PHP 5.3.18 Release Announcement
diff --git a/releases/5_3_19.php b/releases/5_3_19.php
index 90c159f543..5d3d8570b0 100644
--- a/releases/5_3_19.php
+++ b/releases/5_3_19.php
@@ -1,7 +1,7 @@
PHP 5.3.19 Release Announcement
diff --git a/releases/5_3_2.php b/releases/5_3_2.php
index b18fadc91e..13142b943a 100644
--- a/releases/5_3_2.php
+++ b/releases/5_3_2.php
@@ -1,7 +1,7 @@
PHP 5.3.2 Release Announcement
diff --git a/releases/5_3_20.php b/releases/5_3_20.php
index 7cc60fead3..f796525643 100644
--- a/releases/5_3_20.php
+++ b/releases/5_3_20.php
@@ -1,7 +1,7 @@
PHP 5.3.20 Release Announcement
diff --git a/releases/5_3_21.php b/releases/5_3_21.php
index d49f696477..9c8aa1c78b 100644
--- a/releases/5_3_21.php
+++ b/releases/5_3_21.php
@@ -1,7 +1,7 @@
PHP 5.3.21 Release Announcement
diff --git a/releases/5_3_22.php b/releases/5_3_22.php
index c4e58c9f17..40a1b117fd 100644
--- a/releases/5_3_22.php
+++ b/releases/5_3_22.php
@@ -1,7 +1,7 @@
PHP 5.3.22 Release Announcement
diff --git a/releases/5_3_23.php b/releases/5_3_23.php
index 4ea5b9735f..1385283920 100644
--- a/releases/5_3_23.php
+++ b/releases/5_3_23.php
@@ -1,7 +1,7 @@
PHP 5.3.23 Release Announcement
diff --git a/releases/5_3_24.php b/releases/5_3_24.php
index 909cd51a03..e57e8d45a1 100644
--- a/releases/5_3_24.php
+++ b/releases/5_3_24.php
@@ -1,7 +1,7 @@
PHP 5.3.24 Release Announcement
diff --git a/releases/5_3_25.php b/releases/5_3_25.php
index 4e162928b6..f2845b532b 100644
--- a/releases/5_3_25.php
+++ b/releases/5_3_25.php
@@ -1,7 +1,7 @@
PHP 5.3.25 Release Announcement
diff --git a/releases/5_3_26.php b/releases/5_3_26.php
index da17ce2073..3d12084907 100644
--- a/releases/5_3_26.php
+++ b/releases/5_3_26.php
@@ -1,7 +1,7 @@
PHP 5.3.26 Release Announcement
diff --git a/releases/5_3_27.php b/releases/5_3_27.php
index ef00ff993a..78cb270660 100644
--- a/releases/5_3_27.php
+++ b/releases/5_3_27.php
@@ -1,7 +1,7 @@
PHP 5.3.27 Release Announcement
diff --git a/releases/5_3_28.php b/releases/5_3_28.php
index 9f49e41d69..89434fee05 100644
--- a/releases/5_3_28.php
+++ b/releases/5_3_28.php
@@ -1,7 +1,7 @@
PHP 5.3.28 Release Announcement
diff --git a/releases/5_3_29.php b/releases/5_3_29.php
index e30e5889a7..69c257e669 100644
--- a/releases/5_3_29.php
+++ b/releases/5_3_29.php
@@ -1,7 +1,7 @@
PHP 5.3.29 Release Announcement
diff --git a/releases/5_3_3.php b/releases/5_3_3.php
index 516ddd3762..c20c057695 100644
--- a/releases/5_3_3.php
+++ b/releases/5_3_3.php
@@ -1,7 +1,7 @@
PHP 5.3.3 Release Announcement
diff --git a/releases/5_3_4.php b/releases/5_3_4.php
index d3bd8a7488..844457615c 100644
--- a/releases/5_3_4.php
+++ b/releases/5_3_4.php
@@ -1,7 +1,7 @@
PHP 5.3.4 Release Announcement
diff --git a/releases/5_3_5.php b/releases/5_3_5.php
index 31dfb7ec72..ea777e032e 100644
--- a/releases/5_3_5.php
+++ b/releases/5_3_5.php
@@ -1,7 +1,7 @@
PHP 5.3.5 Release Announcement
diff --git a/releases/5_3_6.php b/releases/5_3_6.php
index 9f7b718b05..e2288c8dc9 100644
--- a/releases/5_3_6.php
+++ b/releases/5_3_6.php
@@ -1,7 +1,7 @@
PHP 5.3.6 Release Announcement
diff --git a/releases/5_3_7.php b/releases/5_3_7.php
index 31f6fc81d3..668c2bd509 100644
--- a/releases/5_3_7.php
+++ b/releases/5_3_7.php
@@ -1,7 +1,7 @@
PHP 5.3.7 Release Announcement
diff --git a/releases/5_3_8.php b/releases/5_3_8.php
index 83f89e5fc0..fecf798c7b 100644
--- a/releases/5_3_8.php
+++ b/releases/5_3_8.php
@@ -1,7 +1,7 @@
PHP 5.3.8 Release Announcement
diff --git a/releases/5_3_9.php b/releases/5_3_9.php
index c12a3e394f..b1f5771b6b 100644
--- a/releases/5_3_9.php
+++ b/releases/5_3_9.php
@@ -1,7 +1,7 @@
PHP 5.3.9 Release Announcement
diff --git a/releases/5_4_0.php b/releases/5_4_0.php
index be67e7d4b8..392bdee3a1 100644
--- a/releases/5_4_0.php
+++ b/releases/5_4_0.php
@@ -1,7 +1,7 @@
PHP 5.4.0 Release Announcement
diff --git a/releases/5_4_1.php b/releases/5_4_1.php
index 2cd4a6d38d..62a3ddcf74 100644
--- a/releases/5_4_1.php
+++ b/releases/5_4_1.php
@@ -1,7 +1,7 @@
PHP 5.4.1 Release Announcement
diff --git a/releases/5_4_10.php b/releases/5_4_10.php
index 5f75be671b..57ce1cecce 100644
--- a/releases/5_4_10.php
+++ b/releases/5_4_10.php
@@ -1,7 +1,7 @@
PHP 5.4.10 Release Announcement
diff --git a/releases/5_4_11.php b/releases/5_4_11.php
index 6b851be121..e90a0cec02 100644
--- a/releases/5_4_11.php
+++ b/releases/5_4_11.php
@@ -1,7 +1,7 @@
PHP 5.4.11 Release Announcement
diff --git a/releases/5_4_12.php b/releases/5_4_12.php
index c50cf3c462..141ad04261 100644
--- a/releases/5_4_12.php
+++ b/releases/5_4_12.php
@@ -1,7 +1,7 @@
PHP 5.4.12 Release Announcement
diff --git a/releases/5_4_13.php b/releases/5_4_13.php
index f083cbf87a..05b98c1880 100644
--- a/releases/5_4_13.php
+++ b/releases/5_4_13.php
@@ -1,7 +1,7 @@
PHP 5.4.13 Release Announcement
diff --git a/releases/5_4_14.php b/releases/5_4_14.php
index 71a7338e4d..147a643533 100644
--- a/releases/5_4_14.php
+++ b/releases/5_4_14.php
@@ -1,7 +1,7 @@
PHP 5.4.14 Release Announcement
diff --git a/releases/5_4_15.php b/releases/5_4_15.php
index 3dcf941747..b0b0bfbf0d 100644
--- a/releases/5_4_15.php
+++ b/releases/5_4_15.php
@@ -1,7 +1,7 @@
PHP 5.4.15 Release Announcement
diff --git a/releases/5_4_16.php b/releases/5_4_16.php
index d7dc262f16..44105912ed 100644
--- a/releases/5_4_16.php
+++ b/releases/5_4_16.php
@@ -1,7 +1,7 @@
PHP 5.4.16 Release Announcement
diff --git a/releases/5_4_17.php b/releases/5_4_17.php
index 19176efe77..371905c4a2 100644
--- a/releases/5_4_17.php
+++ b/releases/5_4_17.php
@@ -1,7 +1,7 @@
PHP 5.4.17 Release Announcement
diff --git a/releases/5_4_18.php b/releases/5_4_18.php
index b3a573f096..e9665e4d79 100644
--- a/releases/5_4_18.php
+++ b/releases/5_4_18.php
@@ -1,7 +1,7 @@
PHP 5.4.18 Release Announcement
diff --git a/releases/5_4_19.php b/releases/5_4_19.php
index b00068c15e..2bd32995dd 100644
--- a/releases/5_4_19.php
+++ b/releases/5_4_19.php
@@ -1,7 +1,7 @@
PHP 5.4.19 Release Announcement
diff --git a/releases/5_4_2.php b/releases/5_4_2.php
index 176ae391fc..94e00b6d85 100644
--- a/releases/5_4_2.php
+++ b/releases/5_4_2.php
@@ -1,7 +1,7 @@
PHP 5.4.2 Release Announcement
diff --git a/releases/5_4_20.php b/releases/5_4_20.php
index 65921bf064..4fc3bd3187 100644
--- a/releases/5_4_20.php
+++ b/releases/5_4_20.php
@@ -1,7 +1,7 @@
PHP 5.4.20 Release Announcement
diff --git a/releases/5_4_21.php b/releases/5_4_21.php
index 4cf482fafc..4971299c78 100644
--- a/releases/5_4_21.php
+++ b/releases/5_4_21.php
@@ -1,7 +1,7 @@
PHP 5.4.21 Release Announcement
diff --git a/releases/5_4_22.php b/releases/5_4_22.php
index d7fd713b75..c194be2a71 100644
--- a/releases/5_4_22.php
+++ b/releases/5_4_22.php
@@ -1,7 +1,7 @@
PHP 5.4.22 Release Announcement
diff --git a/releases/5_4_23.php b/releases/5_4_23.php
index 84da8ddd15..fef4cfd0ac 100644
--- a/releases/5_4_23.php
+++ b/releases/5_4_23.php
@@ -1,7 +1,7 @@
PHP 5.4.23 Release Announcement
diff --git a/releases/5_4_24.php b/releases/5_4_24.php
index 9b23fa1cd1..b69818338b 100644
--- a/releases/5_4_24.php
+++ b/releases/5_4_24.php
@@ -1,7 +1,7 @@
PHP 5.4.24 Release Announcement
diff --git a/releases/5_4_25.php b/releases/5_4_25.php
index c099ee8beb..54214d8306 100644
--- a/releases/5_4_25.php
+++ b/releases/5_4_25.php
@@ -1,7 +1,7 @@
PHP 5.4.25 Release Announcement
diff --git a/releases/5_4_26.php b/releases/5_4_26.php
index c34b40f8d7..88800b4e1c 100644
--- a/releases/5_4_26.php
+++ b/releases/5_4_26.php
@@ -1,7 +1,7 @@
PHP 5.4.26 Release Announcement
diff --git a/releases/5_4_27.php b/releases/5_4_27.php
index e2e34b6118..1f7f247d67 100644
--- a/releases/5_4_27.php
+++ b/releases/5_4_27.php
@@ -1,7 +1,7 @@
PHP 5.4.27 Release Announcement
diff --git a/releases/5_4_28.php b/releases/5_4_28.php
index 92848a6b04..e3af1a5347 100644
--- a/releases/5_4_28.php
+++ b/releases/5_4_28.php
@@ -1,7 +1,7 @@
PHP 5.4.28 Release Announcement
diff --git a/releases/5_4_29.php b/releases/5_4_29.php
index bb335d1366..0b55d3abe6 100644
--- a/releases/5_4_29.php
+++ b/releases/5_4_29.php
@@ -1,7 +1,7 @@
PHP 5.4.29 Release Announcement
diff --git a/releases/5_4_3.php b/releases/5_4_3.php
index 5f01311be2..60f8c29a10 100644
--- a/releases/5_4_3.php
+++ b/releases/5_4_3.php
@@ -1,7 +1,7 @@
PHP 5.4.3 Release Announcement
diff --git a/releases/5_4_30.php b/releases/5_4_30.php
index bce1a31c24..ccb1f5560c 100644
--- a/releases/5_4_30.php
+++ b/releases/5_4_30.php
@@ -1,7 +1,7 @@
PHP 5.4.30 Release Announcement
diff --git a/releases/5_4_31.php b/releases/5_4_31.php
index 7900456d50..29bbc77001 100644
--- a/releases/5_4_31.php
+++ b/releases/5_4_31.php
@@ -1,7 +1,7 @@
PHP 5.4.31 Release Announcement
diff --git a/releases/5_4_32.php b/releases/5_4_32.php
index 5af9842fbf..947c6ac2eb 100644
--- a/releases/5_4_32.php
+++ b/releases/5_4_32.php
@@ -1,7 +1,7 @@
PHP 5.4.32 Release Announcement
diff --git a/releases/5_4_33.php b/releases/5_4_33.php
index 036c97a4df..139425277d 100644
--- a/releases/5_4_33.php
+++ b/releases/5_4_33.php
@@ -1,7 +1,7 @@
PHP 5.4.33 Release Announcement
diff --git a/releases/5_4_34.php b/releases/5_4_34.php
index d181664911..1715cea154 100644
--- a/releases/5_4_34.php
+++ b/releases/5_4_34.php
@@ -1,7 +1,7 @@
PHP 5.4.34 Release Announcement
diff --git a/releases/5_4_35.php b/releases/5_4_35.php
index 8401e13bef..060848a2b5 100644
--- a/releases/5_4_35.php
+++ b/releases/5_4_35.php
@@ -1,7 +1,7 @@
PHP 5.4.35 Release Announcement
diff --git a/releases/5_4_36.php b/releases/5_4_36.php
index f585a8a316..c0c76c98c5 100644
--- a/releases/5_4_36.php
+++ b/releases/5_4_36.php
@@ -1,7 +1,7 @@
PHP 5.4.36 Release Announcement
diff --git a/releases/5_4_37.php b/releases/5_4_37.php
index 6c1e67a539..a4cc0198f1 100644
--- a/releases/5_4_37.php
+++ b/releases/5_4_37.php
@@ -1,7 +1,7 @@
PHP 5.4.37 Release Announcement
diff --git a/releases/5_4_38.php b/releases/5_4_38.php
index d33f366214..4de7016007 100644
--- a/releases/5_4_38.php
+++ b/releases/5_4_38.php
@@ -1,7 +1,7 @@
PHP 5.4.38 Release Announcement
diff --git a/releases/5_4_39.php b/releases/5_4_39.php
index ada4f62870..045323538d 100644
--- a/releases/5_4_39.php
+++ b/releases/5_4_39.php
@@ -1,7 +1,7 @@
PHP 5.4.39 Release Announcement
diff --git a/releases/5_4_4.php b/releases/5_4_4.php
index 5f2d26098c..8eb219085d 100644
--- a/releases/5_4_4.php
+++ b/releases/5_4_4.php
@@ -1,7 +1,7 @@
PHP 5.4.4 Release Announcement
diff --git a/releases/5_4_40.php b/releases/5_4_40.php
index c98693d4d0..a3e8a48075 100644
--- a/releases/5_4_40.php
+++ b/releases/5_4_40.php
@@ -1,7 +1,7 @@
PHP 5.4.40 Release Announcement
diff --git a/releases/5_4_41.php b/releases/5_4_41.php
index 773a5dfa93..c3f0d08b33 100644
--- a/releases/5_4_41.php
+++ b/releases/5_4_41.php
@@ -1,7 +1,7 @@
PHP 5.4.41 Release Announcement
diff --git a/releases/5_4_42.php b/releases/5_4_42.php
index b2eaabc8c9..090bb1efdc 100644
--- a/releases/5_4_42.php
+++ b/releases/5_4_42.php
@@ -1,7 +1,7 @@
PHP 5.4.42 Release Announcement
diff --git a/releases/5_4_43.php b/releases/5_4_43.php
index 96cd1fce2a..6874fa67a6 100644
--- a/releases/5_4_43.php
+++ b/releases/5_4_43.php
@@ -1,7 +1,7 @@
PHP 5.4.43 Release Announcement
diff --git a/releases/5_4_44.php b/releases/5_4_44.php
index 430aaa25d1..c44bee2fb7 100644
--- a/releases/5_4_44.php
+++ b/releases/5_4_44.php
@@ -1,7 +1,7 @@
PHP 5.4.44 Release Announcement
diff --git a/releases/5_4_45.php b/releases/5_4_45.php
index fe1fb6655b..688d803ab0 100644
--- a/releases/5_4_45.php
+++ b/releases/5_4_45.php
@@ -1,7 +1,7 @@
PHP 5.4.45 Release Announcement
diff --git a/releases/5_4_5.php b/releases/5_4_5.php
index 609502915d..86192b697a 100644
--- a/releases/5_4_5.php
+++ b/releases/5_4_5.php
@@ -1,7 +1,7 @@
PHP 5.4.5 Release Announcement
diff --git a/releases/5_4_6.php b/releases/5_4_6.php
index 67766cd45f..0c87798420 100644
--- a/releases/5_4_6.php
+++ b/releases/5_4_6.php
@@ -1,7 +1,7 @@
PHP 5.4.6 Release Announcement
diff --git a/releases/5_4_7.php b/releases/5_4_7.php
index cc23af960e..07bd008d8f 100644
--- a/releases/5_4_7.php
+++ b/releases/5_4_7.php
@@ -1,7 +1,7 @@
PHP 5.4.7 Release Announcement
diff --git a/releases/5_4_8.php b/releases/5_4_8.php
index d3ce3c1dc7..c858498b91 100644
--- a/releases/5_4_8.php
+++ b/releases/5_4_8.php
@@ -1,7 +1,7 @@
PHP 5.4.8 Release Announcement
diff --git a/releases/5_4_9.php b/releases/5_4_9.php
index 074c329d49..ab63fa433b 100644
--- a/releases/5_4_9.php
+++ b/releases/5_4_9.php
@@ -1,7 +1,7 @@
PHP 5.4.9 Release Announcement
diff --git a/releases/5_5_0.php b/releases/5_5_0.php
index ba8c48a3ef..a77bb3d564 100644
--- a/releases/5_5_0.php
+++ b/releases/5_5_0.php
@@ -1,7 +1,7 @@
PHP 5.5.0 Release Announcement
diff --git a/releases/5_5_1.php b/releases/5_5_1.php
index e0003b5e42..76dc9e4598 100644
--- a/releases/5_5_1.php
+++ b/releases/5_5_1.php
@@ -1,7 +1,7 @@
PHP 5.5.1 Release Announcement
diff --git a/releases/5_5_10.php b/releases/5_5_10.php
index 8ebdf307cf..e3ad9d83d8 100644
--- a/releases/5_5_10.php
+++ b/releases/5_5_10.php
@@ -1,7 +1,7 @@
PHP 5.5.10 Release Announcement
diff --git a/releases/5_5_11.php b/releases/5_5_11.php
index c24c751a78..48007dab1e 100644
--- a/releases/5_5_11.php
+++ b/releases/5_5_11.php
@@ -1,7 +1,7 @@
PHP 5.5.11 Release Announcement
diff --git a/releases/5_5_12.php b/releases/5_5_12.php
index d59f018e76..a9ae103577 100644
--- a/releases/5_5_12.php
+++ b/releases/5_5_12.php
@@ -1,7 +1,7 @@
PHP 5.5.12 Release Announcement
diff --git a/releases/5_5_13.php b/releases/5_5_13.php
index ac3e1e8101..a350c65925 100644
--- a/releases/5_5_13.php
+++ b/releases/5_5_13.php
@@ -1,7 +1,7 @@
PHP 5.5.13 Release Announcement
diff --git a/releases/5_5_14.php b/releases/5_5_14.php
index 19925e85f6..7b7c67c2e2 100644
--- a/releases/5_5_14.php
+++ b/releases/5_5_14.php
@@ -1,7 +1,7 @@
PHP 5.5.14 Release Announcement
diff --git a/releases/5_5_15.php b/releases/5_5_15.php
index e120656ca7..7467a454ce 100644
--- a/releases/5_5_15.php
+++ b/releases/5_5_15.php
@@ -1,7 +1,7 @@
PHP 5.5.15 Release Announcement
diff --git a/releases/5_5_16.php b/releases/5_5_16.php
index fd7f2d4459..a74fca9f69 100644
--- a/releases/5_5_16.php
+++ b/releases/5_5_16.php
@@ -1,7 +1,7 @@
PHP 5.5.16 Release Announcement
diff --git a/releases/5_5_17.php b/releases/5_5_17.php
index 017b149421..8d0532faba 100644
--- a/releases/5_5_17.php
+++ b/releases/5_5_17.php
@@ -1,7 +1,7 @@
PHP 5.5.17 Release Announcement
diff --git a/releases/5_5_18.php b/releases/5_5_18.php
index 7ffe394ee0..9e4caada59 100644
--- a/releases/5_5_18.php
+++ b/releases/5_5_18.php
@@ -1,7 +1,7 @@
PHP 5.5.18 Release Announcement
diff --git a/releases/5_5_19.php b/releases/5_5_19.php
index aa646449af..9a840dd8a4 100644
--- a/releases/5_5_19.php
+++ b/releases/5_5_19.php
@@ -1,7 +1,7 @@
PHP 5.5.19 Release Announcement
diff --git a/releases/5_5_2.php b/releases/5_5_2.php
index 650a662303..831c3ddc99 100644
--- a/releases/5_5_2.php
+++ b/releases/5_5_2.php
@@ -1,7 +1,7 @@
PHP 5.5.2 Release Announcement
diff --git a/releases/5_5_20.php b/releases/5_5_20.php
index 578beb2cd5..b15c629af9 100644
--- a/releases/5_5_20.php
+++ b/releases/5_5_20.php
@@ -1,7 +1,7 @@
PHP 5.5.20 Release Announcement
diff --git a/releases/5_5_21.php b/releases/5_5_21.php
index 32ef7b546c..5b7cb27047 100644
--- a/releases/5_5_21.php
+++ b/releases/5_5_21.php
@@ -1,7 +1,7 @@
PHP 5.5.21 Release Announcement
diff --git a/releases/5_5_22.php b/releases/5_5_22.php
index 6ecc2ae048..a7802ed0da 100644
--- a/releases/5_5_22.php
+++ b/releases/5_5_22.php
@@ -1,7 +1,7 @@
PHP 5.5.22 Release Announcement
diff --git a/releases/5_5_23.php b/releases/5_5_23.php
index 846129432e..2b5edc0204 100644
--- a/releases/5_5_23.php
+++ b/releases/5_5_23.php
@@ -1,7 +1,7 @@
PHP 5.5.23 Release Announcement
diff --git a/releases/5_5_24.php b/releases/5_5_24.php
index 75c9e75272..d3dbc9b75f 100644
--- a/releases/5_5_24.php
+++ b/releases/5_5_24.php
@@ -1,7 +1,7 @@
PHP 5.5.24 Release Announcement
diff --git a/releases/5_5_25.php b/releases/5_5_25.php
index 2fd5f6a71d..58063716b4 100644
--- a/releases/5_5_25.php
+++ b/releases/5_5_25.php
@@ -1,7 +1,7 @@
PHP 5.5.25 Release Announcement
diff --git a/releases/5_5_26.php b/releases/5_5_26.php
index 2ad35a9f4c..bb35366753 100644
--- a/releases/5_5_26.php
+++ b/releases/5_5_26.php
@@ -1,7 +1,7 @@
PHP 5.5.26 Release Announcement
diff --git a/releases/5_5_27.php b/releases/5_5_27.php
index 9efed394bb..e555503f8a 100644
--- a/releases/5_5_27.php
+++ b/releases/5_5_27.php
@@ -1,7 +1,7 @@
PHP 5.5.27 Release Announcement
diff --git a/releases/5_5_28.php b/releases/5_5_28.php
index 78106f5bce..511bcb8555 100644
--- a/releases/5_5_28.php
+++ b/releases/5_5_28.php
@@ -1,7 +1,7 @@
PHP 5.5.28 Release Announcement
diff --git a/releases/5_5_29.php b/releases/5_5_29.php
index 21f4d90f68..0a88924c83 100644
--- a/releases/5_5_29.php
+++ b/releases/5_5_29.php
@@ -1,7 +1,7 @@
PHP 5.5.29 Release Announcement
diff --git a/releases/5_5_3.php b/releases/5_5_3.php
index 2d7298a1ff..acabfb500a 100644
--- a/releases/5_5_3.php
+++ b/releases/5_5_3.php
@@ -1,7 +1,7 @@
PHP 5.5.3 Release Announcement
diff --git a/releases/5_5_30.php b/releases/5_5_30.php
index 05120a8e20..69385e2336 100644
--- a/releases/5_5_30.php
+++ b/releases/5_5_30.php
@@ -1,7 +1,7 @@
PHP 5.5.30 Release Announcement
diff --git a/releases/5_5_31.php b/releases/5_5_31.php
index e2e33fb027..5713a9fe47 100644
--- a/releases/5_5_31.php
+++ b/releases/5_5_31.php
@@ -1,7 +1,7 @@
PHP 5.5.31 Release Announcement
diff --git a/releases/5_5_32.php b/releases/5_5_32.php
index f723e7176f..f1ff837bf8 100644
--- a/releases/5_5_32.php
+++ b/releases/5_5_32.php
@@ -1,7 +1,7 @@
PHP 5.5.32 Release Announcement
diff --git a/releases/5_5_33.php b/releases/5_5_33.php
index eaf3f8fc94..3c4482f1d8 100644
--- a/releases/5_5_33.php
+++ b/releases/5_5_33.php
@@ -1,7 +1,7 @@
PHP 5.5.33 Release Announcement
diff --git a/releases/5_5_34.php b/releases/5_5_34.php
index 669f7d7a40..360bf868c8 100644
--- a/releases/5_5_34.php
+++ b/releases/5_5_34.php
@@ -1,7 +1,7 @@
PHP 5.5.34 Release Announcement
diff --git a/releases/5_5_35.php b/releases/5_5_35.php
index f334dd3013..13127e92a2 100644
--- a/releases/5_5_35.php
+++ b/releases/5_5_35.php
@@ -1,7 +1,7 @@
PHP 5.5.35 Release Announcement
diff --git a/releases/5_5_36.php b/releases/5_5_36.php
index f456e0a890..802ee71f3e 100644
--- a/releases/5_5_36.php
+++ b/releases/5_5_36.php
@@ -1,7 +1,7 @@
PHP 5.5.36 Release Announcement
diff --git a/releases/5_5_37.php b/releases/5_5_37.php
index 1708207004..2d36b84973 100644
--- a/releases/5_5_37.php
+++ b/releases/5_5_37.php
@@ -1,7 +1,7 @@
PHP 5.5.37 Release Announcement
diff --git a/releases/5_5_38.php b/releases/5_5_38.php
index 5356334bd3..828776da04 100644
--- a/releases/5_5_38.php
+++ b/releases/5_5_38.php
@@ -1,7 +1,7 @@
PHP 5.5.38 Release Announcement
diff --git a/releases/5_5_4.php b/releases/5_5_4.php
index f7409b010a..9e804c56f8 100644
--- a/releases/5_5_4.php
+++ b/releases/5_5_4.php
@@ -1,7 +1,7 @@
PHP 5.5.4 Release Announcement
diff --git a/releases/5_5_5.php b/releases/5_5_5.php
index c4945f00fc..b3d951b976 100644
--- a/releases/5_5_5.php
+++ b/releases/5_5_5.php
@@ -1,7 +1,7 @@
PHP 5.5.5 Release Announcement
diff --git a/releases/5_5_6.php b/releases/5_5_6.php
index 73ef831603..822743f087 100644
--- a/releases/5_5_6.php
+++ b/releases/5_5_6.php
@@ -1,7 +1,7 @@
PHP 5.5.6 Release Announcement
diff --git a/releases/5_5_7.php b/releases/5_5_7.php
index 643a8baf48..b76c3053ed 100644
--- a/releases/5_5_7.php
+++ b/releases/5_5_7.php
@@ -1,7 +1,7 @@
PHP 5.5.7 Release Announcement
diff --git a/releases/5_5_8.php b/releases/5_5_8.php
index de1a12ed56..d4b9763809 100644
--- a/releases/5_5_8.php
+++ b/releases/5_5_8.php
@@ -1,7 +1,7 @@
PHP 5.5.8 Release Announcement
diff --git a/releases/5_5_9.php b/releases/5_5_9.php
index 282445b2a5..064af02709 100644
--- a/releases/5_5_9.php
+++ b/releases/5_5_9.php
@@ -1,7 +1,7 @@
PHP 5.5.9 Release Announcement
diff --git a/releases/5_6_0.php b/releases/5_6_0.php
index c2a8bbc753..91ba5a4cee 100644
--- a/releases/5_6_0.php
+++ b/releases/5_6_0.php
@@ -1,7 +1,7 @@
PHP 5.6.0 Release Announcement
diff --git a/releases/5_6_1.php b/releases/5_6_1.php
index 17616e6dbc..7afd212735 100644
--- a/releases/5_6_1.php
+++ b/releases/5_6_1.php
@@ -1,7 +1,7 @@
PHP 5.6.1 Release Announcement
diff --git a/releases/5_6_10.php b/releases/5_6_10.php
index 92c11117ed..c1504474dd 100644
--- a/releases/5_6_10.php
+++ b/releases/5_6_10.php
@@ -1,7 +1,7 @@
PHP 5.6.10 Release Announcement
diff --git a/releases/5_6_11.php b/releases/5_6_11.php
index e8ef1aaaea..1c37f54394 100644
--- a/releases/5_6_11.php
+++ b/releases/5_6_11.php
@@ -1,7 +1,7 @@
PHP 5.6.11 Release Announcement
diff --git a/releases/5_6_12.php b/releases/5_6_12.php
index 79d34e217a..dc12c4ac7f 100644
--- a/releases/5_6_12.php
+++ b/releases/5_6_12.php
@@ -1,7 +1,7 @@
PHP 5.6.12 Release Announcement
diff --git a/releases/5_6_13.php b/releases/5_6_13.php
index 4608e6ca3d..e8761fe6d4 100644
--- a/releases/5_6_13.php
+++ b/releases/5_6_13.php
@@ -1,7 +1,7 @@
PHP 5.6.13 Release Announcement
diff --git a/releases/5_6_14.php b/releases/5_6_14.php
index 45c06d993c..fa80da6b0b 100644
--- a/releases/5_6_14.php
+++ b/releases/5_6_14.php
@@ -1,7 +1,7 @@
PHP 5.6.14 Release Announcement
diff --git a/releases/5_6_15.php b/releases/5_6_15.php
index 51c3649171..85c864e0b3 100644
--- a/releases/5_6_15.php
+++ b/releases/5_6_15.php
@@ -1,7 +1,7 @@
PHP 5.6.15 Release Announcement
diff --git a/releases/5_6_16.php b/releases/5_6_16.php
index 9c01b9af9f..f108e71af6 100644
--- a/releases/5_6_16.php
+++ b/releases/5_6_16.php
@@ -1,7 +1,7 @@
PHP 5.6.16 Release Announcement
diff --git a/releases/5_6_17.php b/releases/5_6_17.php
index 95e94b88d1..6963d5f366 100644
--- a/releases/5_6_17.php
+++ b/releases/5_6_17.php
@@ -1,7 +1,7 @@
PHP 5.6.17 Release Announcement
diff --git a/releases/5_6_18.php b/releases/5_6_18.php
index 3d14865b1a..07a3a18aeb 100644
--- a/releases/5_6_18.php
+++ b/releases/5_6_18.php
@@ -1,7 +1,7 @@
PHP 5.6.18 Release Announcement
diff --git a/releases/5_6_19.php b/releases/5_6_19.php
index ba1447cef6..9d87baf43f 100644
--- a/releases/5_6_19.php
+++ b/releases/5_6_19.php
@@ -1,7 +1,7 @@
PHP 5.6.19 Release Announcement
diff --git a/releases/5_6_2.php b/releases/5_6_2.php
index 30644d9b56..8b8d35459d 100644
--- a/releases/5_6_2.php
+++ b/releases/5_6_2.php
@@ -1,7 +1,7 @@
PHP 5.6.2 Release Announcement
diff --git a/releases/5_6_20.php b/releases/5_6_20.php
index 14c1cca08d..be529dbd36 100644
--- a/releases/5_6_20.php
+++ b/releases/5_6_20.php
@@ -1,7 +1,7 @@
PHP 5.6.20 Release Announcement
diff --git a/releases/5_6_21.php b/releases/5_6_21.php
index 4c04249c92..b982d2128b 100644
--- a/releases/5_6_21.php
+++ b/releases/5_6_21.php
@@ -1,7 +1,7 @@
PHP 5.6.21 Release Announcement
diff --git a/releases/5_6_22.php b/releases/5_6_22.php
index a1e76edf90..55253ceef2 100644
--- a/releases/5_6_22.php
+++ b/releases/5_6_22.php
@@ -1,7 +1,7 @@
PHP 5.6.22 Release Announcement
diff --git a/releases/5_6_23.php b/releases/5_6_23.php
index 3258785dae..d65bf2ecb3 100644
--- a/releases/5_6_23.php
+++ b/releases/5_6_23.php
@@ -1,7 +1,7 @@
PHP 5.6.23 Release Announcement
diff --git a/releases/5_6_24.php b/releases/5_6_24.php
index 3d4a10b76c..53d5f12b66 100644
--- a/releases/5_6_24.php
+++ b/releases/5_6_24.php
@@ -1,7 +1,7 @@
PHP 5.6.24 Release Announcement
diff --git a/releases/5_6_25.php b/releases/5_6_25.php
index fcf349acf3..fd73b43431 100644
--- a/releases/5_6_25.php
+++ b/releases/5_6_25.php
@@ -1,7 +1,7 @@
PHP 5.6.25 Release Announcement
diff --git a/releases/5_6_26.php b/releases/5_6_26.php
index c6053aa69a..4ef0b2ad7c 100644
--- a/releases/5_6_26.php
+++ b/releases/5_6_26.php
@@ -1,7 +1,7 @@
PHP 5.6.26 Release Announcement
diff --git a/releases/5_6_27.php b/releases/5_6_27.php
index e4a84d5106..49cc1e0f6d 100644
--- a/releases/5_6_27.php
+++ b/releases/5_6_27.php
@@ -1,7 +1,7 @@
PHP 5.6.27 Release Announcement
diff --git a/releases/5_6_28.php b/releases/5_6_28.php
index b6e36e3532..8f79f77fd2 100644
--- a/releases/5_6_28.php
+++ b/releases/5_6_28.php
@@ -1,7 +1,7 @@
PHP 5.6.28 Release Announcement
diff --git a/releases/5_6_29.php b/releases/5_6_29.php
index eaa1d39c84..08f6501878 100644
--- a/releases/5_6_29.php
+++ b/releases/5_6_29.php
@@ -1,7 +1,7 @@
PHP 5.6.29 Release Announcement
diff --git a/releases/5_6_3.php b/releases/5_6_3.php
index d7f8c4e4f2..62b6f30903 100644
--- a/releases/5_6_3.php
+++ b/releases/5_6_3.php
@@ -1,7 +1,7 @@
PHP 5.6.3 Release Announcement
diff --git a/releases/5_6_30.php b/releases/5_6_30.php
index 608e49ce8f..766b330c23 100644
--- a/releases/5_6_30.php
+++ b/releases/5_6_30.php
@@ -1,7 +1,7 @@
PHP 5.6.30 Release Announcement
diff --git a/releases/5_6_31.php b/releases/5_6_31.php
index ff7e4349cf..f5dcd14e11 100644
--- a/releases/5_6_31.php
+++ b/releases/5_6_31.php
@@ -1,7 +1,7 @@
PHP 5.6.31 Release Announcement
diff --git a/releases/5_6_32.php b/releases/5_6_32.php
index 744e972724..5840a3a81d 100644
--- a/releases/5_6_32.php
+++ b/releases/5_6_32.php
@@ -1,7 +1,7 @@
PHP 5.6.32 Release Announcement
diff --git a/releases/5_6_33.php b/releases/5_6_33.php
index 83d5b6417d..30d34d7777 100644
--- a/releases/5_6_33.php
+++ b/releases/5_6_33.php
@@ -1,7 +1,7 @@
PHP 5.6.33 Release Announcement
diff --git a/releases/5_6_34.php b/releases/5_6_34.php
index 276aa8800a..1c5d5ebd16 100644
--- a/releases/5_6_34.php
+++ b/releases/5_6_34.php
@@ -1,7 +1,7 @@
PHP 5.6.34 Release Announcement
diff --git a/releases/5_6_35.php b/releases/5_6_35.php
index ce9379568e..89a63120d1 100644
--- a/releases/5_6_35.php
+++ b/releases/5_6_35.php
@@ -1,7 +1,7 @@
PHP 5.6.35 Release Announcement
diff --git a/releases/5_6_36.php b/releases/5_6_36.php
index 3175ee18e5..88ba25d7d1 100644
--- a/releases/5_6_36.php
+++ b/releases/5_6_36.php
@@ -1,7 +1,7 @@
PHP 5.6.36 Release Announcement
diff --git a/releases/5_6_37.php b/releases/5_6_37.php
index 56409093d8..b00e4d8884 100644
--- a/releases/5_6_37.php
+++ b/releases/5_6_37.php
@@ -1,7 +1,7 @@
PHP 5.6.37 Release Announcement
diff --git a/releases/5_6_38.php b/releases/5_6_38.php
index f3f64e72a9..9083fbb72d 100644
--- a/releases/5_6_38.php
+++ b/releases/5_6_38.php
@@ -1,7 +1,7 @@
PHP 5.6.38 Release Announcement
diff --git a/releases/5_6_39.php b/releases/5_6_39.php
index 1bc854ef06..d3ee5b0e30 100644
--- a/releases/5_6_39.php
+++ b/releases/5_6_39.php
@@ -1,7 +1,7 @@
PHP 5.6.39 Release Announcement
diff --git a/releases/5_6_4.php b/releases/5_6_4.php
index 9f3c700bbb..db76ee03f9 100644
--- a/releases/5_6_4.php
+++ b/releases/5_6_4.php
@@ -1,7 +1,7 @@
PHP 5.6.4 Release Announcement
diff --git a/releases/5_6_40.php b/releases/5_6_40.php
index a0880e1dde..b00d8edddd 100644
--- a/releases/5_6_40.php
+++ b/releases/5_6_40.php
@@ -1,7 +1,7 @@
PHP 5.6.40 Release Announcement
diff --git a/releases/5_6_5.php b/releases/5_6_5.php
index fd687d6889..6a82df9baf 100644
--- a/releases/5_6_5.php
+++ b/releases/5_6_5.php
@@ -1,7 +1,7 @@
PHP 5.6.5 Release Announcement
diff --git a/releases/5_6_6.php b/releases/5_6_6.php
index 91af39dcab..9b469d1402 100644
--- a/releases/5_6_6.php
+++ b/releases/5_6_6.php
@@ -1,7 +1,7 @@
PHP 5.6.6 Release Announcement
diff --git a/releases/5_6_7.php b/releases/5_6_7.php
index dcfdc7f473..fe9978a533 100644
--- a/releases/5_6_7.php
+++ b/releases/5_6_7.php
@@ -1,7 +1,7 @@
PHP 5.6.7 Release Announcement
diff --git a/releases/5_6_8.php b/releases/5_6_8.php
index c68e0c08dd..e4b28b9537 100644
--- a/releases/5_6_8.php
+++ b/releases/5_6_8.php
@@ -1,7 +1,7 @@
PHP 5.6.8 Release Announcement
diff --git a/releases/5_6_9.php b/releases/5_6_9.php
index df6cb7e170..2e51f3f2c4 100644
--- a/releases/5_6_9.php
+++ b/releases/5_6_9.php
@@ -1,7 +1,7 @@
PHP 5.6.9 Release Announcement
diff --git a/releases/7_0_0.php b/releases/7_0_0.php
index a9c03fcd43..0e4a21145d 100644
--- a/releases/7_0_0.php
+++ b/releases/7_0_0.php
@@ -1,7 +1,7 @@
PHP 7.0.0 Release Announcement
diff --git a/releases/7_0_1.php b/releases/7_0_1.php
index d5ee6a501f..b8d6804a49 100644
--- a/releases/7_0_1.php
+++ b/releases/7_0_1.php
@@ -1,7 +1,7 @@
PHP 7.0.1 Release Announcement
diff --git a/releases/7_0_10.php b/releases/7_0_10.php
index 37b4e556ae..45a0c70dbe 100644
--- a/releases/7_0_10.php
+++ b/releases/7_0_10.php
@@ -1,7 +1,7 @@
PHP 7.0.10 Release Announcement
diff --git a/releases/7_0_11.php b/releases/7_0_11.php
index d8fb6b3bf6..88099b7891 100644
--- a/releases/7_0_11.php
+++ b/releases/7_0_11.php
@@ -1,7 +1,7 @@
PHP 7.0.11 Release Announcement
diff --git a/releases/7_0_12.php b/releases/7_0_12.php
index 0deefa9771..2393602059 100644
--- a/releases/7_0_12.php
+++ b/releases/7_0_12.php
@@ -1,7 +1,7 @@
PHP 7.0.12 Release Announcement
diff --git a/releases/7_0_13.php b/releases/7_0_13.php
index e1ff50a487..781d48f487 100644
--- a/releases/7_0_13.php
+++ b/releases/7_0_13.php
@@ -1,7 +1,7 @@
PHP 7.0.13 Release Announcement
diff --git a/releases/7_0_14.php b/releases/7_0_14.php
index 6ab05f87b6..b1bd934be2 100644
--- a/releases/7_0_14.php
+++ b/releases/7_0_14.php
@@ -1,7 +1,7 @@
PHP 7.0.14 Release Announcement
diff --git a/releases/7_0_15.php b/releases/7_0_15.php
index c2fbfb4421..c773cc86c6 100644
--- a/releases/7_0_15.php
+++ b/releases/7_0_15.php
@@ -1,7 +1,7 @@
PHP 7.0.15 Release Announcement
diff --git a/releases/7_0_16.php b/releases/7_0_16.php
index 35c21b4280..cda1045eaa 100644
--- a/releases/7_0_16.php
+++ b/releases/7_0_16.php
@@ -1,7 +1,7 @@
PHP 7.0.16 Release Announcement
diff --git a/releases/7_0_17.php b/releases/7_0_17.php
index 6476498d3e..773a574604 100644
--- a/releases/7_0_17.php
+++ b/releases/7_0_17.php
@@ -1,7 +1,7 @@
PHP 7.0.17 Release Announcement
diff --git a/releases/7_0_18.php b/releases/7_0_18.php
index 5a3751e698..09c5500613 100644
--- a/releases/7_0_18.php
+++ b/releases/7_0_18.php
@@ -1,7 +1,7 @@
PHP 7.0.18 Release Announcement
diff --git a/releases/7_0_19.php b/releases/7_0_19.php
index a83318fe1f..f534b73caa 100644
--- a/releases/7_0_19.php
+++ b/releases/7_0_19.php
@@ -1,7 +1,7 @@
PHP 7.0.19 Release Announcement
diff --git a/releases/7_0_2.php b/releases/7_0_2.php
index e069ea38d8..531ceeea76 100644
--- a/releases/7_0_2.php
+++ b/releases/7_0_2.php
@@ -1,7 +1,7 @@
PHP 7.0.2 Release Announcement
diff --git a/releases/7_0_20.php b/releases/7_0_20.php
index 91e403deab..bce802cfc6 100644
--- a/releases/7_0_20.php
+++ b/releases/7_0_20.php
@@ -1,7 +1,7 @@
PHP 7.0.20 Release Announcement
diff --git a/releases/7_0_21.php b/releases/7_0_21.php
index 0fa6ef90e0..69adb591ed 100644
--- a/releases/7_0_21.php
+++ b/releases/7_0_21.php
@@ -1,7 +1,7 @@
PHP 7.0.21 Release Announcement
diff --git a/releases/7_0_22.php b/releases/7_0_22.php
index b80b514ef0..0f0d048d21 100644
--- a/releases/7_0_22.php
+++ b/releases/7_0_22.php
@@ -1,7 +1,7 @@
PHP 7.0.22 Release Announcement
diff --git a/releases/7_0_23.php b/releases/7_0_23.php
index ff9df4a370..1f1ca78e4e 100644
--- a/releases/7_0_23.php
+++ b/releases/7_0_23.php
@@ -1,7 +1,7 @@
PHP 7.0.23 Release Announcement
diff --git a/releases/7_0_24.php b/releases/7_0_24.php
index baf73b3029..71c3ce6180 100644
--- a/releases/7_0_24.php
+++ b/releases/7_0_24.php
@@ -1,7 +1,7 @@
PHP 7.0.24 Release Announcement
diff --git a/releases/7_0_25.php b/releases/7_0_25.php
index 60c621c141..f20815b1db 100644
--- a/releases/7_0_25.php
+++ b/releases/7_0_25.php
@@ -1,7 +1,7 @@
PHP 7.0.25 Release Announcement
diff --git a/releases/7_0_26.php b/releases/7_0_26.php
index 84cde09128..6060ccdb18 100644
--- a/releases/7_0_26.php
+++ b/releases/7_0_26.php
@@ -1,7 +1,7 @@
PHP 7.0.26 Release Announcement
diff --git a/releases/7_0_27.php b/releases/7_0_27.php
index d76cdf94d2..329e6d8ac6 100644
--- a/releases/7_0_27.php
+++ b/releases/7_0_27.php
@@ -1,7 +1,7 @@
PHP 7.0.27 Release Announcement
diff --git a/releases/7_0_28.php b/releases/7_0_28.php
index 46cc942b8f..58e513f51a 100644
--- a/releases/7_0_28.php
+++ b/releases/7_0_28.php
@@ -1,7 +1,7 @@
PHP 7.0.28 Release Announcement
diff --git a/releases/7_0_29.php b/releases/7_0_29.php
index 4d235fc464..2fb9ddce47 100644
--- a/releases/7_0_29.php
+++ b/releases/7_0_29.php
@@ -1,7 +1,7 @@
PHP 7.0.29 Release Announcement
diff --git a/releases/7_0_3.php b/releases/7_0_3.php
index 80ed7fbbef..52954aeb3f 100644
--- a/releases/7_0_3.php
+++ b/releases/7_0_3.php
@@ -1,7 +1,7 @@
PHP 7.0.3 Release Announcement
diff --git a/releases/7_0_30.php b/releases/7_0_30.php
index b5b59760a8..43cc0983b6 100644
--- a/releases/7_0_30.php
+++ b/releases/7_0_30.php
@@ -1,7 +1,7 @@
PHP 7.0.30 Release Announcement
diff --git a/releases/7_0_31.php b/releases/7_0_31.php
index eedf1d8c8c..ff792255f4 100644
--- a/releases/7_0_31.php
+++ b/releases/7_0_31.php
@@ -1,7 +1,7 @@
PHP 7.0.31 Release Announcement
diff --git a/releases/7_0_32.php b/releases/7_0_32.php
index 0c756a27bc..9636afad66 100644
--- a/releases/7_0_32.php
+++ b/releases/7_0_32.php
@@ -1,7 +1,7 @@
PHP 7.0.32 Release Announcement
diff --git a/releases/7_0_33.php b/releases/7_0_33.php
index 9bcd72c6b7..e06b606a06 100644
--- a/releases/7_0_33.php
+++ b/releases/7_0_33.php
@@ -1,7 +1,7 @@
PHP 7.0.33 Release Announcement
diff --git a/releases/7_0_4.php b/releases/7_0_4.php
index db41cdc195..e8ca75da60 100644
--- a/releases/7_0_4.php
+++ b/releases/7_0_4.php
@@ -1,7 +1,7 @@
PHP 7.0.4 Release Announcement
diff --git a/releases/7_0_5.php b/releases/7_0_5.php
index 26727154b0..5d1d744e84 100644
--- a/releases/7_0_5.php
+++ b/releases/7_0_5.php
@@ -1,7 +1,7 @@
PHP 7.0.5 Release Announcement
diff --git a/releases/7_0_6.php b/releases/7_0_6.php
index 6ebe1cc1ff..a4fccb4310 100644
--- a/releases/7_0_6.php
+++ b/releases/7_0_6.php
@@ -1,7 +1,7 @@
PHP 7.0.6 Release Announcement
diff --git a/releases/7_0_7.php b/releases/7_0_7.php
index 937aa325e0..fce53bb838 100644
--- a/releases/7_0_7.php
+++ b/releases/7_0_7.php
@@ -1,7 +1,7 @@
PHP 7.0.7 Release Announcement
diff --git a/releases/7_0_8.php b/releases/7_0_8.php
index ac53e0f20b..8a7402ab61 100644
--- a/releases/7_0_8.php
+++ b/releases/7_0_8.php
@@ -1,7 +1,7 @@
PHP 7.0.8 Release Announcement
diff --git a/releases/7_0_9.php b/releases/7_0_9.php
index 93bce497c7..9d7022b90c 100644
--- a/releases/7_0_9.php
+++ b/releases/7_0_9.php
@@ -1,7 +1,7 @@
PHP 7.0.9 Release Announcement
diff --git a/releases/7_1_0.php b/releases/7_1_0.php
index a046897cdd..0d487b1c28 100644
--- a/releases/7_1_0.php
+++ b/releases/7_1_0.php
@@ -1,7 +1,7 @@
PHP 7.1.0 Release Announcement
diff --git a/releases/7_1_1.php b/releases/7_1_1.php
index 43008be431..bf72be195f 100644
--- a/releases/7_1_1.php
+++ b/releases/7_1_1.php
@@ -1,7 +1,7 @@
PHP 7.1.1 Release Announcement
diff --git a/releases/7_1_10.php b/releases/7_1_10.php
index 9b73894f6c..8ebc0c681c 100644
--- a/releases/7_1_10.php
+++ b/releases/7_1_10.php
@@ -1,7 +1,7 @@
PHP 7.1.10 Release Announcement
diff --git a/releases/7_1_11.php b/releases/7_1_11.php
index 1648da6f9b..3e3fe240ba 100644
--- a/releases/7_1_11.php
+++ b/releases/7_1_11.php
@@ -1,7 +1,7 @@
PHP 7.1.11 Release Announcement
diff --git a/releases/7_1_12.php b/releases/7_1_12.php
index 51307109f0..55a6b2387d 100644
--- a/releases/7_1_12.php
+++ b/releases/7_1_12.php
@@ -1,7 +1,7 @@
PHP 7.1.12 Release Announcement
diff --git a/releases/7_1_13.php b/releases/7_1_13.php
index b5f210d37a..9cb26b7676 100644
--- a/releases/7_1_13.php
+++ b/releases/7_1_13.php
@@ -1,7 +1,7 @@
PHP 7.1.13 Release Announcement
diff --git a/releases/7_1_14.php b/releases/7_1_14.php
index fa2b419c8c..a4d9ace7c2 100644
--- a/releases/7_1_14.php
+++ b/releases/7_1_14.php
@@ -1,7 +1,7 @@
PHP 7.1.14 Release Announcement
diff --git a/releases/7_1_15.php b/releases/7_1_15.php
index e1c41fa80c..f956c2b48a 100644
--- a/releases/7_1_15.php
+++ b/releases/7_1_15.php
@@ -1,7 +1,7 @@
PHP 7.1.15 Release Announcement
diff --git a/releases/7_1_16.php b/releases/7_1_16.php
index 47e7e66e82..296e541778 100644
--- a/releases/7_1_16.php
+++ b/releases/7_1_16.php
@@ -1,7 +1,7 @@
PHP 7.1.16 Release Announcement
diff --git a/releases/7_1_17.php b/releases/7_1_17.php
index b2e6c62c1c..892420c14d 100644
--- a/releases/7_1_17.php
+++ b/releases/7_1_17.php
@@ -1,7 +1,7 @@
PHP 7.1.17 Release Announcement
diff --git a/releases/7_1_18.php b/releases/7_1_18.php
index 6795aa1adf..d3cd540643 100644
--- a/releases/7_1_18.php
+++ b/releases/7_1_18.php
@@ -1,7 +1,7 @@
PHP 7.1.18 Release Announcement
diff --git a/releases/7_1_19.php b/releases/7_1_19.php
index cce61643a1..4ed4edd15d 100644
--- a/releases/7_1_19.php
+++ b/releases/7_1_19.php
@@ -1,7 +1,7 @@
PHP 7.1.19 Release Announcement
diff --git a/releases/7_1_2.php b/releases/7_1_2.php
index 2c4867e35b..113267942f 100644
--- a/releases/7_1_2.php
+++ b/releases/7_1_2.php
@@ -1,7 +1,7 @@
PHP 7.1.2 Release Announcement
diff --git a/releases/7_1_20.php b/releases/7_1_20.php
index 0954c3e6cb..80c5095c47 100644
--- a/releases/7_1_20.php
+++ b/releases/7_1_20.php
@@ -1,7 +1,7 @@
PHP 7.1.20 Release Announcement
diff --git a/releases/7_1_21.php b/releases/7_1_21.php
index d4ad64a7c2..22de67b33b 100644
--- a/releases/7_1_21.php
+++ b/releases/7_1_21.php
@@ -1,7 +1,7 @@
PHP 7.1.21 Release Announcement
diff --git a/releases/7_1_22.php b/releases/7_1_22.php
index 2f036df131..d2d76711b3 100644
--- a/releases/7_1_22.php
+++ b/releases/7_1_22.php
@@ -1,7 +1,7 @@
PHP 7.1.22 Release Announcement
diff --git a/releases/7_1_23.php b/releases/7_1_23.php
index 177facd0ff..757095ffd9 100644
--- a/releases/7_1_23.php
+++ b/releases/7_1_23.php
@@ -1,7 +1,7 @@
PHP 7.1.23 Release Announcement
diff --git a/releases/7_1_24.php b/releases/7_1_24.php
index c494ecc463..5a448a6e28 100644
--- a/releases/7_1_24.php
+++ b/releases/7_1_24.php
@@ -1,7 +1,7 @@
PHP 7.1.24 Release Announcement
diff --git a/releases/7_1_25.php b/releases/7_1_25.php
index 09db20d0b1..d022e1bfa3 100644
--- a/releases/7_1_25.php
+++ b/releases/7_1_25.php
@@ -1,7 +1,7 @@
PHP 7.1.25 Release Announcement
diff --git a/releases/7_1_26.php b/releases/7_1_26.php
index 704a9db18a..723168b0b6 100644
--- a/releases/7_1_26.php
+++ b/releases/7_1_26.php
@@ -1,7 +1,7 @@
PHP 7.1.26 Release Announcement
diff --git a/releases/7_1_27.php b/releases/7_1_27.php
index 7663c276c5..6a0247c27e 100644
--- a/releases/7_1_27.php
+++ b/releases/7_1_27.php
@@ -1,7 +1,7 @@
PHP 7.1.27 Release Announcement
diff --git a/releases/7_1_28.php b/releases/7_1_28.php
index 357628ea78..dd30b64029 100644
--- a/releases/7_1_28.php
+++ b/releases/7_1_28.php
@@ -1,7 +1,7 @@
PHP 7.1.28 Release Announcement
diff --git a/releases/7_1_29.php b/releases/7_1_29.php
index a146a0373c..9eefdced5b 100644
--- a/releases/7_1_29.php
+++ b/releases/7_1_29.php
@@ -1,7 +1,7 @@
PHP 7.1.29 Release Announcement
diff --git a/releases/7_1_3.php b/releases/7_1_3.php
index 0fb8b3a7e4..5fd96fcba5 100644
--- a/releases/7_1_3.php
+++ b/releases/7_1_3.php
@@ -1,7 +1,7 @@
PHP 7.1.3 Release Announcement
diff --git a/releases/7_1_30.php b/releases/7_1_30.php
index 5f2341075f..b11493541b 100644
--- a/releases/7_1_30.php
+++ b/releases/7_1_30.php
@@ -1,7 +1,7 @@
PHP 7.1.30 Release Announcement
diff --git a/releases/7_1_31.php b/releases/7_1_31.php
index 23cfe2ebac..25b70fc415 100644
--- a/releases/7_1_31.php
+++ b/releases/7_1_31.php
@@ -1,7 +1,7 @@
PHP 7.1.31 Release Announcement
diff --git a/releases/7_1_32.php b/releases/7_1_32.php
index f4425d9ef1..3f90bfbde3 100644
--- a/releases/7_1_32.php
+++ b/releases/7_1_32.php
@@ -1,7 +1,7 @@
PHP 7.1.32 Release Announcement
diff --git a/releases/7_1_33.php b/releases/7_1_33.php
index ac5ad6bbc3..4a6efcecc6 100644
--- a/releases/7_1_33.php
+++ b/releases/7_1_33.php
@@ -1,7 +1,7 @@
PHP 7.1.33 Release Announcement
diff --git a/releases/7_1_4.php b/releases/7_1_4.php
index fb92d88dca..058fbc5828 100644
--- a/releases/7_1_4.php
+++ b/releases/7_1_4.php
@@ -1,7 +1,7 @@
PHP 7.1.4 Release Announcement
diff --git a/releases/7_1_5.php b/releases/7_1_5.php
index 5968ff876e..97de4157c2 100644
--- a/releases/7_1_5.php
+++ b/releases/7_1_5.php
@@ -1,7 +1,7 @@
PHP 7.1.5 Release Announcement
diff --git a/releases/7_1_6.php b/releases/7_1_6.php
index 23252770d0..a0080dd799 100644
--- a/releases/7_1_6.php
+++ b/releases/7_1_6.php
@@ -1,7 +1,7 @@
PHP 7.1.6 Release Announcement
diff --git a/releases/7_1_7.php b/releases/7_1_7.php
index 9e0eb93e02..c6a75bcabc 100644
--- a/releases/7_1_7.php
+++ b/releases/7_1_7.php
@@ -1,7 +1,7 @@
PHP 7.1.7 Release Announcement
diff --git a/releases/7_1_8.php b/releases/7_1_8.php
index 0fb22a4db7..269adcf7ce 100644
--- a/releases/7_1_8.php
+++ b/releases/7_1_8.php
@@ -1,7 +1,7 @@
PHP 7.1.8 Release Announcement
diff --git a/releases/7_1_9.php b/releases/7_1_9.php
index 9fcaa91580..e8ef4e251a 100644
--- a/releases/7_1_9.php
+++ b/releases/7_1_9.php
@@ -1,7 +1,7 @@
PHP 7.1.9 Release Announcement
diff --git a/releases/7_2_0.php b/releases/7_2_0.php
index c378fbdf51..5036bf3b85 100644
--- a/releases/7_2_0.php
+++ b/releases/7_2_0.php
@@ -1,7 +1,7 @@
PHP 7.2.0 Release Announcement
diff --git a/releases/7_2_1.php b/releases/7_2_1.php
index a9ac4ffd95..1fac7b6349 100644
--- a/releases/7_2_1.php
+++ b/releases/7_2_1.php
@@ -1,7 +1,7 @@
PHP 7.2.1 Release Announcement
diff --git a/releases/7_2_10.php b/releases/7_2_10.php
index 42df477ff6..640c95fc6c 100644
--- a/releases/7_2_10.php
+++ b/releases/7_2_10.php
@@ -1,7 +1,7 @@
PHP 7.2.10 Release Announcement
diff --git a/releases/7_2_11.php b/releases/7_2_11.php
index f0cafdfa0a..b286019b7e 100644
--- a/releases/7_2_11.php
+++ b/releases/7_2_11.php
@@ -1,7 +1,7 @@
PHP 7.2.11 Release Announcement
diff --git a/releases/7_2_12.php b/releases/7_2_12.php
index 05cadb7ba5..a3981a2ac3 100644
--- a/releases/7_2_12.php
+++ b/releases/7_2_12.php
@@ -1,7 +1,7 @@
PHP 7.2.12 Release Announcement
diff --git a/releases/7_2_13.php b/releases/7_2_13.php
index c6ea399305..51dd3085d5 100644
--- a/releases/7_2_13.php
+++ b/releases/7_2_13.php
@@ -1,7 +1,7 @@
PHP 7.2.13 Release Announcement
diff --git a/releases/7_2_14.php b/releases/7_2_14.php
index 8341405416..59a8bed7ef 100644
--- a/releases/7_2_14.php
+++ b/releases/7_2_14.php
@@ -1,7 +1,7 @@
PHP 7.2.14 Release Announcement
diff --git a/releases/7_2_15.php b/releases/7_2_15.php
index bd3913dbab..27dcea261c 100644
--- a/releases/7_2_15.php
+++ b/releases/7_2_15.php
@@ -1,7 +1,7 @@
PHP 7.2.15 Release Announcement
diff --git a/releases/7_2_16.php b/releases/7_2_16.php
index 14e31f1f05..92ef76b001 100644
--- a/releases/7_2_16.php
+++ b/releases/7_2_16.php
@@ -1,7 +1,7 @@
PHP 7.2.16 Release Announcement
diff --git a/releases/7_2_17.php b/releases/7_2_17.php
index 55470f66b7..05b6cae361 100644
--- a/releases/7_2_17.php
+++ b/releases/7_2_17.php
@@ -1,7 +1,7 @@
PHP 7.2.17 Release Announcement
diff --git a/releases/7_2_18.php b/releases/7_2_18.php
index 5d5597f048..9b3f41ebb7 100644
--- a/releases/7_2_18.php
+++ b/releases/7_2_18.php
@@ -1,7 +1,7 @@
PHP 7.2.18 Release Announcement
diff --git a/releases/7_2_19.php b/releases/7_2_19.php
index 9e1adfc9fc..0f9c2efbfc 100644
--- a/releases/7_2_19.php
+++ b/releases/7_2_19.php
@@ -1,7 +1,7 @@
PHP 7.2.19 Release Announcement
diff --git a/releases/7_2_2.php b/releases/7_2_2.php
index e920338404..ed2d6bff04 100644
--- a/releases/7_2_2.php
+++ b/releases/7_2_2.php
@@ -1,7 +1,7 @@
PHP 7.2.2 Release Announcement
diff --git a/releases/7_2_20.php b/releases/7_2_20.php
index 4f7de6b904..9b6d0fbb97 100644
--- a/releases/7_2_20.php
+++ b/releases/7_2_20.php
@@ -1,7 +1,7 @@
PHP 7.2.20 Release Announcement
diff --git a/releases/7_2_21.php b/releases/7_2_21.php
index 81a8d6dd55..4db124d8cc 100644
--- a/releases/7_2_21.php
+++ b/releases/7_2_21.php
@@ -1,7 +1,7 @@
PHP 7.2.21 Release Announcement
diff --git a/releases/7_2_22.php b/releases/7_2_22.php
index 492e4dddd6..b2d2f03448 100644
--- a/releases/7_2_22.php
+++ b/releases/7_2_22.php
@@ -1,7 +1,7 @@
PHP 7.2.22 Release Announcement
diff --git a/releases/7_2_23.php b/releases/7_2_23.php
index edc3f3d42d..21170b0959 100644
--- a/releases/7_2_23.php
+++ b/releases/7_2_23.php
@@ -1,7 +1,7 @@
PHP 7.2.23 Release Announcement
diff --git a/releases/7_2_24.php b/releases/7_2_24.php
index 24e155364e..bf92b21220 100644
--- a/releases/7_2_24.php
+++ b/releases/7_2_24.php
@@ -1,7 +1,7 @@
PHP 7.2.24 Release Announcement
diff --git a/releases/7_2_25.php b/releases/7_2_25.php
index d867457a82..25a3548374 100644
--- a/releases/7_2_25.php
+++ b/releases/7_2_25.php
@@ -1,7 +1,7 @@
PHP 7.2.25 Release Announcement
diff --git a/releases/7_2_26.php b/releases/7_2_26.php
index 422047dfab..88a3a037a7 100644
--- a/releases/7_2_26.php
+++ b/releases/7_2_26.php
@@ -1,7 +1,7 @@
PHP 7.2.26 Release Announcement
diff --git a/releases/7_2_27.php b/releases/7_2_27.php
index 78d901f7bc..56d4b9e01f 100644
--- a/releases/7_2_27.php
+++ b/releases/7_2_27.php
@@ -1,7 +1,7 @@
PHP 7.2.27 Release Announcement
diff --git a/releases/7_2_28.php b/releases/7_2_28.php
index d802d289f4..f487aa9ed5 100644
--- a/releases/7_2_28.php
+++ b/releases/7_2_28.php
@@ -1,7 +1,7 @@
PHP 7.2.28 Release Announcement
diff --git a/releases/7_2_29.php b/releases/7_2_29.php
index c591793764..9c08654d98 100644
--- a/releases/7_2_29.php
+++ b/releases/7_2_29.php
@@ -1,7 +1,7 @@
PHP 7.2.29 Release Announcement
diff --git a/releases/7_2_3.php b/releases/7_2_3.php
index 3409274ab0..b9c70c9aa7 100644
--- a/releases/7_2_3.php
+++ b/releases/7_2_3.php
@@ -1,7 +1,7 @@
PHP 7.2.3 Release Announcement
diff --git a/releases/7_2_30.php b/releases/7_2_30.php
index 3dc7b05897..0ebea8fe7d 100644
--- a/releases/7_2_30.php
+++ b/releases/7_2_30.php
@@ -1,7 +1,7 @@
PHP 7.2.30 Release Announcement
diff --git a/releases/7_2_31.php b/releases/7_2_31.php
index c8f2e8ee95..505d3a2511 100644
--- a/releases/7_2_31.php
+++ b/releases/7_2_31.php
@@ -1,7 +1,7 @@
PHP 7.2.31 Release Announcement
diff --git a/releases/7_2_33.php b/releases/7_2_33.php
index 31ae85b05b..9d962cca65 100644
--- a/releases/7_2_33.php
+++ b/releases/7_2_33.php
@@ -1,7 +1,7 @@
PHP 7.2.33 Release Announcement
diff --git a/releases/7_2_4.php b/releases/7_2_4.php
index 1ecea1c544..2ce01e76a5 100644
--- a/releases/7_2_4.php
+++ b/releases/7_2_4.php
@@ -1,7 +1,7 @@
PHP 7.2.4 Release Announcement
diff --git a/releases/7_2_5.php b/releases/7_2_5.php
index 126ec23a82..1d5b6ac07f 100644
--- a/releases/7_2_5.php
+++ b/releases/7_2_5.php
@@ -1,7 +1,7 @@
PHP 7.2.5 Release Announcement
diff --git a/releases/7_2_6.php b/releases/7_2_6.php
index 3a5062c331..b367ed9ac9 100644
--- a/releases/7_2_6.php
+++ b/releases/7_2_6.php
@@ -1,7 +1,7 @@
PHP 7.2.6 Release Announcement
diff --git a/releases/7_2_7.php b/releases/7_2_7.php
index 650de04cca..926a46fe07 100644
--- a/releases/7_2_7.php
+++ b/releases/7_2_7.php
@@ -1,7 +1,7 @@
PHP 7.2.7 Release Announcement
diff --git a/releases/7_2_8.php b/releases/7_2_8.php
index 6321957566..5dfd11ffc5 100644
--- a/releases/7_2_8.php
+++ b/releases/7_2_8.php
@@ -1,7 +1,7 @@
PHP 7.2.8 Release Announcement
diff --git a/releases/7_2_9.php b/releases/7_2_9.php
index d84cb3bb03..d7518098fe 100644
--- a/releases/7_2_9.php
+++ b/releases/7_2_9.php
@@ -1,7 +1,7 @@
PHP 7.2.9 Release Announcement
diff --git a/releases/7_3_0.php b/releases/7_3_0.php
index 341880d1f6..1a78e903fe 100644
--- a/releases/7_3_0.php
+++ b/releases/7_3_0.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'releases/7_3_0.php';
include_once __DIR__ . '/../include/prepend.inc';
-site_header("PHP 7.3.0 Release Announcement");
+site_header('PHP 7.3.0 Release Announcement');
?>
PHP 7.3.0 Release Announcement
diff --git a/releases/7_3_1.php b/releases/7_3_1.php
index bda9a534c2..187021a3be 100644
--- a/releases/7_3_1.php
+++ b/releases/7_3_1.php
@@ -1,7 +1,7 @@
PHP 7.3.1 Release Announcement
diff --git a/releases/7_3_10.php b/releases/7_3_10.php
index fd4ba6fce6..5304f18fef 100644
--- a/releases/7_3_10.php
+++ b/releases/7_3_10.php
@@ -1,7 +1,7 @@
PHP 7.3.10 Release Announcement
diff --git a/releases/7_3_11.php b/releases/7_3_11.php
index 8460d14e62..ceb2163139 100644
--- a/releases/7_3_11.php
+++ b/releases/7_3_11.php
@@ -1,7 +1,7 @@
PHP 7.3.11 Release Announcement
diff --git a/releases/7_3_12.php b/releases/7_3_12.php
index 4b4c5ebe3f..b81ca9b8db 100644
--- a/releases/7_3_12.php
+++ b/releases/7_3_12.php
@@ -1,7 +1,7 @@
PHP 7.3.12 Release Announcement
diff --git a/releases/7_3_13.php b/releases/7_3_13.php
index bef3efa123..0bee2f4912 100644
--- a/releases/7_3_13.php
+++ b/releases/7_3_13.php
@@ -1,7 +1,7 @@
PHP 7.3.13 Release Announcement
diff --git a/releases/7_3_14.php b/releases/7_3_14.php
index 8b5cc6c509..29336e6b32 100644
--- a/releases/7_3_14.php
+++ b/releases/7_3_14.php
@@ -1,7 +1,7 @@
PHP 7.3.14 Release Announcement
diff --git a/releases/7_3_15.php b/releases/7_3_15.php
index 05ae2592e4..d741873770 100644
--- a/releases/7_3_15.php
+++ b/releases/7_3_15.php
@@ -1,7 +1,7 @@
PHP 7.3.15 Release Announcement
diff --git a/releases/7_3_16.php b/releases/7_3_16.php
index b440a2fe2a..95f5ce958e 100644
--- a/releases/7_3_16.php
+++ b/releases/7_3_16.php
@@ -1,7 +1,7 @@
PHP 7.3.16 Release Announcement
diff --git a/releases/7_3_17.php b/releases/7_3_17.php
index ab1a507cbf..ccbb0bdabb 100644
--- a/releases/7_3_17.php
+++ b/releases/7_3_17.php
@@ -1,7 +1,7 @@
PHP 7.3.17 Release Announcement
diff --git a/releases/7_3_18.php b/releases/7_3_18.php
index 8140f69421..2216ca6764 100644
--- a/releases/7_3_18.php
+++ b/releases/7_3_18.php
@@ -1,7 +1,7 @@
PHP 7.3.18 Release Announcement
diff --git a/releases/7_3_19.php b/releases/7_3_19.php
index 5389c25fed..5d254f2816 100644
--- a/releases/7_3_19.php
+++ b/releases/7_3_19.php
@@ -1,7 +1,7 @@
PHP 7.3.19 Release Announcement
diff --git a/releases/7_3_2.php b/releases/7_3_2.php
index f08fb78755..722debef64 100644
--- a/releases/7_3_2.php
+++ b/releases/7_3_2.php
@@ -1,7 +1,7 @@
PHP 7.3.2 Release Announcement
diff --git a/releases/7_3_3.php b/releases/7_3_3.php
index d73d139a4d..7217d1b88c 100644
--- a/releases/7_3_3.php
+++ b/releases/7_3_3.php
@@ -1,7 +1,7 @@
PHP 7.3.3 Release Announcement
diff --git a/releases/7_3_4.php b/releases/7_3_4.php
index 236e209806..90357e15ac 100644
--- a/releases/7_3_4.php
+++ b/releases/7_3_4.php
@@ -1,7 +1,7 @@
PHP 7.3.4 Release Announcement
diff --git a/releases/7_3_5.php b/releases/7_3_5.php
index 86d6337a18..115a526796 100644
--- a/releases/7_3_5.php
+++ b/releases/7_3_5.php
@@ -1,7 +1,7 @@
PHP 7.3.5 Release Announcement
diff --git a/releases/7_3_6.php b/releases/7_3_6.php
index 7ba5632df4..df2a5ee3c3 100644
--- a/releases/7_3_6.php
+++ b/releases/7_3_6.php
@@ -1,7 +1,7 @@
PHP 7.3.6 Release Announcement
diff --git a/releases/7_3_7.php b/releases/7_3_7.php
index f69a4cea70..44de308afc 100644
--- a/releases/7_3_7.php
+++ b/releases/7_3_7.php
@@ -1,7 +1,7 @@
PHP 7.3.7 Release Announcement
diff --git a/releases/7_3_8.php b/releases/7_3_8.php
index c2813e803a..72c76fa3f3 100644
--- a/releases/7_3_8.php
+++ b/releases/7_3_8.php
@@ -1,7 +1,7 @@
PHP 7.3.8 Release Announcement
diff --git a/releases/7_3_9.php b/releases/7_3_9.php
index 4f8af952af..11f21843c8 100644
--- a/releases/7_3_9.php
+++ b/releases/7_3_9.php
@@ -1,7 +1,7 @@
PHP 7.3.9 Release Announcement
diff --git a/releases/7_4_0.php b/releases/7_4_0.php
index fa7ef03022..de8ad0b9ff 100644
--- a/releases/7_4_0.php
+++ b/releases/7_4_0.php
@@ -2,7 +2,7 @@
// $Id$
$_SERVER['BASE_PAGE'] = 'releases/7_4_0.php';
include_once __DIR__ . '/../include/prepend.inc';
-site_header("PHP 7.4.0 Release Announcement");
+site_header('PHP 7.4.0 Release Announcement');
?>
PHP 7.4.0 Release Announcement
diff --git a/releases/7_4_1.php b/releases/7_4_1.php
index 3c07495df6..c373aa76c7 100644
--- a/releases/7_4_1.php
+++ b/releases/7_4_1.php
@@ -1,7 +1,7 @@
PHP 7.4.1 Release Announcement
diff --git a/releases/7_4_2.php b/releases/7_4_2.php
index c34ac73959..900ef1d03e 100644
--- a/releases/7_4_2.php
+++ b/releases/7_4_2.php
@@ -1,7 +1,7 @@
PHP 7.4.2 Release Announcement
diff --git a/releases/7_4_3.php b/releases/7_4_3.php
index 96a8b1fd90..89cbaef797 100644
--- a/releases/7_4_3.php
+++ b/releases/7_4_3.php
@@ -1,7 +1,7 @@
PHP 7.4.3 Release Announcement
diff --git a/releases/7_4_4.php b/releases/7_4_4.php
index 0046574d36..116ed4da7e 100644
--- a/releases/7_4_4.php
+++ b/releases/7_4_4.php
@@ -1,7 +1,7 @@
PHP 7.4.4 Release Announcement
diff --git a/releases/7_4_5.php b/releases/7_4_5.php
index de4b53ba73..0ae36ed3ff 100644
--- a/releases/7_4_5.php
+++ b/releases/7_4_5.php
@@ -1,7 +1,7 @@
PHP 7.4.5 Release Announcement
diff --git a/releases/7_4_6.php b/releases/7_4_6.php
index a276594960..63ff868efe 100644
--- a/releases/7_4_6.php
+++ b/releases/7_4_6.php
@@ -1,7 +1,7 @@
PHP 7.4.6 Release Announcement
diff --git a/releases/7_4_7.php b/releases/7_4_7.php
index c6577df801..44025f60ec 100644
--- a/releases/7_4_7.php
+++ b/releases/7_4_7.php
@@ -1,7 +1,7 @@
PHP 7.4.7 Release Announcement
diff --git a/releases/8.0/common.php b/releases/8.0/common.php
index fd44ea02db..380b247a38 100644
--- a/releases/8.0/common.php
+++ b/releases/8.0/common.php
@@ -13,7 +13,7 @@ function common_header(string $description): void {
\filter_var($MYSITE . 'images/php8/php_8_released.png', \FILTER_VALIDATE_URL));
$meta_description = \htmlspecialchars($description);
- \site_header("PHP 8.0.0 Release Announcement", [
+ \site_header('PHP 8.0.0 Release Announcement', [
'current' => 'php8',
'css' => ['php8.css'],
'meta_tags' => <<
diff --git a/releases/8.1/common.php b/releases/8.1/common.php
index ac4a1ad5c1..7033da5343 100644
--- a/releases/8.1/common.php
+++ b/releases/8.1/common.php
@@ -13,7 +13,7 @@ function common_header(string $description): void {
\filter_var($MYSITE . 'images/php8/php_8_1_released.png', \FILTER_VALIDATE_URL));
$meta_description = \htmlspecialchars($description);
- \site_header("PHP 8.1.0 Release Announcement", [
+ \site_header('PHP 8.1.0 Release Announcement', [
'current' => 'php8',
'css' => ['php8.css'],
'meta_tags' => << 'php8',
'css' => ['php8.css'],
'meta_tags' => << 'php8',
'css' => ['php8.css'],
'meta_tags' => <<
@@ -26,9 +26,9 @@
$FEED_UPDATED = 0;
krsort($RELEASED_VERSIONS);
foreach ($RELEASED_VERSIONS as $version => $release) {
- $published = date(DATE_ATOM, strtotime($release["source"][0]["date"]));
- if ($release["announcement"]) {
- $id = "http://php.net/releases/" . str_replace(".", "_", $version) . ".php";
+ $published = date(DATE_ATOM, strtotime($release['source'][0]['date']));
+ if ($release['announcement']) {
+ $id = 'http://php.net/releases/' . str_replace('.', '_', $version) . '.php';
} else {
$id = "http://qa.php.net/#$version";
}
@@ -43,14 +43,14 @@
XML;
$maxtime = [];
- foreach ($release["source"] as $source) {
- if (!isset($source["date"])) {
+ foreach ($release['source'] as $source) {
+ if (!isset($source['date'])) {
continue;
}
- $maxtime[] = $time = strtotime($source["date"]);
+ $maxtime[] = $time = strtotime($source['date']);
$released = date(DATE_ATOM, $time);
- echo " \n";
+ echo " \n";
foreach (['md5', 'sha256'] as $hashAlgo) {
if (isset($source[$hashAlgo])) {
echo " {$source[$hashAlgo]} \n";
@@ -89,4 +89,4 @@
echo " {$FEED_UPDATED} \n";
echo $entries;
-echo "";
+echo '';
diff --git a/releases/index.php b/releases/index.php
index 19babea341..c5fc564315 100644
--- a/releases/index.php
+++ b/releases/index.php
@@ -2,9 +2,9 @@
$_SERVER['BASE_PAGE'] = 'releases/index.php';
include_once __DIR__ . '/../include/prepend.inc';
-include_once __DIR__ . "/../include/branches.inc";
+include_once __DIR__ . '/../include/branches.inc';
-if (isset($_GET["serialize"]) || isset($_GET["json"])) {
+if (isset($_GET['serialize']) || isset($_GET['json'])) {
$RELEASES = $RELEASES + $OLDRELEASES;
$machineReadable = [];
@@ -14,8 +14,8 @@
$supportedVersions[$major] = array_keys($releases);
}
- if (isset($_GET["version"])) {
- $versionArray = version_array($_GET["version"]);
+ if (isset($_GET['version'])) {
+ $versionArray = version_array($_GET['version']);
$ver = $versionArray[0];
if (isset($RELEASES[$ver])) {
@@ -44,27 +44,27 @@
if (!isset($_GET['max']) && !empty($machineReadable)) {
$version = key($machineReadable);
$machineReadable = current($machineReadable);
- $machineReadable["version"] = $version;
+ $machineReadable['version'] = $version;
}
}
if (empty($machineReadable)) {
- $machineReadable = ["error" => "Unknown version"];
+ $machineReadable = ['error' => 'Unknown version'];
}
} else {
foreach ($RELEASES as $major => $release) {
$version = key($release);
$r = current($release);
- $r["version"] = $version;
+ $r['version'] = $version;
$r['supported_versions'] = $supportedVersions[$major] ?? [];
$machineReadable[$major] = $r;
}
}
- if (isset($_GET["serialize"])) {
+ if (isset($_GET['serialize'])) {
header('Content-type: text/plain');
echo serialize($machineReadable);
- } elseif (isset($_GET["json"])) {
+ } elseif (isset($_GET['json'])) {
header('Content-Type: application/json');
echo json_encode($machineReadable);
}
@@ -72,7 +72,7 @@
}
// Human Readable.
-site_header("Releases", [
+site_header('Releases', [
'current' => 'downloads',
'css' => '/styles/releases.css',
]);
@@ -93,7 +93,7 @@
if (!in_array($major, $active_majors, false)) {
echo "\n \n";
echo " Support for PHP $major has been discontinued ";
- echo "since " . current($a)['date'] . ' .';
+ echo 'since ' . current($a)['date'] . ' .';
echo "Please consider upgrading to $latest.
\n";
}
@@ -103,11 +103,11 @@
mk_rel(
$major,
$ver,
- $release["date"],
- $release["announcement"] ?? false,
- $release["source"] ?? [],
- $release["windows"] ?? [],
- $release["museum"] ?? ($i >= 3),
+ $release['date'],
+ $release['announcement'] ?? false,
+ $release['source'] ?? [],
+ $release['windows'] ?? [],
+ $release['museum'] ?? ($i >= 3),
);
}
}
@@ -190,7 +190,7 @@ function mk_rel(int $major,
array $windows,
bool $museum): void {
printf("
\n
%1\$s \n
\n Released: %s \n Announcement: ",
- ($pos = strpos($ver, " ")) ? substr($ver, 0, $pos) : $ver,
+ ($pos = strpos($ver, ' ')) ? substr($ver, 0, $pos) : $ver,
$date);
if ($announcement) {
@@ -199,11 +199,11 @@ function mk_rel(int $major,
echo "$ann ";
}
} else {
- $url = str_replace(".", "_", $ver);
+ $url = str_replace('.', '_', $ver);
echo "English ";
}
} else {
- echo "None";
+ echo 'None';
}
echo " \n";
@@ -217,13 +217,13 @@ function mk_rel(int $major,
foreach (array_merge($source, $windows) as $src) {
echo " \n";
if (isset($src['filename'])) {
- download_link($src["filename"], $src["name"]); echo " \n";
+ download_link($src['filename'], $src['name']); echo " \n";
$linebreak = '';
foreach (['md5', 'sha256'] as $cs) {
if (isset($src[$cs])) {
echo $linebreak;
echo "{$cs}: {$src[$cs]} \n";
- $linebreak = " ";
+ $linebreak = ' ';
}
}
} else {
@@ -234,15 +234,15 @@ function mk_rel(int $major,
} else { /* $museum */
foreach ($source as $src) {
- if (!isset($src["filename"])) {
+ if (!isset($src['filename'])) {
continue;
}
printf(' %s ',
- $major, $src["filename"], $src["name"]);
+ $major, $src['filename'], $src['name']);
}
foreach ($windows as $src) {
printf('%s ',
- ($major == 5 ? "php5" : "win32"), $src["filename"], $src["name"]);
+ ($major == 5 ? 'php5' : 'win32'), $src['filename'], $src['name']);
}
}
diff --git a/search.php b/search.php
index 45f719fef1..36136af5a5 100644
--- a/search.php
+++ b/search.php
@@ -17,20 +17,20 @@
}
// Never allow a comma in the show string, that would confuse our JS
- $_FORM['show'] = str_replace(",", "", $_FORM['show']);
+ $_FORM['show'] = str_replace(',', '', $_FORM['show']);
$ucp = urlencode($_FORM['pattern']);
// Do redirections for external search engines
switch ($_FORM['show']) {
- case "quickref" :
- case "404quickref" :
- $langparam = (isset($EXPL_LANG) ? "&lang=$EXPL_LANG" : "");
+ case 'quickref' :
+ case '404quickref' :
+ $langparam = (isset($EXPL_LANG) ? "&lang=$EXPL_LANG" : '');
mirror_redirect("/manual-lookup.php?pattern={$ucp}{$langparam}&scope={$_FORM['show']}");
break;
- case "manual":
- case "404manual":
+ case 'manual':
+ case '404manual':
mirror_redirect($MYSITE . "results.php?q={$ucp}&p={$_FORM['show']}&l=$LANG");
break;
@@ -47,12 +47,12 @@
// Print out common header
$link = [
- "rel" => "search",
- "type" => "application/opensearchdescription+xml",
- "href" => $MYSITE . "phpnetimprovedsearch.src",
- "title" => "Add PHP.net search",
+ 'rel' => 'search',
+ 'type' => 'application/opensearchdescription+xml',
+ 'href' => $MYSITE . 'phpnetimprovedsearch.src',
+ 'title' => 'Add PHP.net search',
];
- site_header("Search", ["link" => [$link], "current" => "help"]);
+ site_header('Search', ['link' => [$link], 'current' => 'help']);
google_cse();
site_footer();
diff --git a/security-note.php b/security-note.php
index de0c3e3efe..cc22d246e7 100644
--- a/security-note.php
+++ b/security-note.php
@@ -1,7 +1,7 @@
"docs"]);
+site_header('A Note on Security in PHP', ['current' => 'docs']);
?>
A Note on Security in PHP
diff --git a/sitemap.php b/sitemap.php
index 957af4fabd..428f85f7d8 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -1,7 +1,7 @@
"help"]);
+site_header('Sitemap', ['current' => 'help']);
?>
PHP.net Sitemap
diff --git a/sites.php b/sites.php
index a387277f9f..b26dff5e7f 100644
--- a/sites.php
+++ b/sites.php
@@ -1,7 +1,7 @@
"help"]);
+site_header("A Tourist's Guide", ['current' => 'help']);
?>
diff --git a/software.php b/software.php
index 9b45306a3c..3dbfbb37b7 100644
--- a/software.php
+++ b/software.php
@@ -1,7 +1,7 @@
"help"]);
+site_header('PHP Software', ['current' => 'help']);
?>
PHP Software
@@ -12,17 +12,17 @@
-
+
php.net
Main site for the PHP project.
-
+
pear.php.net
The PEAR project where you can find reusable components for PHP .
-
+
pecl.php.net
The PECL project where you can find PHP extensions.
diff --git a/src/News/Entry.php b/src/News/Entry.php
index 00b82ebfd8..1aa08dcd0e 100755
--- a/src/News/Entry.php
+++ b/src/News/Entry.php
@@ -11,7 +11,7 @@ class Entry
'cfp' => 'Call for Papers',
];
- public const WEBROOT = "https://www.php.net";
+ public const WEBROOT = 'https://www.php.net';
public const PHPWEB = __DIR__ . '/../../';
@@ -106,56 +106,56 @@ public function save(): self {
}
// Create the XML document.
- $dom = new \DOMDocument("1.0", "utf-8");
+ $dom = new \DOMDocument('1.0', 'utf-8');
$dom->formatOutput = true;
$dom->preserveWhiteSpace = false;
- $item = $dom->createElementNs("http://www.w3.org/2005/Atom", "entry");
+ $item = $dom->createElementNs('http://www.w3.org/2005/Atom', 'entry');
$href = self::WEBROOT . ($this->isConference() ? '/conferences/index.php' : '/index.php');
- $archive = self::WEBROOT . "/archive/" . date('Y', $_SERVER['REQUEST_TIME']) . ".php#{$this->id}";
+ $archive = self::WEBROOT . '/archive/' . date('Y', $_SERVER['REQUEST_TIME']) . ".php#{$this->id}";
$link = ($this->image['link'] ?? null) ?: $archive;
- self::ce($dom, "title", $this->title, [], $item);
- self::ce($dom, "id", $archive, [], $item);
- self::ce($dom, "published", date(DATE_ATOM), [], $item);
- self::ce($dom, "updated", date(DATE_ATOM), [], $item);
- self::ce($dom, "link", null, ['href' => "{$href}#{$this->id}", "rel" => "alternate", "type" => "text/html"], $item);
- self::ce($dom, "link", null, ['href' => $link, 'rel' => 'via', 'type' => 'text/html'], $item);
+ self::ce($dom, 'title', $this->title, [], $item);
+ self::ce($dom, 'id', $archive, [], $item);
+ self::ce($dom, 'published', date(DATE_ATOM), [], $item);
+ self::ce($dom, 'updated', date(DATE_ATOM), [], $item);
+ self::ce($dom, 'link', null, ['href' => "{$href}#{$this->id}", 'rel' => 'alternate', 'type' => 'text/html'], $item);
+ self::ce($dom, 'link', null, ['href' => $link, 'rel' => 'via', 'type' => 'text/html'], $item);
if (!empty($this->conf_time)) {
- $item->appendChild($dom->createElementNs("http://php.net/ns/news", "finalTeaserDate", date("Y-m-d", $this->conf_time)));
+ $item->appendChild($dom->createElementNs('http://php.net/ns/news', 'finalTeaserDate', date('Y-m-d', $this->conf_time)));
}
foreach ($this->categories as $cat) {
- self::ce($dom, "category", null, ['term' => $cat, "label" => self::CATEGORIES[$cat]], $item);
+ self::ce($dom, 'category', null, ['term' => $cat, 'label' => self::CATEGORIES[$cat]], $item);
}
if ($this->image['path'] ?? '') {
- $image = $item->appendChild($dom->createElementNs("http://php.net/ns/news", "newsImage", $this->image['path']));
- $image->setAttribute("link", $this->image['link']);
- $image->setAttribute("title", $this->image['title']);
+ $image = $item->appendChild($dom->createElementNs('http://php.net/ns/news', 'newsImage', $this->image['path']));
+ $image->setAttribute('link', $this->image['link']);
+ $image->setAttribute('title', $this->image['title']);
}
- $content = self::ce($dom, "content", null, [], $item);
+ $content = self::ce($dom, 'content', null, [], $item);
// Slurp content into our DOM.
- $tdoc = new \DOMDocument("1.0", "utf-8");
+ $tdoc = new \DOMDocument('1.0', 'utf-8');
$tdoc->formatOutput = true;
if ($tdoc->loadXML("{$this->content}
")) {
- $content->setAttribute("type", "xhtml");
- $div = $content->appendChild($dom->createElement("div"));
- $div->setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
+ $content->setAttribute('type', 'xhtml');
+ $div = $content->appendChild($dom->createElement('div'));
+ $div->setAttribute('xmlns', 'http://www.w3.org/1999/xhtml');
foreach ($tdoc->firstChild->childNodes as $node) {
$div->appendChild($dom->importNode($node, true));
}
} else {
- fwrite(STDERR, "There is something wrong with your xhtml, falling back to html");
- $content->setAttribute("type", "html");
+ fwrite(STDERR, 'There is something wrong with your xhtml, falling back to html');
+ $content->setAttribute('type', 'html');
$content->nodeValue = $this->content;
}
$dom->appendChild($item);
- $dom->save(self::ARCHIVE_ENTRIES_ABS . $this->id . ".xml");
+ $dom->save(self::ARCHIVE_ENTRIES_ABS . $this->id . '.xml');
return $this;
}
@@ -165,15 +165,15 @@ public function updateArchiveXML(): self {
throw new \Exception('Entry must be saved before updating archive XML');
}
- $arch = new \DOMDocument("1.0", "utf-8");
+ $arch = new \DOMDocument('1.0', 'utf-8');
$arch->formatOutput = true;
$arch->preserveWhiteSpace = false;
$arch->load(self::ARCHIVE_FILE_ABS);
- $first = $arch->createElementNs("http://www.w3.org/2001/XInclude", "xi:include");
- $first->setAttribute("href", "entries/{$this->id}.xml");
+ $first = $arch->createElementNs('http://www.w3.org/2001/XInclude', 'xi:include');
+ $first->setAttribute('href', "entries/{$this->id}.xml");
- $second = $arch->getElementsByTagNameNs("http://www.w3.org/2001/XInclude", "include")->item(0);
+ $second = $arch->getElementsByTagNameNs('http://www.w3.org/2001/XInclude', 'include')->item(0);
$arch->documentElement->insertBefore($first, $second);
$arch->save(self::ARCHIVE_FILE_ABS);
@@ -181,11 +181,11 @@ public function updateArchiveXML(): self {
}
private static function selectNextId(): string {
- $filename = date("Y-m-d", $_SERVER["REQUEST_TIME"]);
+ $filename = date('Y-m-d', $_SERVER['REQUEST_TIME']);
$count = 0;
do {
$count++;
- $id = $filename . "-" . $count;
+ $id = $filename . '-' . $count;
$basename = "{$id}.xml";
} while (file_exists(self::ARCHIVE_ENTRIES_ABS . $basename));
diff --git a/submit-event.php b/submit-event.php
index 55b51ce8a0..57b445a2e2 100644
--- a/submit-event.php
+++ b/submit-event.php
@@ -3,7 +3,7 @@
include_once __DIR__ . '/include/prepend.inc';
include_once __DIR__ . '/include/posttohost.inc';
include_once __DIR__ . '/include/email-validation.inc';
-site_header("Submit an Event", ["current" => "community"]);
+site_header('Submit an Event', ['current' => 'community']);
// No errors, processing depends on POST data
$errors = [];
@@ -24,7 +24,7 @@
];
foreach ($vars as $varname) {
if (!isset($_POST[$varname])) {
- $_POST[$varname] = "";
+ $_POST[$varname] = '';
}
}
@@ -48,13 +48,13 @@
$_POST['sdesc'] = trim($_POST['sdesc']);
if (!$_POST['sdesc']) {
- $errors[] = "You must supply a short description of the event.";
+ $errors[] = 'You must supply a short description of the event.';
}
$_POST['ldesc'] = trim(strip_tags($_POST['ldesc'], ''));
- $_POST['ldesc'] = preg_replace("/(style|on\\w+?)\s*=[^>]*/i", "", $_POST['ldesc']);
+ $_POST['ldesc'] = preg_replace("/(style|on\\w+?)\s*=[^>]*/i", '', $_POST['ldesc']);
if (!$_POST['ldesc']) {
- $errors[] = "You must supply a long description of the event.";
+ $errors[] = 'You must supply a long description of the event.';
}
elseif (stripos($_POST['ldesc'], 'PHP') === false) {
$errors[] = "This does not look like a 'PHP' event";
@@ -67,10 +67,10 @@
$pu['host'] = isset($pu['host']) ? trim($pu['host']) : '';
if (!$_POST['url']) {
- $errors[] = "You must supply a URL with more information about the event.";
+ $errors[] = 'You must supply a URL with more information about the event.';
}
elseif (empty($pu['host']) || !in_array($pu['scheme'], $valid_schemes, false)) {
- $errors[] = "The URL you supplied was invalid.";
+ $errors[] = 'The URL you supplied was invalid.';
}
if (!$_POST['country']) {
@@ -82,41 +82,41 @@
}
if (!checkdate($_POST['smonth'], $_POST['sday'], $_POST['syear'])) {
- $errors[] = "You must specify a valid start date.";
+ $errors[] = 'You must specify a valid start date.';
}
else {
$sdate = mktime(0, 0, 1, $_POST['smonth'], $_POST['sday'], $_POST['syear']);
if ($sdate < time()) {
- $errors[] = "You must specify a start date that is in the future.";
+ $errors[] = 'You must specify a start date that is in the future.';
}
}
if ($_POST['type'] == 'multi' && !checkdate($_POST['emonth'], $_POST['eday'], $_POST['eyear'])) {
- $errors[] = "You must specify a valid end date for a multi-day event.";
+ $errors[] = 'You must specify a valid end date for a multi-day event.';
}
elseif ($_POST['type'] == 'multi' && checkdate($_POST['smonth'], $_POST['sday'], $_POST['syear'])) {
$sdate = mktime(0, 0, 1, $_POST['smonth'], $_POST['sday'], $_POST['syear']);
$edate = mktime(0, 0, 1, $_POST['emonth'], $_POST['eday'], $_POST['eyear']);
if ($edate < time()) {
- $errors[] = "You must specify an end date that is in the future.";
+ $errors[] = 'You must specify an end date that is in the future.';
}
elseif ($edate < $sdate) {
- $errors[] = "You must specify an end date that is after the start date.";
+ $errors[] = 'You must specify an end date that is after the start date.';
}
}
if ($_POST['type'] == 'recur' && !($_POST['recur'] && $_POST['recur_day'])) {
- $errors[] = "You must specify a valid day of the month for a recurring event.";
+ $errors[] = 'You must specify a valid day of the month for a recurring event.';
}
// Spam question
- if ($_POST["sane"] != 4) {
+ if ($_POST['sane'] != 4) {
$errors[] = "It's OK. I'm not real either";
}
if (isset($_POST['action']) && $_POST['action'] === 'Submit' && empty($errors)) {
// Submit to main.php.net
- $result = posttohost("http://main.php.net/entry/event.php", $_POST);
+ $result = posttohost('http://main.php.net/entry/event.php', $_POST);
if ($result) {
$errors[] = "There was an error processing your submission: $result";
}
@@ -184,7 +184,7 @@
- ">
+
>
One day (no end-date required)
@@ -194,7 +194,7 @@
- ">
+
>
Multi-day event
@@ -230,7 +230,7 @@
"Training"]; // 2 = conference.. which should be on php.net/conferences instead
+ $cat = ['- Select a category -', 'User Group Event', 3 => 'Training']; // 2 = conference.. which should be on php.net/conferences instead
display_options($cat, $_POST['category']);
?>
@@ -257,7 +257,7 @@