#26995 [Opn->Fbk]: short_open_tag = Off has no effect

From: Date: Wed, 21 Jan 2004 19:52:38 +0000
Subject: #26995 [Opn->Fbk]: short_open_tag = Off has no effect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53721@lists.php.net to get a copy of this message
ID: 26995 Updated by: sniper@php.net Reported By: trobinson at gksystems dot com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows XP / IIS CGI PHP Version: 5.0.0b3 (beta3) New Comment: Please check from phpinfo() output that you're loading the correct php.ini file. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#53721) next »