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

The behaviour you report is what we would expect with short_open_tag =
Off in your php.ini.  For your short-tags example, you need
short_open_tag = On.  Please check your configuration with <?php
phpinfo() ?>


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

[2006-11-16 01:29:44] dereks at x-no-archive dot co dot uk

That was quick.  However: this is new behaviour; this did not happen in
4.x.  Perhaps it is "bogus" but "short_tag_open = On" doesn't really
explain the change.  Can you elucidate?

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

[2006-11-15 22:52:12] [EMAIL PROTECTED]

short_open_tag = On

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

[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