php-general Digest 8 Sep 2010 02:41:53 -0000 Issue 6929

Topics (messages 307879 through 307881):

Re: workflow system design
        307879 by: David Hutto
        307880 by: David Hutto

logical AND assignments
        307881 by: Robert E. Glaser

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
On Tue, Sep 7, 2010 at 8:39 AM, Jay Blanchard <[email protected]> wrote:
> [snip]
> Hi, i know it is not the right place, but, does anybody know a workflow
> system development process? or methodology?
> thanks!
> [/snip]

http://en.wikipedia.org/wiki/Workflow

--- End Message ---
--- Begin Message ---
On Tue, Sep 7, 2010 at 8:39 AM, Jay Blanchard <[email protected]> wrote:
> [snip]
> Hi, i know it is not the right place, but, does anybody know a workflow
> system development process? or methodology?
> thanks!
> [/snip]

http://en.wikipedia.org/wiki/Workflow

--- End Message ---
--- Begin Message ---
My ISP upgraded his server from Ubuntu 9.04 to Ubuntu 9.10, which
probably included a newer PHP version.  I don't know what PHP version
was on previously.  Code I've had running for years broke, and I tracked
it down to this equivalent:

<?php

echo 'Current PHP version: ', phpversion(), "<br><br>";

$Condition0 = true and false;
If ($Condition0)
        echo "Condition0<br>";
        else echo "Not Condition0<br>";

$Condition1 = false and true;
If ($Condition1)
        echo "Condition1<br>";
        else echo "Not Condition1<br>";

$Condition2 = (true and false);
If ($Condition2)
        echo "Condition2<br>";
        else echo "Not Condition2<br>";

$Condition3 = true && false;
If ($Condition3)
        echo "Condition3<br>";
        else echo "Not Condition3<br>";

$Condition4 = (true && false);
If ($Condition4)
        echo "Condition4<br>";
        else echo "Not Condition4<br>";
?>

which returns:

Current PHP version: 5.2.10-2ubuntu6.4

Condition0
Not Condition1
Not Condition2
Not Condition3
Not Condition4

===============================

I added parentheses around the offending line of code and it seems okay
now.  But I am stymied as to why they're required at all.  They never
were before, and as far as I see there is no PHP requirement to include
the parentheses.  Have I done something silly?  Mostly I'm worried if
there are any other changes I need to make.  I searched my code and
hopefully found all similar instances, but who really knows about those
kinds of things?

Any comments?

---Robert


--- End Message ---

Reply via email to