Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55665 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89447 invoked from network); 29 Sep 2011 17:07:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2011 17:07:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:34366] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/41-15741-2D5A48E4 for ; Thu, 29 Sep 2011 13:07:30 -0400 Received: by bkar4 with SMTP id r4so901015bka.29 for ; Thu, 29 Sep 2011 10:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=3M0tTnQAocWPJOSXY8ruMrIUA60yk1W3/qjfffE/QX0=; b=vrG+gGlTVJd/+wSgj+p2v1mL7Z0xQorMlHJEkvFwfGZWuncOzkHEryfyWU7wvKLhX3 GjEkxYfSMd0Ipop6DZyB2OkZU9VZNSSPtFNcB88s5oh4u+47JQEajRPq2jluzTwhX3Nb uByAFkZNVoJhcVIfEToLa4tIBGP6eCLRvEYgU= Received: by 10.204.9.197 with SMTP id m5mr6640426bkm.171.1317316047557; Thu, 29 Sep 2011 10:07:27 -0700 (PDT) Received: from [192.168.1.26] (217.Red-88-13-201.dynamicIP.rima-tde.net. [88.13.201.217]) by mx.google.com with ESMTPS id b17sm2403919bkd.8.2011.09.29.10.07.24 (version=SSLv3 cipher=OTHER); Thu, 29 Sep 2011 10:07:26 -0700 (PDT) Message-ID: <4E84A73E.8030601@gmail.com> Date: Thu, 29 Sep 2011 19:13:34 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: Olivier Favre CC: internals@lists.php.net References: <4E848B31.2030501@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Cast trap with INI entries compiling C++ extension From: keisial@gmail.com ("=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=") On 29/09/11 17:42, Olivier Favre wrote: > I checked with a tiny test program, you're right about GCC complaining. > The right fix is to make the field const (I don't know about const keyword). > G++ won't give warnings, no error would be triggered by a broken fix. > > By the way, const char* and char const* are the same, you probably > meant char * const. Is it? I never remember which one is a mutable pointer of const chars and which the const pointer of mutable chars so I relied on the description at http://stackoverflow.com/questions/162480/const-in-c#answer-162504 before sending the mail.