Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52028 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12829 invoked from network); 27 Apr 2011 10:35:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2011 10:35:02 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:58973] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/71-04612-351F7BD4 for ; Wed, 27 Apr 2011 06:35:00 -0400 Received: by eyf5 with SMTP id 5so479171eyf.29 for ; Wed, 27 Apr 2011 03:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=c1GXkZcx1VqdSkd8stL9kdMvOvBi20KlHbkZbgpKv4M=; b=TwqBEaevuJqJb1fU4Ks7h7byPop/jCWlThw47+rsDcuw8G260fTZPWPUtPdYFpibh4 UOgryklliEUchKKgTbSICCgIUAN1PW1tAmXOI+FGQTkjVg9vf5GoN8YNFCehzSl5pMkz TXDntBnOHrXkUIOc+ua3yIyuLhJvc1gJr1qaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Orj7PyaS+fyjuOnxwHCne5b7SbpkDuGWrD65rgsbwrLEkGIgyfCQdknD4Bfgn/17E0 Rd9D1R5r2Pbe8N3Or/LCP2rV5LRKFFKcNTi0Szv75oQxmwRae+VBL3ACG0HwcS4Gcofr gapuGUm3nnkjuIc5JJ+WaOZBoAHFYqLYMT+q0= MIME-Version: 1.0 Received: by 10.14.120.199 with SMTP id p47mr824125eeh.163.1303900495917; Wed, 27 Apr 2011 03:34:55 -0700 (PDT) Received: by 10.14.45.3 with HTTP; Wed, 27 Apr 2011 03:34:55 -0700 (PDT) In-Reply-To: <4DB7E763.9010308@gmail.com> References: <4DB7E763.9010308@gmail.com> Date: Wed, 27 Apr 2011 12:34:55 +0200 Message-ID: To: =?GB2312?B?s8LA2g==?= Cc: internals@lists.php.net Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] A patch for APC harklinks problem From: pierre.php@gmail.com (Pierre Joye) hi, Please report bug and patches to the pecl.php.net/apc bug tracker. Thanks for your work, Cheers, 2011/4/27 =B3=C2=C0=DA : > Hi, > > I come from sae team of sina. We meet with a problem of APC harklinks > mentioned in the buglist of PHP and APC long time ago. > > The key word __FILE__ is a magic constants, and it is generated after the > php source code is compiled. > When the APC is used as a php extension for performence reason, the > compiling and executing are independent. > So, there are some problems. Please refer to the bug links: > http://bugs.php.net/bug.php?id=3D45421 > http://pecl.php.net/bugs/bug.php?id=3D14055&thanks=3D3 > > I thinks there shoule be a feature in PHP Runtime to get the current > executed file name at execute-time(not compile-time). > apc_auto_hardlinks_for_php_5.3.5.diff is a patch for PHP 5.3.5, and the > patch is to add a new key word "executed_filename". > > When the following code is running: > echo executed_filename; > ?> > > In PHP Runtime, zend_get_executed_filename() is called to returne the > current executed file name and being displayed. > > To fixed the APC hardlinks problem, the other patch > auto_hardlinks_for_apc_3.1.6.diff must be used. The filename of > opcode array should be updated when both setting and getting get opcode > array to caches in APC. > > Hope the php patch should be reviewed and php runime will provide the way= to > get current executed file name at > execute-time in the future. > > Thanks so much. > > BRs, > Chen Lei > simpcl2008@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org