Fixed, thanks.

On 11/16/2006 01:41 AM, Michael Wallner wrote:
There, length should be assigned to ___u_len.

Regards,


------------------------------------------------------------------------

Index: Zend/zend_API.h
===================================================================
RCS file: /repository/ZendEngine2/zend_API.h,v
retrieving revision 1.268
diff -u -p -d -r1.268 zend_API.h
--- Zend/zend_API.h     27 Oct 2006 21:22:05 -0000      1.268
+++ Zend/zend_API.h     15 Nov 2006 22:38:21 -0000
@@ -1252,7 +1252,7 @@ ZEND_API int add_index_zval(zval *arg, u
#define add_index_ascii_stringl(arg, idx, str, length, flags) do { \
                if (UG(unicode)) { \
-                       int ___u_len; \
+                       int ___u_len = length; \
                        UChar *___u_str = zend_ascii_to_unicode((str), 
(___u_len)+1 ZEND_FILE_LINE_CC); \
                        if ((flags) & ZSTR_AUTOFREE) { \
                                efree(str); \




--
Wbr, Antony Dovgal

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to