rrichards Fri Sep 2 02:37:33 2005 EDT
Modified files:
/php-src/ext/xsl xsltprocessor.c
Log:
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.41&r2=1.42&ty=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.41
php-src/ext/xsl/xsltprocessor.c:1.42
--- php-src/ext/xsl/xsltprocessor.c:1.41 Mon Aug 22 10:16:07 2005
+++ php-src/ext/xsl/xsltprocessor.c Fri Sep 2 02:37:29 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: xsltprocessor.c,v 1.41 2005/08/22 14:16:07 derick Exp $ */
+/* $Id: xsltprocessor.c,v 1.42 2005/09/02 06:37:29 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