ID:               26995
 User updated by:  trobinson at gksystems dot com
 Reported By:      trobinson at gksystems dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP / IIS CGI
 PHP Version:      5.0.0b3 (beta3)
 New Comment:

var_dump(ini_get('short_open_tag'))

with short_open_tag = Off:

  string(0) ""

with short_open_tag = On:

  string(1) "1"


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

[2004-01-21 15:01:26] [EMAIL PROTECTED]

what does var_dump(ini_get('short_open_tag')) say? 

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

[2004-01-21 14:58:11] trobinson at gksystems dot com

phpinfo() reports the correct php.ini file.
However, regardless of php.ini setting, the following line should NEVER
outout 0. It should either outout 1 or it should not execute at all.

<?= (int) ini_get('short_open_tag') ?>

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

[2004-01-21 14:52:37] [EMAIL PROTECTED]

Please check from phpinfo() output that you're loading the correct
php.ini file.


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

[2004-01-21 12:38:56] trobinson at gksystems dot com

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 this bug report at http://bugs.php.net/?id=26995&edit=1

Reply via email to