Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29744 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7204 invoked by uid 1010); 25 May 2007 08:43:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7188 invoked from network); 25 May 2007 08:43:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2007 08:43:45 -0000 Authentication-Results: pb1.pair.com header.from=thetaphi@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=thetaphi@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 80.190.230.99 cause and error) X-PHP-List-Original-Sender: thetaphi@php.net X-Host-Fingerprint: 80.190.230.99 www.troja.net Linux 2.5 (sometimes 2.4) (4) Received: from [80.190.230.99] ([80.190.230.99:41544] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/04-11471-0C1A6564 for ; Fri, 25 May 2007 04:43:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 4ABC02A9FD; Fri, 25 May 2007 10:44:05 +0200 (CEST) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15801-09; Fri, 25 May 2007 10:43:56 +0200 (CEST) Received: from VEGA (unknown [134.102.249.76]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id 82FC32A943; Fri, 25 May 2007 10:43:56 +0200 (CEST) To: "'Rasmus Lerdorf'" Cc: "'php-dev List'" References: <509DFE15-F28E-4869-A124-58E6226205A4@prohost.org> <46565A6A.8060504@krug.dk> <000001c79e9f$16441de0$0201a8c0@VEGA> <46569490.3090608@lerdorf.com> <46569577.3000801@lerdorf.com> <000001c79ea3$76c70200$0201a8c0@VEGA> <46569BD3.10306@lerdorf.com> <46569EEE.3040700@lerdorf.com> Date: Fri, 25 May 2007 10:43:37 +0200 Message-ID: <000001c79ea8$c9e87ea0$4cf96686@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Aceep0D2Eb27aPY6TO+PcWgOW2mzFwAAUAgg In-Reply-To: <46569EEE.3040700@lerdorf.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: amavisd-new at troja.net X-Spam-Status: No, score=2.488 tagged_above=1 required=4 tests=[AWL=0.087, BAYES_00=-2.599, UWE_DE_STOCKS=5] X-Spam-Score: 2.488 X-Spam-Level: ** Subject: RE: [PHP-DEV] PHP 5.2.3RC1 Released From: thetaphi@php.net ("Uwe Schindler") > Rasmus Lerdorf wrote: > > Uwe Schindler wrote: > >> Does not link: > >> > >> Undefined first referenced > >> symbol in file > >> php_during_module_startup main/.libs/SAPI.o > >> php_during_module_shutdown main/.libs/SAPI.o > >> ld: fatal: Symbol referencing errors. No output written to sapi/cli/php > >> collect2: ld returned 1 exit status > >> gmake: *** [sapi/cli/php] Error 1 > > > > gah! Who the heck added access functions for the static module globals > > in main.c that are static themselves? That makes no sense. > > > > static int module_startup = 1; > > static int module_shutdown = 0; > > ... > > static int php_during_module_startup() > > static int php_during_module_shutdown() > > > > I had just assumed they were PHP_API functions. > > Ok, a better approach checking SG(server_context) instead attached. Try > that. Works now. No more SEGFAULT. This solution is not the best one, but this was my first idea to fix this, too. It should fix it in other SAPIs, too. Apache for example also uses SG(server_context).