🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #235

Re: More PHP vulnerabilities

#235
From: Arne Vajhøj
Date: Sun, 22 Nov 2026 01:55
27 lines
2176 bytes
On 11/21/2026 8:47 PM, Lawrence D’Oliveiro wrote:
> On Sat, 21 Nov 2026 20:25:26 -0500, Arne Vajhøj wrote:
> 
>> Java has both bitwise & and | on integer types and logical & and |
>> on booleans.
>>
>> In C and Python bool are sort of an int so bitwise and logical are
>> the same.
> 
> Python treats bool as a subclass of int. (Yes, you can subclass int.)
> 
> Java tries to treat them as entirely separate types, which is not
> necessarily a bad thing on its own,

We are some that like type safety.

:-)

>                                     but then it doesn’t provide
> natural conversions between them. Like being able to use bool for
> indexing arrays, just for example.

It would have to be a[bv ? 1 : 0] or use a Map<Boolean,X> instead
of X[].

Arne
Technical Details
Message-ID: <11dti17$javf$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11dnpep$2kvk6$2@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> <6b021bab$0$672$14726298@news.sunsite.dk> <11dtb70$t8$1@reader2.panix.com> <11dtg8h$isan$1@dont-email.me> <11dthk0$j30q$3@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Arne Vajhøj <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: More PHP vulnerabilities
Date: Sat, 21 Nov 2026 20:55:41 -0500
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <11dti17$javf$1@dont-email.me>
References: <11dnpep$2kvk6$2@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me>
 <11dqa7g$3guqc$1@dont-email.me> <6b021bab$0$672$14726298@news.sunsite.dk>
 <11dtb70$t8$1@reader2.panix.com> <11dtg8h$isan$1@dont-email.me>
 <11dthk0$j30q$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 22 Nov 2026 01:54:48 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="633839"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19H7yUGBRnidcDSZJsBb7O+Ob5iUPmAll4="; posting-host="82db7eb1b2e9e4e1ea30d8c5f66f37dc"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZY2ePYODL39OZr9VUxt3+NpfF9E= sha256:322jF3r2dY2DaJVunSn1i0w+yy5Q8WPW9g/3XltXxYU=
	sha1:ZF4MP4z5LAkxG2NG0cCZLGTOmXg= sha256:SHXv7CGDn2WJyQVvRTTdd8PYnTAgj2HqCwrTWNQIJe8=
In-Reply-To: <11dthk0$j30q$3@dont-email.me>
Content-Language: en-US