-
Notifications
You must be signed in to change notification settings - Fork 558
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
PHP 8.2 Release page #675
Conversation
Would be good if this mentioned Random extension ( php/php-src#8094 ) as it is one of the bigger changes... |
Ah I actually see one line about that: |
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. |
Can the new logo have Very Peri as one of the colors used? |
Co-authored-by: Roman Pronskiy <[email protected]>
Co-authored-by: Tim Düsterhus <[email protected]>
Add new items to New Functions section Co-authored-by: Tim Düsterhus <[email protected]>
Co-authored-by: Tim Düsterhus <[email protected]>
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. |
@lex111 if you have a time, can you also check the Russian translation? |
Co-authored-by: Alexey Pyltsyn <[email protected]>
Co-authored-by: Alexey Pyltsyn <[email protected]>
There was a problem hiding this 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();
}
Co-authored-by: Tim Düsterhus <[email protected]>
Hey there! Preparations for PHP 8.2 release are completed, now we're waiting for the announcement (December, 8th). If there are any improvements, we have 2 days 😃 |
@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! |
Co-authored-by: Tim Düsterhus <[email protected]>
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]>
Good idea, thanks! |
cc @pronskiy
Preview: https://php.sergeypanteleev.com/releases/8.2/en.php