]> granicus.if.org Git - php/commitdiff
MFH: Fix key length so params passed by array can be retrieved by getParameter()
authorRob Richards <rrichards@php.net>
Fri, 2 Sep 2005 06:38:02 +0000 (06:38 +0000)
committerRob Richards <rrichards@php.net>
Fri, 2 Sep 2005 06:38:02 +0000 (06:38 +0000)
ext/xsl/xsltprocessor.c

index 2e321312e89f02133a37355a20752bbad6d58318..bb18ed686f021937306cff0dee4615f6ec3a601c 100644 (file)
@@ -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;