44 points netol 1 hour ago 25 comments
beberlei 1 hour ago | parent
If the overhead can be further reduced (and people have ideas) then it could be that we only need ZTS mode anymore in the future and that can open up one avenue for PHP to get native async support similar to the existing parallel extension: https://github.com/krakjoe/parallel
More "hands-on" is the stream error handling improvements. This greatly improves the old file stream APIs to now allow throwing exceptions instead of returning false on errors:
$context = stream_context_create([
'stream' => [
'error_mode' => StreamErrorMode::Exception,
],
]);
try {
$config = file_get_contents('/etc/app/config.json', context: $context);
} catch (StreamException $e) {
// handle error
}skeledrew 57 minutes ago | parent
beberlei 35 minutes ago | parent
kijin 51 minutes ago | parent
The PHP team announced that they're going to release a critical fix between 14:00 and 14:30 UTC today. Doesn't say whether 8.6 is affected too, but the vulnerability is probably at the top of their mind right now -- even more so than the 8.6 release.
beberlei 37 minutes ago | parent
TimWolla 13 minutes ago | parent
faangguyindia 6 minutes ago | parent
zsoltkacsandi 47 minutes ago | parent
I started my career as a PHP developer, it was a popular language especially in web development and at web agencies, and the main reason was that it was relatively cheap to employ PHP devs.
Now with LLMs it is similarly cheap (if not cheaper) to write code in Go, Rust, or any performant languages that are much more sophisticated than PHP and have many other benefits. I don't see any reason anymore to start any new project in PHP.
Other than that this "borrow every single feature from other languages and add it to PHP" strategy is not really a good direction IMO.
ulimn 31 minutes ago | parent
ahofmann 30 minutes ago | parent
shevy-java 27 minutes ago | parent
TIOBE, while useless, has a trend (there it is somewhat useful; still overall useless, but not 100% useless):
https://www.tiobe.com/tiobe-index/php/
It shows two big hits, one in 2010, one in 2014. I myself switched to ruby in 2005. Ruby is now in a similar situation too. PHP is at rank #12, so that is still decent. I think it is declining only slowly though.
> Now with LLMs it is similarly cheap (if not cheaper) to write code in Go, Rust, or any performant languages that are much more sophisticated than PHP and have many other benefits. I don't see any reason anymore to start any new project in PHP.
Well, the problem with LLMs is that these users will become dependent on e. g. Anthropic, and Anthropic already showed it will censor at will, e. g. "you are not allowed to 3d print anything that looks like a gun" agenda.
I do not think LLMs are what killed PHP or will kill it. The language is simply poorly designed. Not all projects will become LLM though, this is the part I disagree with you. For instance wikipedia will not suddenly be rewritten in LLM-Rust.
Shish2k 15 minutes ago | parent
(Has the world bifurcated into "point & click configuration of proprietary web hosting like squarespace" for simple sites and "full kubernetes deployments" for more technical things, and nobody cares about entry-level deployment any more?)
abujazar 2 minutes ago | parent
Your career having moved on from CMS stuff in PHP is not really a good measure for what people actually need : )
vdanielpop 44 minutes ago | parent
Edit: Thank you for pointing out the `prefers-reduced-motion` media feature, I did not have that enabled.
PetahNZ 43 minutes ago | parent
TimWolla 41 minutes ago | parent
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
majestic5762 39 minutes ago | parent
- no RCE
origini 32 minutes ago | parent
shevy-java 30 minutes ago | parent
beberlei 25 minutes ago | parent
michh 11 minutes ago | parent