|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-02-19 06:31 UTC] giedrius at su dot lt
Description:
------------
patch to fix:
*** htscanner.c 2008-02-19 13:25:07.000000000 +0200
--- htscanner.c.new 2008-02-19 13:21:39.000000000 +0200
***************
*** 97,102 ****
--- 97,103 ----
/* strip any leading whitespaces or tabs from the name */
PHP_HTSCANNER_LTRIM(name);
value = strchr(name, ' ');
+ if (!value) value = strchr(name,'\t');
if (value) {
int len;
Reproduce code:
---------------
in .htaccess:
php_value<TAB or whitespace>short_open_tag<TAB>Off
Expected result:
----------------
turn off <? tags into <?php
Actual result:
--------------
value unrecognized/ignored
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
Confirmed, I have a very similar issue on Ubuntu 7.10. I have this line in my .htaccess file: php_flag short_open_tag On If I do a phpinfo(); under that dir, it shows that short_open_tag is "Off", instead of "On". If I put a single space, like this, then it works fine: php_flag short_open_tag On But one thing to note is that my server-wide default for short_open_tag is "On". The extra spaces causes htscanner to actually set the WRONG value (Off) instead of just ignoring it and keeping the server-wide default of "On". Thanks for your work on htscanner. It is very useful for me.