The Register

Biting the hand that feeds IT — Enterprise Technology News and Analysis

PHP 8.6: Things are gonna get a lot more strict around here

On Thursday, PHP version 8.6 was released on its usual yearly schedule, popping up as if the web scripting language hadn’t been under intense scrutiny this past month. For those who missed it: a swarm of unearthed vulnerabilities has plagued PHP since October, allowing unauthenticated attackers to crash PHP workers or execute arbitrary code on the server. Users of every PHP-based application, including WordPress, Laravel, and Symfony, had to scramble to update their PHP instances. The PHP core development community, along with the PHP Foundation, responded with a coordinated release of patched versions of PHP (8.5.13, 8.4.28, 8.3.37, 8.2.36 and the new 8.6) that closed seven critical remote code execution (RCE) flaws in one sweep. In addition to patching specific exploitable holes in the PHP engine, the new version of PHP also tamps down some of PHP’s historically liberal configuration settings. Lucky for PHP, and for the rest of us, core developer Jörg Sowa called out these lax settings in June, when he posted a proposal to set more security-friendly defaults. Sowa saw that three configuration settings of PHP’s session extension – Strict Mode, HttpOnly, and SameSite – were designed to boost security but shipped “with defaults that leave applications unnecessarily exposed.” No cookies for impostors In a retrospective posted last month, the PHP Foundation admitted that consensus-driven gridlock had stalled complex fixes for months and vowed to get patches out the door sooner, should the vulnerabilities leak ahead of the agreed-upon deadline. Code-wise, Sowa’s proposal to harden PHP settings was accepted for PHP 8.6. These changes won’t stop the flood of AI-generated CVEs, but at least these holes will be more difficult to exploit. For Strict Mode, PHP will no longer accept uninitialized session IDs that it didn’t create itself. Before, an attacker could just plant a made-up session ID on the victim to gain entry. “The built-in files handler checks whether a session file for that ID exists on disk; because an attacker-planted ID has no corresponding file, a fresh random ID is generated instead,” Sowa wrote. Furthermore, PHP will now, by default, add the HttpOnly flag to its session Set-Cookie header, blocking client-side JavaScript from reading the session ID, which could otherwise be stolen to masquerade as the user. Believe it or not, any script on the page could read it before. Finally, the server will withhold session cookies on cross-site POST requests, as well as for subrequests and iframes. “Without it, a forged form or link on an attacker-controlled site can trigger authenticated requests using the victim’s session,” Sowa wrote. Going forward, cookies will only be sent on same-site requests and top-level GET navigations, such as clicking a normal link. Collectively, these changes should thwart session hijacking and cross-site request forgeries. They won’t stop remote code execution hacks, though they will make it a lot more difficult for attackers to gain entry. The new release brings some other security-minded changes as well. The PHP engine will be a lot stricter when it encounters strings with null values (“\0”). In many cases, it will now throw an error rather than silently letting it pass. Null values are a favored trick for triggering RCEs. A C function will treat the null value as the end of the string, processing everything before the null byte and ignoring everything after, much to an attacker’s delight. Continuing in this spirit of “if you see something, say something,” a number of other PHP functions will also no longer remain silent when things go awry. Operations for closing a file or copying data, for instance, will explicitly return a false value when terminating prematurely or failing, an alert developers could use to minimize data integrity bugs. Beyond security, PHP 8.6 also comes with a number of new goodies. PHPers are abuzz over Partial Function Application (PFA), which will let them pre-fill some of a function’s arguments to generate a reusable closure on the fly — leapfrogging JavaScript in this ability. The new edition also gets a native polling API, which will be handy for event-driven networking; a stopwatch-like Duration class that can track elapsed time across more than 250 years; and a clamp() function to ensure a given value stays within an acceptable range. Another tricky day for PHP devs For administrators, this PHP update round may be a bit of a shambles. As backend software engineer Rajekevin Dourepoulle notes in a blog post, these changes will take effect post-installation only if the configurations aren’t specified elsewhere, such as in an application, framework, or even another php.ini file – all of which can override the PHP settings themselves. “In practice: if your deployment reuses the old php.ini (an Ansible template, a COPY php.ini in a Dockerfile, a file copied from server to server), you move to 8.6 and gain nothing, because the explicit session.use_strict_mode = 0 line overrides the new default,” he wrote. Despite all these heroic efforts, PHP remains the champion of inscrutability. ®

Borough Market, London バラ市場、ロンドン

Mr Mikage (ミスター御影) posted a photo:

Borough Market, London バラ市場、ロンドン

