Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49895 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59944 invoked from network); 11 Oct 2010 10:02:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Oct 2010 10:02:55 -0000 Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:35502] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/01-52334-CC0E2BC4 for ; Mon, 11 Oct 2010 06:02:53 -0400 Received: from think.site (unknown [212.42.62.198]) by daylessday.org (Postfix) with ESMTPSA id A645DBFA0A2 for ; Mon, 11 Oct 2010 14:02:48 +0400 (MSD) Message-ID: <4CB2E0C6.8070000@daylessday.org> Date: Mon, 11 Oct 2010 14:02:46 +0400 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6 MIME-Version: 1.0 To: internals@lists.php.net References: <4CB0CCD1.6090408@acm.org> In-Reply-To: <4CB0CCD1.6090408@acm.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Problems with iconv on AIX 5.3 and 6.1 - maybe a bug From: tony@daylessday.org (Antony Dovgal) On 10/10/2010 12:13 AM, Michael Felt wrote: > I think it is a bug, but it might also be a misunderstanding. > > Background: I am trying to convert Joomla 1.0.X to 1.5.X and ran into > problems with the conversion of the database that is done during the > migration. I started out by doing several of the tests/samples in the > php manuals, but always got blank results. I tried changing the php.ini > settings: > [iconv] > iconv.input_encoding = ISO8859-1 > iconv.internal_encoding = ISO8859-1 > iconv.output_encoding = ISO8859-1 Well, yes, it's a known problem that AIX contains it's very own version of iconv. At least it differs from everything else I've seen so far (in terms of encoding names and functionality). > #else > REGISTER_STRING_CONSTANT("ICONV_IMPL", "unknown", CONST_CS | > CONST_PERSISTENT); > #endif > REGISTER_STRING_CONSTANT("ICONV_VERSION", version, CONST_CS | > CONST_PERSISTENT); > > It seems my system is being configured, but under #else - "unknown". Probably "ibm" might be better, but it doesn't change much.. > I did some digging in configure. Once configures finds iconv (PHP > version 5.2.13 line numbers!) You should look into ext/iconv/config.m4 instead. ./configure is generated and it's not supposed to be read. Also I'd suggest you to try 5.3 branch, I can see that AIX iconv support exists only there. -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP