#39098 [NEW]: parser bug: dash after if condition makes script crash without any error

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #39098 [NEW]: parser bug: dash after if condition makes script crash without any error

    From: michael dot axt at mindcox dot com
    Operating system: Linux x86-64Bit
    PHP version: 5.1.6
    PHP Bug Type: Scripting Engine problem
    Bug description: parser bug: dash after if condition makes script crash without any error

    Description:
    ------------
    If there is a dash after the right parenthesis, php crashes without any
    error or notices. Apache delivers an empty page with http status 200.

    This issue occurs only within the 64-bit version.

    Reproduce code:
    ---------------
    <?php
    $test = true;
    if ($test)-
    {
    echo "true";
    }
    echo "done";

    Expected result:
    ----------------
    Parse error: syntax error, unexpected..... bla bla as it is on most other
    php versions :-)


    --
    Edit bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39098&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39098&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39098&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39098&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39098&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39098&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39098&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39098&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39098&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39098&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39098&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39098&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39098&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39098&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39098&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39098&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39098&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39098&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39098&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39098&r=mysqlcfg[/url]
    michael dot axt at mindcox dot com Guest

  2. Similar Questions and Discussions

    1. Flash9.ocx makes IE7 Final Crash!
      Lots of times I play a streaming video at this site http://media.games.ign.com/articles/693/693580/vid_1719332.html and Flash9.oxc crashes IE7! ...
    2. #26171 [Opn->Fbk]: using /(a)+/ to match a long string makes php crash
      ID: 26171 Updated by: iliaa@php.net Reported By: xuefer at 21cn dot com -Status: Open +Status: ...
    3. #26171 [NEW]: using /(a)+/ to match a long string makes php crash
      From: xuefer at 21cn dot com Operating system: win PHP version: 4.3.4 PHP Bug Type: PCRE related Bug description: using...
    4. #9719 [Com]: Dash in URL causing CGI Error to be reported
      ID: 9719 Comment by: porantim at hotmail dot com Reported By: bradmiller at accesszone dot com Status: Closed...
    5. #22231 [Com]: PHP makes Apache crash
      ID: 22231 Comment by: mail at dooley dot cjb dot net Reported By: henrik dot gebauer at web dot de Status: ...
  3. #2

    Default #39098 [Opn->Fbk]: parser bug: dash after if condition makes script crash without any error

    ID: 39098
    Updated by: [email]pajoye@php.net[/email]
    Reported By: michael dot axt at mindcox dot com
    -Status: Open
    +Status: Feedback
    Bug Type: Scripting Engine problem
    Operating System: Linux x86-64Bit
    PHP Version: 5.1.6
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]




    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-09 16:17:05] michael dot axt at mindcox dot com

    Description:
    ------------
    If there is a dash after the right parenthesis, php crashes without any
    error or notices. Apache delivers an empty page with http status 200.

    This issue occurs only within the 64-bit version.

    Reproduce code:
    ---------------
    <?php
    $test = true;
    if ($test)-
    {
    echo "true";
    }
    echo "done";

    Expected result:
    ----------------
    Parse error: syntax error, unexpected..... bla bla as it is on most
    other php versions :-)



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
    pajoye@php.net Guest

  4. #3

    Default #39098 [Fbk->Bgs]: parser bug: dash after if condition makes script crash without any error

    ID: 39098
    Updated by: [email]tony2001@php.net[/email]
    Reported By: michael dot axt at mindcox dot com
    -Status: Feedback
    +Status: Bogus
    Bug Type: Scripting Engine problem
    Operating System: Linux x86-64Bit
    PHP Version: 5.1.6
    New Comment:

    Parse error: syntax error, unexpected '{' in /tmp/3.php on line 4

    To see the errors you should have display_errors enabled.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-09 16:25:42] [email]pajoye@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-09 16:17:05] michael dot axt at mindcox dot com

    Description:
    ------------
    If there is a dash after the right parenthesis, php crashes without any
    error or notices. Apache delivers an empty page with http status 200.

    This issue occurs only within the 64-bit version.

    Reproduce code:
    ---------------
    <?php
    $test = true;
    if ($test)-
    {
    echo "true";
    }
    echo "done";

    Expected result:
    ----------------
    Parse error: syntax error, unexpected..... bla bla as it is on most
    other php versions :-)



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
    tony2001@php.net Guest

  5. #4

    Default #39098 [Bgs]: parser bug: dash after if condition makes script crash without any error

    ID: 39098
    User updated by: michael dot axt at mindcox dot com
    Reported By: michael dot axt at mindcox dot com
    Status: Bogus
    Bug Type: Scripting Engine problem
    Operating System: Linux x86-64Bit
    PHP Version: 5.1.6
    New Comment:

    Error-Reporting is switched on - completely incl. strict's

    I tried the code on a 5.1.6 32-Bit php. The error occurs only on the
    64-Bit php.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-09 17:21:52] [email]tony2001@php.net[/email]

    Parse error: syntax error, unexpected '{' in /tmp/3.php on line 4

    To see the errors you should have display_errors enabled.

    ------------------------------------------------------------------------

    [2006-10-09 16:25:42] [email]pajoye@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-09 16:17:05] michael dot axt at mindcox dot com

    Description:
    ------------
    If there is a dash after the right parenthesis, php crashes without any
    error or notices. Apache delivers an empty page with http status 200.

    This issue occurs only within the 64-bit version.

    Reproduce code:
    ---------------
    <?php
    $test = true;
    if ($test)-
    {
    echo "true";
    }
    echo "done";

    Expected result:
    ----------------
    Parse error: syntax error, unexpected..... bla bla as it is on most
    other php versions :-)



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39098&edit=1[/url]
    michael dot axt at mindcox dot com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139