|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-09-01 17:30 UTC] m dot kurzyna at crystalpoint dot pl
Description:
------------
There is an error when parsing php_value arguments when value is separated from name w/o space. Offending code is:
htscanner.c(99):
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).
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
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 @@ PHP_HTSCANNER_LTRIM(name); value = strchr(name, ' '); + if(!value) value = strchr(name, '\t'); + if (value) { int len; *value = 0;