|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58046 Unrecognized value, if separated with <TAB>
Submitted: 2008-02-19 06:31 UTC Modified: 2009-03-03 20:31 UTC
From: giedrius at su dot lt Assigned: pajoye (profile)
Status: Closed Package: htscanner (PECL)
PHP Version: Irrelevant OS: Linux 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: giedrius at su dot lt
New email:
PHP Version: OS:


 [2008-02-19 06:31 UTC] giedrius at su dot lt
patch to fix:

*** htscanner.c 2008-02-19 13:25:07.000000000 +0200
--- 2008-02-19 13:21:39.000000000 +0200
*** 97,102 ****
--- 97,103 ----
   /* strip any leading whitespaces or tabs from the 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-24 19:53 UTC] dereks at realloc dot net
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.
 [2008-04-24 19:55 UTC] dereks at realloc dot net
Addendum to the above post: In my case the problem was due to many spaces (not a single TAB like the original submitter reported).
 [2009-03-03 20:31 UTC] pierre dot php at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Nov 27 09:03:13 2021 UTC