🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #108

Re: PHP "Features"

#108
From: Simon Clubley
Date: Tue, 27 Oct 2026 19:49
31 lines
2350 bytes
On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote:
> On Sat, 24 Oct 2026 20:45:24 -0400, Arne Vajhøj wrote:
>
>>> https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
>>
>> I am not sure whether to laugh or cry.
>
> Discussing the PHP bug on another forum, another commenter offered
> this little gem:
>
>     $a = INF;
>     $b = [];
>     $c = (object)[];
>
>     var_dump($a < $b); // true, as INF is less than an array
>     var_dump($b < $c); // true, as an array is less than an object
>     var_dump($c < $a); // true, as an object is less than INF
>
> Is there such a thing as a ?rock-paper-scissors? sorting algorithm?
> Seems like PHP has it ...

Now do Javascript...

Simon.

PS: IOW, why are the most popular web languages (both client and server-side)
so bloody insanely bad ? :-(

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
Technical Details
Message-ID: <11bqv7e$1pp8h$4@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bipfv$190$1@reader2.panix.com> <11bjjen$36tte$1@dont-email.me> <11bjmaa$37lkk$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Newsgroups: comp.os.vms
Subject: Re: PHP "Features"
Date: Tue, 27 Oct 2026 19:49:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <11bqv7e$1pp8h$4@dont-email.me>
References: <11bcbi1$k068$1@dont-email.me> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bipfv$190$1@reader2.panix.com> <11bjjen$36tte$1@dont-email.me> <11bjmaa$37lkk$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 27 Oct 2026 19:49:04 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1893649"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18/LHftUFvqO08/vsiEhlKUgseITWdZs5s="; posting-host="48c1c04ddf2ba655a81fa26d5f7ef3f5"
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:tENs1AOGEeKvJwLIR+/tCSPIvlw= sha256:SnGwsT2e1Cdr+Ip2hIzAF/c+hmywm068O4ltaB8Vu0c=
	sha1:rUa3HZcp+gfqiyGzCyxqqYHwZNI= sha256:LlFBFtyu9s1mxt7US9AQyBHF1gEHYVIG3pADtFGZp64=