summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2005-09-02 06:38:02 +0000
committerRob Richards <rrichards@php.net>2005-09-02 06:38:02 +0000
commit44840ace8ece5eb95fb5ad89e0a65680fa0ca3c5 (patch)
tree96f96630a013af6c1ac5c3640b59592b5bc185ea /ext
parenta4673bd7b77b63b7725837737036608852cbcbbe (diff)
downloadphp-git-44840ace8ece5eb95fb5ad89e0a65680fa0ca3c5.tar.gz
MFH: Fix key length so params passed by array can be retrieved by getParameter()
Diffstat (limited to 'ext')
-rw-r--r--ext/xsl/xsltprocessor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c
index 2e321312e8..bb18ed686f 100644
--- a/ext/xsl/xsltprocessor.c
+++ b/ext/xsl/xsltprocessor.c
@@ -614,7 +614,7 @@ PHP_FUNCTION(xsl_xsltprocessor_set_parameter)
ZVAL_ADDREF(*entry);
COPY_PZVAL_TO_ZVAL(*new_string, *entry);
- zend_hash_update(intern->parameter, string_key, string_key_len + 1, &new_string, sizeof(zval*), NULL);
+ zend_hash_update(intern->parameter, string_key, string_key_len, &new_string, sizeof(zval*), NULL);
zend_hash_move_forward(Z_ARRVAL_P(array_value));
}
RETURN_TRUE;