Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29773 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64239 invoked by uid 1010); 25 May 2007 21:21:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64223 invoked from network); 25 May 2007 21:21:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2007 21:21:22 -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:42279] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/C2-42830-15357564 for ; Fri, 25 May 2007 17:21:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id AAE472A299; Fri, 25 May 2007 23:21:42 +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 28569-03; Fri, 25 May 2007 23:21:31 +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 D07DE2A116; Fri, 25 May 2007 23:21:30 +0200 (CEST) To: "'Stanislav Malyshev'" , "'Rasmus Lerdorf'" Cc: "'PHP Internals'" References: <4657170E.8060701@zend.com> <46571CCC.4030801@zend.com> <46573710.6070800@lerdorf.com> <46573903.2060204@zend.com> Date: Fri, 25 May 2007 23:21:05 +0200 Message-ID: <000001c79f12$9b6650b0$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: AcefAxpmpL/jj0StSuGVEwzIlKSt/wADfL2A In-Reply-To: <46573903.2060204@zend.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: amavisd-new at troja.net Subject: RE: [PHP-DEV] TSRM changes broke windows compile From: thetaphi@php.net ("Uwe Schindler") > > An extra syscall on every file open isn't exactly miniscule. > > It's a syscall not related to any filesystem or I/O so it can't be that > bad. And we managed to live with it so far. > > > Edin also just built Windows binaries without problems. Why did it work > > for him? > > I have no idea. But it is obvious that it doesn't work in all > environments, and it worked before just fine. Anyway, both breaking > build _and_ intoducing dependency of TSRM on PHP and both in a minor > version _and_ both without discussing it doesn't look like very good > idea to me. I would propose: > 1. Revert it for 5.2.3 > 2. Discuss if we want TSRM/Zend be now usable only with PHP > 3. Discuss if we really need this patch and if so can we do it without > breaking (2) As I was involved today this morning also with startup failures because of this change, I came to the following: It would be perhaps OK to make TSRM dependent on some global PHP functions, but to make it depend on SAPI code that is only for webserver interaction (!) and not related to TSRM (yes SAPI uses TSRM but not the other way round) is not so good. And that only because of a not IO-related syscall! A solution would be to make a function pointer inside TSRM that normally maps to time() or a TSRM-local wrapper of it. This would make TSRM not dependent on PHP. On the PHP part in SAPI startup there could optionally be a redirect of the pointer to SAPI's get_request_time() implementation. Uwe