Re: typo in zend_API.h (add_index_ascii_string)

From: Date: Wed, 15 Nov 2006 22:50:43 +0000
Subject: Re: typo in zend_API.h (add_index_ascii_string)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26637@lists.php.net to get a copy of this message
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

« previous php.internals (#26637) next »