ID:               39526
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dereks at x-no-archive dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Win XP Pro SP2
 PHP Version:      5.2.0
 New Comment:

short_open_tag = On


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

[2006-11-15 22:44:28] dereks at x-no-archive dot co dot uk

Description:
------------
This might be something I've got wrong, but in PHP5 it appears that if
you use the shorthand <? to start a php script, if you have a > sign
anywhere before the closing ?>, PHP escapes and starts processing the
rest of the script as HTML as if ?>; has been entered.

This didn't happen in 4.x, and feels like a bug rather than a feature.

This is with PHP Windows NT 5.1.6 build 2600, dated Aug 23 2006
16:31:18.  I would have upgraded in order to retest, but am unable to
due to client's requirements.

Reproduce code:
---------------
<?

/*
 *  test break out of php with greater than sign
 *
 */
function somefunction($x) {
  if ($x > 100) {
    do_something();
  }
}
?>



Expected result:
----------------
Running this script on it's own should produce no output.

Actual result:
--------------
Actual output is:

100) { do_something(); } } ?>




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


-- 
Edit this bug report at http://bugs.php.net/?id=39526&edit=1

Reply via email to