Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5660 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71396 invoked by uid 1010); 22 Nov 2003 05:55:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71361 invoked from network); 22 Nov 2003 05:55:56 -0000 Received: from unknown (HELO mail.kromann.info) (64.186.239.125) by pb1.pair.com with SMTP; 22 Nov 2003 05:55:56 -0000 Received: from Swwwing2000 (unknown [64.186.239.115]) by mail.kromann.info (Postfix) with SMTP id E91642AF79; Fri, 21 Nov 2003 22:13:28 -0800 (PST) To: Moriyoshi Koizumi Cc: Steph , internals , Derick Rethans X-Mailer: Swwwing 2000 Message-ID: <10694804745120000@9866357972520000.9866341568840000> MIME-Version: 1.0 Reply-To: "Frank M. Kromann" Date: Fri, 21 Nov 2003 21:54:34 -0800 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] fixes #26194 From: frank@kromann.info ("Frank M. Kromann") A possible fix: diff -u -r1.97 iconv.c --- iconv.c 2 Nov 2003 18:54:08 -0000 1.97 +++ iconv.c 22 Nov 2003 05:51:27 -0000 @@ -60,6 +60,7 @@ /* {{{ iconv_functions[] */ +#undef iconv function_entry iconv_functions[] = { PHP_NAMED_FE(iconv,php_if_iconv, NULL) PHP_FE(ob_iconv_handler, NULL) @@ -73,6 +74,7 @@ PHP_FE(iconv_mime_decode, NULL) {NULL, NULL, NULL} }; +#define iconv libiconv /* }}} */ /* {{{ iconv_module_entry - Frank > > On 2003/11/22, at 6:30, Derick Rethans wrote: > > > On Fri, 21 Nov 2003, Steph wrote: > > > >> Works on my box (no idea how sane this is, or what it may break on > >> other > >> systems, please handle like barbed wire). > > > > I think I know why this might happen... perhaps "iconv" is defined as > > macro on windhoos. Can you please see if get_defined_functions() does > > something weird? (Tip: only load the iconv ext other wise there are too > > many funcs in the output). > > I don't think this is Windows specific issue. From my experience, this > might be caused by random heap corruption. (most likely spotted in > another extension) And there's never been a macro like "iconv" or > whatever > in the standard MS C library. > > Moriyoshi > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >