Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35923 invoked by uid 1010); 11 Sep 2007 10:42:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35906 invoked from network); 11 Sep 2007 10:42:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2007 10:42:28 -0000 Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.55.154.23 as permitted sender) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.23 relay3.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.23] ([212.55.154.23:54186] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/C0-31404-31176E64 for ; Tue, 11 Sep 2007 06:42:28 -0400 Received: (qmail 21619 invoked from network); 11 Sep 2007 10:42:24 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.210) by relay3 with SMTP; 11 Sep 2007 10:42:24 -0000 Received: (qmail 6337 invoked from network); 11 Sep 2007 10:42:23 -0000 X-AntiVirus: PTMail-AV 0.3-0.91.1 X-Virus-Status: Clean (0.00585 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.74.33]) (envelope-sender ) by mta15 (qmail-ldap-1.03) with SMTP for ; 11 Sep 2007 10:42:23 -0000 Message-ID: <00d301c7f460$725131b0$4001a8c0@pc07653> To: "Stanislav Malyshev" , "Cristian Rodriguez" Cc: References: <6F509818-65A2-4B17-8C44-6970E815A169@prohost.org> <7d5a202f0709101349s3b74f959mcfcaa2927024310e@mail.gmail.com> <46E5CCFD.7050708@zend.com> Date: Tue, 11 Sep 2007 11:42:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Subject: Re: [PHP-DEV] PHP 5.3 Suggested Feature List From: nlopess@php.net ("Nuno Lopes") >> That patch is a very good idea, but it does not work there are symbols >> that are no lomger exported on libxml extension , and although >> everything compiles, I ended with a broken PHP. > > Can you give a bit more details on what is broken? Does it mean there's a > problem on Windows too, since Windows doesn't allow accessing un-exported > symbols? I'm aware of this problem. The problem is that each extension defines its own PHP_EXT_API (where EXT is the name of the extension). This means we need to change every such macro out there to make them aware of gcc 4. My proposal to avoid future problems is to reuse the PHPAPI macro, as can be seen in that patch (I only changed the hash extension as an example): --- ext/hash/php_hash.h 16 Jan 2006 23:04:23 -0000 1.13.2.7 +++ ext/hash/php_hash.h 9 Nov 2006 16:50:55 -0000 (...) -#ifdef PHP_WIN32 -#define PHP_HASH_API __declspec(dllexport) -#else -#define PHP_HASH_API -#endif +#define PHP_HASH_API PHPAPI When the patch goes in, I'll change all that stuff. Nuno