Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77751 invoked from network); 19 Aug 2011 13:07:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 13:07:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:47195] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/6D-11562-A106E4E4 for ; Fri, 19 Aug 2011 09:07:38 -0400 Received: by gxk27 with SMTP id 27so2586497gxk.29 for ; Fri, 19 Aug 2011 06:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gIt/Pnic/RzAWlXUltCmbKcPmZtH/41a6weZhD1tBj0=; b=NVcmorIRntTt2vJg+uGUyROZakLtbq5S1ujrqcPPD6jIUMd6zyQIR2tBBLdc9xKH0R /SaEWIWPlwE2qSf4YvND/hV8T7OndEgP3JSLx9BFPRlIPQkfQdn4oNxq2522pD5vGu+8 1BI4txIxk2zNvO9htxHaGTy/++LAHZDKCKNbs= MIME-Version: 1.0 Received: by 10.147.80.5 with SMTP id h5mr2284920yal.5.1313759255550; Fri, 19 Aug 2011 06:07:35 -0700 (PDT) Received: by 10.147.41.9 with HTTP; Fri, 19 Aug 2011 06:07:35 -0700 (PDT) In-Reply-To: <4E4E5D05.4010600@mohiva.com> References: <4E4E5D05.4010600@mohiva.com> Date: Fri, 19 Aug 2011 15:07:35 +0200 Message-ID: To: Christian Kaps Cc: PHPMailingList Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Issue with custom stream wrapper, include and APC From: pierre.php@gmail.com (Pierre Joye) hi, Have you tried using the latest version of APC or using svn's trunk? If not please try it and report a bug at pecl.php.net/apc if it still occur= s Thanks for your feedback! On Fri, Aug 19, 2011 at 2:54 PM, Christian Kaps wrote: > Hi! > > I have a problem with APC and a custom stream wrapper implementation. > The wrapper is used to include generated PHP classes. If APC is enabled > it seems that the include statement(used with different URL's), loads > always the first included class from cache. > > The following code illustrates the issue a bit more. > > https://gist.github.com/1156717 > > If executing it with APC enabled, I get the following fatal error. > > Fatal error: include(): Cannot redeclare class test1 in ... on line 78 > PHP Fatal error: =A0include(): Cannot redeclare class test1 in ... on lin= e 78 > > Is this a bug? Or do I miss something? > > Christian > > -- > 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