#!/usr/bin/env php The PHP development team announces the immediate availability of PHP $version. This is a $security release.

All PHP $branch users are encouraged to upgrade to this version.

For source downloads of PHP $version please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.

EOD; // Mint the news XML entry. $entry = (new Entry) ->setTitle("PHP $version Released!") ->setCategories(['releases','frontpage']) ->setContent($template); $entry->save()->updateArchiveXML(); $addedFiles = [Entry::ARCHIVE_ENTRIES_REL . $entry->getId() . '.xml']; // Mint the releases/x_y_z.php archive. const RELEASES_REL = 'releases/'; const RELEASES_ABS = __DIR__ . '/../' . RELEASES_REL; if (isset($opts['r'])) { $release = strtr($version, '.', '_') . '.php'; file_put_contents(RELEASES_ABS . $release, "

PHP $version Release Announcement

$template