#17234 [Com]: setting short_open_tag in .htaccess does nothing
| From: | darren at dzr-web dot com | Date: | Thu, 11 Mar 2004 03:32:54 +0000 |
| Subject: | #17234 [Com]: setting short_open_tag in .htaccess does nothing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56276@lists.php.net to get a copy of this message | ||
ID: 17234
Comment by: darren at dzr-web dot com
Reported By: php at rawhide dot cjb dot net
Status: No Feedback
Bug Type: Apache2 related
Operating System: Windows XP
PHP Version: 4.2.1
New Comment:
On Red Hat Linux 9, with Apache 2.0.40 and PHP 4.2.2, attempting to
change short_open_tag from .htaccess also fails. I've tried both:
php_value short_open_tag Off
and
php_flag short_open_tag Off
and neither has any effect. Changing the value in /etc/php.ini does.
I'm not sure which version number PHP was at when comment #8 below was
posted, suggesting that a recent CVS version be tested, but I am
guessing that 4.2.2 postdates that. This is precisely what I have
installed:
httpd-2.0.40-21.9
httpd-devel-2.0.40-21.9
httpd-manual-2.0.40-21.9
php-4.2.2-17.2
php-devel-4.2.2-17.2
php-imap-4.2.2-17.2
php-ldap-4.2.2-17.2
php-manual-4.2.2-17.2
php-mysql-4.2.2-17.2
php-odbc-4.2.2-17.2
php-pgsql-4.2.2-17.2
php-snmp-4.2.2-17.2
Previous Comments:
------------------------------------------------------------------------
[2002-10-08 21:39:45] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2002-09-16 10:34:36] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-09-05 11:35:08] gbenson at redhat dot com
I'm seeing this problem too, and it only seems to effect
short_open_tag. In my setup, /etc/php.ini says:
register_globals = Off
short_open_tag = Off
and I have the following in a file which is included by httpd.conf:
<Directory /foo/bar/baz>
php_value register_globals 1
php_value short_open_tag 1
</Directory>
A phpinfo() in /foo/bar/baz/phpinfo.php says:
Directive Local value Global value
register_globals On Off
short_open_tag Off Off
ie, php_value worked for register_globals but not for short_open_tag.
------------------------------------------------------------------------
[2002-05-17 03:45:39] jwoolley@php.net
That last problem you mentioned ("Invalid command 'php_flag'") is fixed
in CVS, just so you know.
------------------------------------------------------------------------
[2002-05-15 19:28:19] php at rawhide dot cjb dot net
Error message:
<directory>/.htaccess: Invalid command 'php_flag', perhaps mis-spelled
or defined by a module not included in the server configuration.
This isn't bogus yet.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17234
--
Edit this bug report at http://bugs.php.net/?id=17234&edit=1