Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66901 invoked by uid 1010); 7 Aug 2004 16:02:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66859 invoked from network); 7 Aug 2004 16:02:24 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 7 Aug 2004 16:02:24 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i77G2Oe1007127 for ; Sat, 7 Aug 2004 12:02:24 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i77G2Na25021 for ; Sat, 7 Aug 2004 12:02:23 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i77G2MHP015386 for ; Sat, 7 Aug 2004 17:02:22 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i77G2HN4015385 for internals@lists.php.net; Sat, 7 Aug 2004 17:02:17 +0100 Date: Sat, 7 Aug 2004 17:02:17 +0100 To: internals@lists.php.net Message-ID: <20040807160217.GA15321@redhat.com> Mail-Followup-To: internals@lists.php.net References: <20040723211815.GB15309@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] [PATCH] fix symbol namespace pollution from bundled libgd From: jorton@redhat.com (Joe Orton) On Mon, Aug 02, 2004 at 10:55:27AM +0200, Derick Rethans wrote: > On Fri, 23 Jul 2004, Joe Orton wrote: > > > Building the bundled libgd library into PHP causes symbol namespace > > pollution; if any other Apache modules link a different version of libgd > > into the Apache process they may instead pick up symbols from the PHP > > libgd, and segfault randomly. (One of our users saw this when using > > mod_perl with Perl::GD) > > Hmm, I don't really like this "hiding" of symbol names. Why just not fix > our bundled GD to use the correct names? That would mean adding exactly the reverse set of #defines to allow the the GD extension to be built against an external copy of libgd (which of course won't use the phpgd_* symbols). Given that a complete set of #defines is needed anyway, doing it without modifying libgd makes more sense since it's then easier to track the upstream libgd sources. joe