rrichards Fri Sep 2 02:38:02 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/xsl xsltprocessor.c Log: MFH: Fix key length so params passed by array can be retrieved by getParameter() http://cvs.php.net/diff.php/php-src/ext/xsl/xsltprocessor.c?r1=1.39&r2=1.39.2.1&ty=u Index: php-src/ext/xsl/xsltprocessor.c diff -u php-src/ext/xsl/xsltprocessor.c:1.39 php-src/ext/xsl/xsltprocessor.c:1.39.2.1 --- php-src/ext/xsl/xsltprocessor.c:1.39 Wed Aug 3 10:08:23 2005 +++ php-src/ext/xsl/xsltprocessor.c Fri Sep 2 02:38:02 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xsltprocessor.c,v 1.39 2005/08/03 14:08:23 sniper Exp $ */ +/* $Id: xsltprocessor.c,v 1.39.2.1 2005/09/02 06:38:02 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -614,7 +614,7 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php