summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2005-09-02 06:37:29 +0000
committerRob Richards <rrichards@php.net>2005-09-02 06:37:29 +0000
commitacfde98e6e126d780fb586d8aa29aee3d562d840 (patch)
tree29eb1be11ca0ac1906b19d4ccaf5d1d3f1a4df18
parentdf01d7678ac00164f1a068ef8de2a3ba5c4e598f (diff)
downloadphp-git-acfde98e6e126d780fb586d8aa29aee3d562d840.tar.gz
Fix key length so params passed by array can be retrieved by getParameter()
-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 48bc2494f1..3427093219 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;