Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57724 invoked by uid 1010); 15 Nov 2006 22:40:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57709 invoked from network); 15 Nov 2006 22:40:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2006 22:40:33 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from [80.123.98.46] ([80.123.98.46:2018] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/DD-53553-0679B554 for ; Wed, 15 Nov 2006 17:40:33 -0500 Message-ID: To: internals@lists.php.net Date: Wed, 15 Nov 2006 23:41:26 +0100 User-Agent: Thunderbird 1.5.0.7 (X11/20060918) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050205020404010607040100" X-Posted-By: 80.123.98.46 Subject: typo in zend_API.h (add_index_ascii_string) From: mike@php.net (Michael Wallner) --------------050205020404010607040100 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit There, length should be assigned to ___u_len. Regards, -- Michael --------------050205020404010607040100 Content-Type: text/plain; name="diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff.txt" 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); \ --------------050205020404010607040100--