zlacker

[return to "PHP 8.2"]
1. user39+j7[view] [source] 2022-12-08 13:16:18
>>TimWol+(OP)
The worst part about PHP is constantly hearing from its detractors, who are often people who haven’t used the language in many years. Haystack needle order, $, fractal of bad design, it just gets old.

The language isn’t perfect but I love working with it, these 8.1 and 8.2 improvements have really made it sweet.

My biggest gripe at the moment is the (very old) behavior of e.g. preg_match() and sort(). You’ve got a small handful of these common functions that operate on their input by reference/in place which is gross. A new version of these would be welcome.

◧◩
2. nathel+ja[view] [source] 2022-12-08 13:38:17
>>user39+j7
Is there still a php.ini that allows you to alter the language’s semantics? To me, that’s the biggest can of worms that PHP used to have. I haven’t touched it in years, so am not up to date.
◧◩◪
3. nolok+oc[view] [source] 2022-12-08 13:48:53
>>nathel+ja
Not really. You have a php.ini that can configure some behavior, but most of what was horrible is either deprecated or straight up removed (register globals, ...)
◧◩◪◨
4. lazka+1m[view] [source] 2022-12-08 14:55:01
>>nolok+oc
assert() is still broken if it's disabled in php.ini.
◧◩◪◨⬒
5. nolok+l21[view] [source] 2022-12-08 18:12:35
>>lazka+1m
I mean yes php.ini allows you to disable any function you want, and if you do that then this function doesn't work like expected, I can hardly blame php for that.
◧◩◪◨⬒⬓
6. hakre+xF6[view] [source] 2022-12-10 14:08:50
>>nolok+l21
Yes, that's fully true, but does specifically assert() falls into that category?
[go to top]