The Guardian

Latest news, sport, business, comment, analysis and reviews from the Guardian, the world's leading liberal voice

US police departments warn GTA VI users to ‘keep it in the game’

Although there is no definitive link between violent video games and behavior, departments take to social media

While critics have been raving after the recent and long-awaited arrival of Grand Theft Auto VI, the latest entry in the famously violent video game series has also prompted real-world warnings from authorities.

Police departments across the US met the game’s release on Thursday with reminders that the car thefts, reckless driving, violence and other criminal mayhem depicted in the blockbuster title should not be re-enacted on the country’s streets.

Continue reading...

‘We don’t talk about the God stuff’: a day with Padre Dave, the outback’s flying minister

David Shrimpton has helped draft cattle and dehorn bulls in his decades visiting remote properties. Religion rarely gets a mention

The plane rattles as it bounces in the wind. Olive vinyl and carpet line the doors and floor, and a faded sticker on the dashboard reads: “Smoking is permitted.”

At the yoke of the 1970s Cessna, smiling through a white moustache and glasses, sits a man in a suit and tie patterned with cartoon aeroplanes. Padre Dave is on his way to marry two old friends.

Continue reading...

Bayern Munich confirm Harry Kane ‘out for next few months’ with ankle injury

  • England forward injured in Friday’s 1-1 draw with Cologne

  • Club statement confirms ‘tear of ligament in left ankle’

Bayern Munich have confirmed Harry Kane will be “out for the next few months” with ankle ligament damage sustained in their 1-1 draw with Cologne on Friday.

Kane was substituted after 20 minutes of the Bundesliga game, having been left limping after a challenge from the Cologne defender Joël Schmied. The Ballon d’Or winner was substituted with the returning Bayern coach, Vincent Kompany, saying afterwards that the injury would take “months” rather than weeks to heal.

Continue reading...

French police officers found guilty of racist assault on black music producer

Beating of Michel Zecler in 2020 sparked outrage over police brutality after it was caught on security cameras

Three French police officers who beat a black music producer whom they said was not wearing a face mask during the Covid pandemic have been found guilty of intentional, racist violence.

The brutal assault on Michel Zecler, now 47, was caught on security cameras in his building in 2020 and sparked outrage in France over police brutality. The trial this month was considered a turning point for the recognition of racist violence.

Continue reading...

UK and France believed to have vetoed UAE choice for UN secretary general

Costa Rican diplomat remains frontrunner but needs to win over two more permanent members of security council

The UK and France are believed to have effectively vetoed a controversial United Arab Emirates diplomat in a vote for the next UN secretary general, ostensibly over the UAE’s alleged links to atrocities in Sudan.

The search for a new chief diplomat for the world remained deadlocked on Friday after the UN security council’s ninth straw poll once again did not settle on a candidate.

Continue reading...

Slashdot

News for nerds, stuff that matters

Anthropic Shares Tank After Huge IPO As the Nasdaq Erases 2026 Gains

U.S. stocks extended their sell-off Friday as Anthropic shares plunged more than 11% on their second day of trading, despite the AI company's record-setting IPO a day earlier. The Nasdaq fell more than 3%, wiping out its gains for 2026, while the S&P 500 dropped nearly 2% and joined the Dow in correction territory, down at least 10% from recent highs. NBC News reports: The S&P 500 was trading nearly 2% lower as it headed for its worst losing week since April 2025, when President Donald Trump announced his "Liberation Day" tariffs, and is now 10% off from its most recent high, entering what's known as "correction territory." Meanwhile, the tech-heavy Nasdaq Composite was off more than 3% and officially erasing all its previous gains in 2026. Other major AI-related names such as CoreWeave, Nvidia and Oracle also sold off. The six consecutive declining S&P 500 sessions mark the index's longest losing streak since April 2024. A seventh losing day would make it the longest stretch since the pandemic slump in February 2020, according to Deutsche Bank.

Read more of this story at Slashdot.

Between Two Worlds — Tokyo International Forum

Traveller_40 has added a photo to the pool:

Between Two Worlds — Tokyo International Forum

From the seventh floor of the Tokyo International Forum, an unexpected reflection on the glass balustrade transforms Rafael Viñoly's spectacular atrium into an almost surreal composition.

The illuminated, ship-like ceiling appears twice, above and below, while suspended walkways seem to float between reality and reflection.

Tokyo, Japan — November 2026.

Just a view centimeter different locaiton

Traveller_40 has added a photo to the pool:

Just a view centimeter different locaiton