cvs: php-src /ext/xsl xsltprocessor.c
| From: | Rob Richards | Date: | Fri, 02 Sep 2005 06:37:33 +0000 |
| Subject: | cvs: php-src /ext/xsl xsltprocessor.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33751@lists.php.net to get a copy of this message | ||
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;