RE: [PHP-DEV] PHP 5.2.3RC1 Released
| From: | Uwe Schindler | Date: | Fri, 25 May 2007 08:05:29 +0000 |
| Subject: | RE: [PHP-DEV] PHP 5.2.3RC1 Released | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29740@lists.php.net to get a copy of this message | ||
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