Php4 to Php5 problems summary?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chuck Anderson

    #1

    Php4 to Php5 problems summary?

    My remote hosting service just upgraded to Php 5. I believe that this
    is the cause of one minor error that I have encountered. This line:
    <?= // isset($_SESSION['some_var'])?'Disable':'En able' ?>

    now produces the following error:
    Parse error: parse error, unexpected ';' in
    /home/abasama/public_html/demo_enable.php on line 114

    [I know it's ugly, but I commented out that line in case I want to reuse
    it in the future.]

    I've also tried changing it to
    <?php echo // isset($_SESSION['abas_demo'])?'Disable':'En able' ?>
    and I get the same error.

    I don't really care whether I can leave that line as it is or not, but
    it got me to wondering what other things might now be broken.

    Is there a summary of any sort that would help me know what I should be
    looking for as far as broken functionality after upgrading to Php5?

    --
    *************** **************
    Chuck Anderson • Boulder, CO

    Integrity is obvious.
    The lack of it is common.
    *************** **************
  • Juliette

    #2
    Re: Php4 to Php5 problems summary?

    Chuck Anderson wrote:[color=blue]
    > My remote hosting service just upgraded to Php 5. I believe that this
    > is the cause of one minor error that I have encountered. This line:
    > <?= // isset($_SESSION['some_var'])?'Disable':'En able' ?>
    >
    > now produces the following error:
    > Parse error: parse error, unexpected ';' in
    > /home/abasama/public_html/demo_enable.php on line 114
    >
    > [I know it's ugly, but I commented out that line in case I want to reuse
    > it in the future.]
    >
    > I've also tried changing it to
    > <?php echo // isset($_SESSION['abas_demo'])?'Disable':'En able' ?>
    > and I get the same error.
    >
    > I don't really care whether I can leave that line as it is or not, but
    > it got me to wondering what other things might now be broken.
    >
    > Is there a summary of any sort that would help me know what I should be
    > looking for as far as broken functionality after upgrading to Php5?
    >[/color]

    Have you tried:
    <?php //echo isset($_SESSION['abas_demo'])?'Disable':'En able'; ?>

    Correct code should help ;-)

    Considering the 'what's changed' listing: have a look here:
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

    Comment

    Working...