|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57820 Error in value_hnd() parsing algorithm
Submitted: 2007-09-01 17:30 UTC Modified: 2009-03-03 20:30 UTC
From: m dot kurzyna at crystalpoint dot pl Assigned: pajoye (profile)
Status: Closed Package: htscanner (PECL)
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: m dot kurzyna at crystalpoint dot pl
New email:
PHP Version: OS:


 [2007-09-01 17:30 UTC] m dot kurzyna at crystalpoint dot pl
There is an error when parsing php_value arguments when value is separated from name w/o space. Offending code is:


value = strchr(name, ' ');
if (value) { ... }

Reproduce code:
php_value variable_name\tvalue

Expected result:
variable_name set to value

Actual result:
variable_name ignored as value is null (no space between variable_name and value; only tabs).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-01 17:39 UTC] m dot kurzyna at crystalpoint dot pl
Quick & dirty hack is to:

diff -urN htscanner-0.8.1-2/htscanner.c hts-m/htscanner.c
--- htscanner-0.8.1-2/htscanner.c       2007-03-23 12:31:59.000000000 +0100
+++ hts-m/htscanner.c   2007-09-01 23:32:12.757352258 +0200
@@ -98,6 +98,8 @@
        value = strchr(name, ' ');

+       if(!value) value = strchr(name, '\t');
        if (value) {
                int len;
                *value = 0;
 [2009-03-03 20:30 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-2020 The PHP Group
All rights reserved.
Last updated: Sat Sep 26 03:01:23 2020 UTC