Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8957

Re: Have I been staring at the screen too long?

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php
Subject Re: Have I been staring at the screen too long?
Date 2013-04-06 17:50 +0200
Message-ID <asauj3Fjg5mU1@mid.uni-berlin.de> (permalink)
References <72pul85s8q79k1m99mkblm7pfq2tdd7vku@4ax.com>

Show all headers | View raw


Am 06.04.2013 03:20, schrieb Richard Yates:
> I ran across this line that is apparently generated by Dreamweaver
> CS4's function for checking authorization for page access. Doesn't the
> content of the 'if' clause ALWAYS evaluate to false regardless of the
> value of $strUsers? 
> 
>     if (($strUsers == "") && false) { $isValid = true; } 
> 
> If so, is there some obscure purpose anyone can think of for this
> line?

Yes, ($b && false) is always false, ($b || false) is always $b.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Have I been staring at the screen too long? Richard Yates <richard@yatesguitar.com> - 2013-04-05 18:20 -0700
  Re: Have I been staring at the screen too long? Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-05 22:04 -0400
  Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 06:22 -0700
  Re: Have I been staring at the screen too long? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-04-06 17:50 +0200
    Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 09:27 -0700
      Re: Have I been staring at the screen too long? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-06 19:58 +0100
        Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 15:02 -0700
  Re: Have I been staring at the screen too long? Scott Johnson <noonehome@chalupasworld.com> - 2013-04-06 09:36 -0700
  Re: Have I been staring at the screen too long? mirceatanasie94@gmail.com - 2013-04-11 03:57 -0700

csiph-web