Skip to content

PHP 8.3 release page #807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 36 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
133bc45
PHP 8.3 release page
saundefined Jun 26, 2023
b7555d6
Apply suggestions from code review
saundefined Sep 26, 2023
3846a53
Apply suggestions from code review
saundefined Sep 26, 2023
ebb6bf3
Apply suggestions from code review
saundefined Sep 26, 2023
199f58e
Fix markup
saundefined Sep 26, 2023
7adbc29
Add Typed class constants examples
saundefined Sep 26, 2023
60f27de
Apply suggestions from code review
saundefined Sep 26, 2023
fa2b310
Add Dynamic class constant fetch examples
saundefined Sep 26, 2023
e46db42
Use `()` for functions
saundefined Sep 26, 2023
04806ba
Add Readonly amendments examples
saundefined Sep 26, 2023
91b09fa
Use lang file
saundefined Oct 4, 2023
f278e6f
Update releases/8.3/release.inc
saundefined Oct 14, 2023
7704c11
Add PHP 8.3 logo
pronskiy Oct 31, 2023
619f211
Merge pull request #2 from pronskiy/php83
saundefined Nov 2, 2023
2d6097c
Randomizer doc links
saundefined Oct 5, 2023
ab5013b
Released image
saundefined Nov 2, 2023
327b3a3
fix: cs
saundefined Nov 2, 2023
4cba2b4
Move readonly amendments down
saundefined Nov 2, 2023
b7e0cdf
Apply suggestions from code review
saundefined Nov 3, 2023
3d71ed3
Apply suggestions from code review
saundefined Nov 3, 2023
3f00e0b
Add EC support in OpenSSL
saundefined Nov 3, 2023
dab41e0
Update releases/8.3/languages/en.php
saundefined Nov 3, 2023
693e0b9
Apply suggestions from code review
saundefined Nov 3, 2023
e4c84e3
Links to docs
saundefined Nov 7, 2023
27cc8d2
Links to docs
saundefined Nov 15, 2023
8b04023
Add links to Intl docs
saundefined Nov 16, 2023
ac55c2b
Temporary hide PHP 8.3 refs
saundefined Nov 17, 2023
da3fcea
Add Russian translation, English wording
saundefined Nov 17, 2023
8619152
Typos
saundefined Nov 17, 2023
21efcbe
Update releases/8.3/release.inc
saundefined Nov 17, 2023
9dc7e56
Add links to docs
saundefined Nov 18, 2023
e5d2c38
Apply suggestions from code review
saundefined Nov 18, 2023
4be5e4c
Apply suggestions from code review
saundefined Nov 18, 2023
2c72e27
Apply suggestions from code review
saundefined Nov 18, 2023
5a5cfc7
Add new INI setting and deprecate old ones in PHP 8.3
saundefined Nov 21, 2023
50ea4ea
Fix
saundefined Nov 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ if (!isset($config["languages"])) {
<li class="<?php echo $curr == "community" ? "active" : ""?>"><a href="/get-involved" >Get Involved</a></li>
<li class="<?php echo $curr == "help" ? "active" : ""?>"><a href="/support">Help</a></li>
<li class="<?php echo $curr === "php8" ? "active" : "" ?>">
<a href="/releases/8.2/index.php">
<img src="/images/php8/logo_php8_2.svg" alt="php8.2" height="22" width="60">
<a href="/releases/8.3/index.php">
<img src="/images/php8/logo_php8_2.svg" alt="php8.3" height="22" width="60">
</a>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<img class="hero-logo" src="/images/logos/php-logo-white.svg" alt="php" width="240" height="120">
<p class="hero-text">A <strong>popular general-purpose scripting language</strong> that is especially suited to web development.<br />Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.</p>
<div class="hero-actions">
<a href="/releases/8.2/index.php" class="hero-btn hero-btn-primary">What's new in 8.2</a>
<a href="/releases/8.3/index.php" class="hero-btn hero-btn-primary">What's new in 8.3</a>
<a href="/downloads.php" class="hero-btn hero-btn-secondary">Download</a>
</div>
EOF;
Expand Down
74 changes: 74 additions & 0 deletions releases/8.3/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?php declare(strict_types=1);

namespace releases\php83;

include_once __DIR__ . '/../../include/prepend.inc';

function language_redirect(string $currentLang): void {
// We don't use the general language selection of php.net,
// so soldier on with this one.
return;
}

function common_header(string $description): void {
global $MYSITE;

$meta_image_path = \htmlspecialchars(
\filter_var($MYSITE . 'images/php8/php_8_2_released.png', \FILTER_VALIDATE_URL));
$meta_description = \htmlspecialchars($description);

\site_header("PHP 8.3.0 Release Announcement", [
'current' => 'php8',
'css' => ['php8.css'],
'meta_tags' => <<<META
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP 8.3 Released" />
<meta name="twitter:description" content="{$meta_description}" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="{$meta_image_path}" />

<meta itemprop="name" content="PHP 8.3 Released" />
<meta itemprop="description" content="{$meta_description}" />
<meta itemprop="image" content="{$meta_image_path}" />

<meta property="og:image" content="{$meta_image_path}" />
<meta property="og:description" content="{$meta_description}" />
META
]);
}

function language_chooser(string $currentLang): void {
$LANGUAGES = [
'en' => 'English',
];

// Print out the form with all the options
echo '
<form action="" method="get" id="changelang" name="changelang">
<fieldset>
<label for="changelang-langs">Change language:</label>
<select onchange="location = this.value + \'.php\'" name="lang" id="changelang-langs">
';

$tab = ' ';
foreach ($LANGUAGES as $lang => $text) {
$selected = ($lang === $currentLang) ? ' selected="selected"' : '';
echo $tab, "<option value='$lang'$selected>$text</option>\n";
}

echo ' </select>
</fieldset>
</form>
';
}

function message($code, $language = 'en')
{
$original = require __DIR__ . '/languages/en.php';
if (($language !== 'en') && file_exists(__DIR__ . '/languages/' . $language . '.php')) {
$translation = require __DIR__ . '/languages/' . $language . '.php';
}

return $translation[$code] ?? $original[$code] ?? $code;
}
5 changes: 5 additions & 0 deletions releases/8.3/en.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$lang = 'en';

include_once __DIR__ . '/release.inc';
5 changes: 5 additions & 0 deletions releases/8.3/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
$_SERVER['BASE_PAGE'] = 'releases/8.3/index.php';
include (__DIR__ . '/../../include/site.inc');

mirror_redirect('/releases/8.3/en.php');
16 changes: 16 additions & 0 deletions releases/8.3/languages/en.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [
'common_header' => 'PHP 8.3 is a major update of the PHP language. Readonly amendments, Typed class constants, #[Override] attribute, Randomizer additions, performance improvements and more',
'documentation' => 'Doc',
'main_title' => 'Released!',
'main_subtitle' => 'PHP 8.3 is a major update of the PHP language.<br class="display-none-md">It contains many new features, including Readonly amendments, Typed class constants, Randomizer additions, performance improvements and more.',
'upgrade_now' => 'Upgrade to PHP 8.3 now!',

'new_classes_title' => 'New Classes, Interfaces, and Functions',
'bc_title' => 'Deprecations and backward compatibility breaks',

'footer_title' => 'Better performance, better syntax, improved type safety.',
'footer_description' => '<p>For source downloads of PHP 8.3 please visit the <a href="/downloads">downloads</a> page. Windows binaries can be found on the <a href="https://windows.php.net/download">PHP for Windows</a> site. The list of changes is recorded in the <a href="/ChangeLog-8.php#PHP_8_3">ChangeLog</a>.</p>
<p>The <a href="/manual/en/migration83.php">migration guide</a> is available in the PHP Manual. Please consult it for a detailed list of new features and backward-incompatible changes.</p>',
];
Loading