Skip to content

PHP 8.2 Release page #675

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 16 commits into from
Dec 7, 2022
Merged

PHP 8.2 Release page #675

merged 16 commits into from
Dec 7, 2022

Conversation

saundefined
Copy link
Member

@saundefined saundefined commented Jul 22, 2022

cc @pronskiy

Preview: https://php.sergeypanteleev.com/releases/8.2/en.php

@bukka
Copy link
Member

bukka commented Jul 28, 2022

Would be good if this mentioned Random extension ( php/php-src#8094 ) as it is one of the bigger changes...

@bukka
Copy link
Member

bukka commented Jul 28, 2022

Ah I actually see one line about that: <li>New <code>Random</code> extension.</li> so maybe a bit more extending that would be awesome.

@cmb69
Copy link
Member

cmb69 commented Jul 28, 2022

At least in the long run, it appears to be sensible to figure out a way to avoid the code duplication and the mix of PHP and HTML in these files.

@Pythone
Copy link

Pythone commented Jul 31, 2022

Can the new logo have Very Peri as one of the colors used?
https://veryperi.me/
2022 pantone color of the year

saundefined and others added 2 commits September 11, 2022 11:17
Add new items to New Functions section

Co-authored-by: Tim Düsterhus <[email protected]>
@saundefined
Copy link
Member Author

Hi all,

I deployed the page for preview - https://php.sergeypanteleev.com/releases/8.2/en.php

It remains to make and add Performance Improvements chart, the rest can be reviewed.

@saundefined saundefined marked this pull request as ready for review October 23, 2022 11:58
@saundefined saundefined changed the title [WIP] PHP 8.2 Release page PHP 8.2 Release page Oct 24, 2022
@saundefined
Copy link
Member Author

@lex111 if you have a time, can you also check the Russian translation?

saundefined and others added 2 commits October 28, 2022 22:10
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some improvements for the ext/random example, to improve the explanation and cleanliness. Full code:

<?php

use Random\Engine\Xoshiro256StarStar;
use Random\Randomizer;

$blueprintRng = new Xoshiro256StarStar(
	hash('sha256', "Example seed that is converted to a 256 Bit string via SHA-256", true)
);

$fibers = [];
for ($i = 0; $i < 8; $i++) {
	$fiberRng = clone $blueprintRng;
	// Xoshiro256**'s 'jump()' method moves the blueprint ahead 2**128 steps, as if
	// calling 'generate()' 2**128 times, giving the Fiber 2**128 unique values
	// without needing to reseed.
	$blueprintRng->jump(); 

	$fibers[] = new Fiber(function () use ($fiberRng, $i): void {
		$randomizer = new Randomizer($fiberRng);

		echo "{$i}: " . $randomizer->getInt(0, 100), PHP_EOL;
	});
}

// The randomizer will use a CSPRNG by default.
$randomizer = new Randomizer();

// Even though the fibers execute in a random order, they will print the same value
// each time, because each has its own unique instance of the RNG.
$fibers = $randomizer->shuffleArray($fibers);
foreach ($fibers as $fiber) {
	$fiber->start();
}

@saundefined
Copy link
Member Author

Hey there!

Preparations for PHP 8.2 release are completed, now we're waiting for the announcement (December, 8th).
I'm going to merge this PR after pushing the announcement.

If there are any improvements, we have 2 days 😃

@TimWolla
Copy link
Member

TimWolla commented Dec 6, 2022

@saundefined Can you update the page at https://php.sergeypanteleev.com/releases/8.2/en.php with the very-latest version so one can take a look at the final rendered result?

@saundefined
Copy link
Member Author

@saundefined Can you update the page at https://php.sergeypanteleev.com/releases/8.2/en.php with the very-latest version so one can take a look at the final rendered result?

Exactly, done, thanks!

@saundefined
Copy link
Member Author

Thank you! Also added more links to documentation.

@TimWolla @cmb69 maybe merge this PR a bit earlier without header changes?
So we can preview and check it, what do you think?

@cmb69
Copy link
Member

cmb69 commented Dec 7, 2022

maybe merge this PR a bit earlier without header changes?

I'd also change the "Released!" to "To be released tomorrow!" or something like that, just in case someone finds the page.

Co-authored-by: Tim Düsterhus <[email protected]>
@saundefined
Copy link
Member Author

I'd also change the "Released!" to "To be released tomorrow!" or something like that, just in case someone finds the page.

Good idea, thanks!
If there are no objections, I'll merge it a bit later today, and we can check it out.

@saundefined saundefined merged commit 2f88bae into php:master Dec 7, 2022
@saundefined saundefined mentioned this pull request Dec 7, 2022
@saundefined saundefined deleted the php82 branch December 8, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants