560 blogs tracked7,114 posts indexed

#php

12 posts · 5 companies · newest first

Curated view of this subject:Topic: Php51
1

What PHP’s Session Handler Teaches Us About Atomicity (opens on the source site)

There is a comforting line of reasoning that goes like this: if a process locks a file before updating it, another process cannot interfere, so the update is safe. That reasoning is only partly true. A lock can answer who gets to write. It cannot answer what the file looks like if the writer stops halfway through. That distinction sits at the centre of a recent PHP security vulnerability, CVE-2026-126714. It affects PHP’s default, file-based session handler and turns an interrupted session write into something much more serious than a lost login state. The small assumption behind the big…

phpexcerpt only · body stays at the source
From the web
3

What’s new in PHP 8.6 (opens on the source site)

PHP 8.5 has brought us features such as the pipe operator, array_first(), array_last(), the URI extension, and the #[\NoDiscard] attribute. PHP 8.6 is shaping up to be another interesting release. It contains a mix of language improvements, new standard-library functions, better networking APIs, security improvements, and a few useful internal optimizations. It’s general availability is currently scheduled for November 19, 2026. So, it’s a good time to look at everything that has made it into PHP 8.6 so far. This article is based on the features currently listed in PHP’s implemented PHP 8.6…

phpexcerpt only · body stays at the source
From the web
4

Cloudflare deploys protections against php2shell vulnerability (opens on the source site)

Cloudflare has deployed default web application firewall (WAF) protections for newly disclosed PHP vulnerabilities before public disclosure. The rules use request and response signals to stop exploit attempts and prevent exposed data from reaching attackers.

managed-rulesphpexcerpt only · body stays at the source 13424 comments on HN (opens the discussion)
From the web
5

Find the slowest PHPUnit tests (opens on the source site)

We have a PHPUnit test suite that's taking a while, so I wanted to find out the which tests were taking the longest. With the help of Google, I discovered the --log-junit phpunit-results.xml command line option to phpunit which creates an XML file with the info I need. Running on Slim's codebase, we create the XML file with: $ ./vendor/bin/phpunit --log-junit phpunit-results.xml ... Tests: 436, Assertions: 832, PHPUnit Notices: 37. It looks like this (formatted… continue reading.

phpexcerpt only · body stays at the source
From the web
6

Why Carve markup Changes How You Author Rich Text in Shopware 6 (opens on the source site)

One Source, Ten Surfaces Every Shopware shop hits the same wall eventually. You need rich text somewhere the core doesn’t give you a WYSIWYG - a category landing blurb, a brand story on the manufacturer, a formatted paragraph inside a shipping mail - and you’re left with two bad options. Paste raw HTML into a…

phpcarveexcerpt only · body stays at the source
From the web
7

RFC 9116: security.txt for your PHP apps (opens on the source site)

… and how we automated it in CakePHP Most security incidents do not start with a genius attacker. They start with an honest person who found something and could not figure out how to tell you. If reporting a bug is harder than tweeting about it, you have quietly chosen public disclosure for them. At the same time AI makes […]

cakephpphpexcerpt only · body stays at the source
From the web
8
Rob Allenakrabat.com ↗

PHPStan custom rules (opens on the source site)

Recently I discovered that this code passed our PHPStan level 10 checks: use http\Exception\InvalidArgumentException; // ... throw new InvalidArgumentException; I was surprised as http\Exception\InvalidArgumentException is not a class in our system. While cooling, I discovered that there's an http PHP extension and it appears that PHPStan has a stub for this which means that it accepts it as existing even if it doesn't. What we think happened is that I wrote throw new InvalidArgumentException; and… continue reading.

phpexcerpt only · body stays at the source
From the web
12

6 Rules of thumb to build blazing fast web server applications (opens on the source site)

This post highlights 6 important rules to keep in mind when developing performant web applications: avoid premature optimization, do the minimum required work, defer non-critical tasks, leverage caching, avoid N+1 queries, and design for horizontal scaling. Following these guidelines will help you write efficient code from the start and build apps ready to handle growth.

phpsymfonyexcerpt only · body stays at the source
From the web
12 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.