Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94162 invoked by uid 1010); 25 May 2007 08:05:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94147 invoked from network); 25 May 2007 08:05:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2007 08:05:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=thetaphi@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thetaphi@php.net; 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:42556] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/62-11471-4D896564 for ; Fri, 25 May 2007 04:05:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id C325E2AA08; Fri, 25 May 2007 10:06:00 +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 13368-10; Fri, 25 May 2007 10:05:49 +0200 (CEST) Received: from VEGA (port-83-236-62-78.dynamic.qsc.de [83.236.62.78]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id D6F662A705; Fri, 25 May 2007 10:05:48 +0200 (CEST) To: "'Rasmus Lerdorf'" , "'Uwe Schindler'" 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> Date: Fri, 25 May 2007 10:05:29 +0200 Message-ID: <000001c79ea3$76c70200$0201a8c0@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AceeoZWXj5Q9GZUYR6SbPtA97J4HZgAAdKAQ In-Reply-To: <46569577.3000801@lerdorf.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: amavisd-new at troja.net X-Spam-Status: Yes, score=4.753 tagged_above=1 required=4 tests=[AWL=0.306, BAYES_00=-2.599, RCVD_IN_SORBS_DUL=2.046, UWE_DE_STOCKS=5] X-Spam-Score: 4.753 X-Spam-Level: **** X-Spam-Flag: YES Subject: RE: [PHP-DEV] PHP 5.2.3RC1 Released From: thetaphi@php.net ("Uwe Schindler") 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 ----- Uwe Schindler thetaphi@php.net - http://www.php.net NSAPI SAPI developer Bremen, Germany > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com] > Sent: Friday, May 25, 2007 9:51 AM > To: Uwe Schindler > Cc: 'php-dev List' > Subject: Re: [PHP-DEV] PHP 5.2.3RC1 Released > > Rasmus Lerdorf wrote: > > Uwe Schindler wrote: > >> I tried PHP 5.2.3RC1 today and the SunONE webserver using the NSAPI > plugin > >> crashed in module startups with a segfault. > >> > >> This happens because rasmus changed tsrm_virtual_cwd.c to use > >> get_request_time instead of time() (see changelog of that file). During > >> module startup the extension browscap tries to open the browscap.ini > file > >> and uses the TSRM functions to do that (because TSRM is used in NSAPI). > At > >> module startup there is unfortunately no request running so the call to > the > >> SAPI routine sapi_nsapi_get_request_time() core dumps because of a > missing > >> server_context. > >> > >> I think that should be fixed because it affects all multithreaded > webserver > >> SAPIs that supply a get_request_time-function. > > > > Could you try the attached patch please. > > It should be a time(0) call there in the ternary, of course. Fixed > patch attached. > > -Rasmus