Article View: comp.os.vms
Article #229Re: More PHP vulnerabilities
From: Arne Vajhøj
Date: Sat, 21 Nov 2026 22:49
Date: Sat, 21 Nov 2026 22:49
34 lines
1824 bytes
1824 bytes
On 11/21/2026 5:32 PM, Arne Vajhøj wrote:
> PHP & &&
> | ||
> and(**)
> or(**)
> **) do not use ever
And in case somebody wonder.
$ php crazy.php
False
True
True False
$ clean
$ type crazy.php
<?php
$a = True;
$b = False;
$c = $a && $b;
echo sprintf("%s\n", $c ? 'True' : 'False');
$c = $a and $b;
echo sprintf("%s\n", $c ? 'True' : 'False');
$c2 = ($c1 = $a and $b);
echo sprintf("%s %s\n", $c1 ? 'True' : 'False', $c2 ? 'True' : 'False');
?>
$ php crazy.php
False
True
True False
Arne
Technical Details
Message-ID:
<6b021fda$0$675$14726298@news.sunsite.dk>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mailReferences:
<11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> <6b021bab$0$672$14726298@news.sunsite.dk>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Sat, 21 Nov 2026 17:49:52 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: More PHP vulnerabilities Newsgroups: comp.os.vms References: <11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> <6b021bab$0$672$14726298@news.sunsite.dk> Content-Language: en-US From: Arne Vajhøj <arne@vajhoej.dk> In-Reply-To: <6b021bab$0$672$14726298@news.sunsite.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 34 Message-ID: <6b021fda$0$675$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: cd9240ab.news.sunsite.dk X-Trace: 1795301338 news.sunsite.dk 675 arne@vajhoej.dk/70.172.216.99:51736 X-Complaints-To: staff@sunsite.dk