Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46036 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80702 invoked from network); 12 Nov 2009 21:51:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2009 21:51:10 -0000 Authentication-Results: pb1.pair.com header.from=basant.kukreja@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=basant.kukreja@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: basant.kukreja@gmail.com X-Host-Fingerprint: 209.85.220.227 mail-fx0-f227.google.com Received: from [209.85.220.227] ([209.85.220.227:45004] helo=mail-fx0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/7D-08668-D438CFA4 for ; Thu, 12 Nov 2009 16:51:09 -0500 Received: by fxm27 with SMTP id 27so2829505fxm.23 for ; Thu, 12 Nov 2009 13:51:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=FfgYGhXV719yFcFzdcbZP/GPSJ9+qz19MKCrZx4e3wQ=; b=JeUwn0JPGcuYA1tS1GTZMXluu1NkPHzzIIN5wfwoGigELoNDvwRs25lgYcLWUfEyX/ 5XiNNHV4eSrWwMVyl/MVMIw/Zs8pshenZq2+RM1aUSNUey1t51dx4Pe6tI6UGN8zhEV9 62ug2DlwAS4RMT1U1ANEFPR0ltas4yGPgb7wY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=nbJl1H1h1JQsHXvK9zqNDxrWF3QAn20azGVVRCQ2wSADwPKxytr1Gm4HHcxuG/yTZO 69Nl5RBQJ84ihp08SWMhFhs8zZcRNn+AlAUXGLbiWyfCjqq3iy77wolEkrqFBF0IAEzv qqvWw2Hu9DQuklZVCf9Op15M7z3J21vlx3l8U= Received: by 10.204.32.16 with SMTP id a16mr2320100bkd.190.1258062664385; Thu, 12 Nov 2009 13:51:04 -0800 (PST) Received: from lbasantk3.red.iplanet.com ([192.18.120.216]) by mx.google.com with ESMTPS id 15sm1002318bwz.0.2009.11.12.13.51.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Nov 2009 13:51:02 -0800 (PST) Date: Thu, 12 Nov 2009 13:49:38 -0800 To: Rasmus Lerdorf Cc: internals@lists.php.net Message-ID: <20091112214938.GA13076@lbasantk3.red.iplanet.com> References: <20091112185555.GB4294@lbasantk3.red.iplanet.com> <4AFC680F.7050400@lerdorf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AFC680F.7050400@lerdorf.com> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: [PHP-DEV] open/close calls of include_once/require_once files. From: basant.kukreja@gmail.com (Basant Kukreja) On Thu, Nov 12, 2009 at 11:54:55AM -0800, Rasmus Lerdorf wrote: > A couple of notes. > > You make it sound like this happens on all includes. It is only > include_once/require_once that have this problem. Regular > include/require do not. Sorry for making it confusing. I meant only for include_once/require_once files. > This has been addressed in APC by overriding the opcode and providing > our own opcode handler for this case. See > http://svn.php.net/viewvc/pecl/apc/trunk/apc_zend.c?view=markup&pathrev=289331 > line 86. Thanks for the link. > Having said that, it would be preferable, of course, if we didn't need > to swap out that code in APC but I am not sure your solution for solving > this only for absolute path includes is the right way to go here. I don't think it is possible to avoid calling zend_stream_open for files other than absolute paths in PHP. Rationale : Opcode cacher doesn't need to override the op if php engine can perform the check with ease. Cacher can however override it if included file is not in file-system. Regards, Basant.