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

index 48bc2494f1a055b5f6c41630b06dfd852d153628..342709321930e81632060d9afeab19d58296d7e4 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;