From:             trobinson at gksystems dot com
Operating system: Windows XP / IIS CGI
PHP version:      5.0.0b3 (beta3)
PHP Bug Type:     Scripting Engine problem
Bug description:  short_open_tag = Off  has no effect

Description:
------------
php.ini contains the line:
  short_open_tag = Off

phpinfo() reports that it is off.

Yet <? short tags are still being processed.

This causes problems for <?xml, forcing the ugly workaround.

Reproduce code:
---------------
The next line should never say "short_open_tag: 0"
<br>
<?   
echo 'short_open_tag: ', (int) ini_get('short_open_tag');
?>


Expected result:
----------------
===EITHER===

The next line should never say "short_open_tag: 0" 
short_open_tag: 1

(if short_open_tag = On)

===OR===

The next line should never say "short_open_tag: 0" 


(in this case, the <? echo ...?> is visible in Reveal Source, but the
browser correctly hides it.)


Actual result:
--------------
The next line should never say "short_open_tag: 0" 
short_open_tag: 0


-- 
Edit bug report at http://bugs.php.net/?id=26995&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26995&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26995&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26995&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26995&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26995&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26995&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26995&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26995&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26995&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26995&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26995&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26995&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26995&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26995&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26995&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26995&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26995&r=float

Reply via email to