Article View: comp.os.vms
Article #91Re: PHP "Features"
From: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 01:34
Date: Sun, 25 Oct 2026 01:34
19 lines
1936 bytes
1936 bytes
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 ...
Technical Details
Message-ID:
<11bjmaa$37lkk$2@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-mailReferences:
<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>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: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.os.vms Subject: Re: PHP "Features" Date: Sun, 25 Oct 2026 01:34:03 -0000 (UTC) Organization: A noiseless patient Spider Lines: 19 Message-ID: <11bjmaa$37lkk$2@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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 25 Oct 2026 01:34:04 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3397268"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YFcE/Fz21SdYeZkE/1nfe"; posting-host="32bd69598bcd50cf5db5aab45470abe4" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:DltRf5vlRjLuFaLLxKtmbNBkzco= sha256:6Lu/84y0cmJnfSW3MohU4ial1H8FBeRcd+X5L7SL5Bg= sha1:9inPp41CDfp3IR/XqbFuNrgoEtk= sha256:GHwI3ScTwp164QSXU04OTTm08LvJSbR7uIrRF2Aw7kg=