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

Attachment: rt.diff
Description: application/macbinary

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to