Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80747 invoked from network); 19 Aug 2011 13:27:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 13:27:59 -0000 Authentication-Results: pb1.pair.com header.from=christian.kaps@mohiva.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=christian.kaps@mohiva.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mohiva.com from 178.63.228.54 cause and error) X-PHP-List-Original-Sender: christian.kaps@mohiva.com X-Host-Fingerprint: 178.63.228.54 elvis.mohiva.com Linux 2.6 Received: from [178.63.228.54] ([178.63.228.54:34702] helo=elvis.mohiva.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/10-13895-ED46E4E4 for ; Fri, 19 Aug 2011 09:27:59 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by elvis.mohiva.com (Postfix) with ESMTP id E1E4D1D24858 for ; Fri, 19 Aug 2011 15:27:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at mohiva.com Received: from elvis.mohiva.com ([127.0.0.1]) by localhost (elvis.mohiva.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jZsqyP2Hqp0Q for ; Fri, 19 Aug 2011 15:27:47 +0200 (CEST) Received: from [192.168.0.3] (p57B55965.dip.t-dialin.net [87.181.89.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: christian.kaps@mohiva.com) by elvis.mohiva.com (Postfix) with ESMTPSA id 24A0F1D24857 for ; Fri, 19 Aug 2011 15:27:45 +0200 (CEST) Message-ID: <4E4E64D0.6050108@mohiva.com> Date: Fri, 19 Aug 2011 15:27:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110709 Thunderbird/5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <4E4E5D05.4010600@mohiva.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Issue with custom stream wrapper, include and APC From: christian.kaps@mohiva.com (Christian Kaps) Thanks for your fast feedback. I've tried it with the latest(3.1.9) version. Can someone who has the actual trunk compiled, give feedback for the snippet(https://gist.github.com/1156717)? Christian Am 19.08.2011 15:07, schrieb 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 occurs > > 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: include(): Cannot redeclare class test1 in ... on line 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 >> >> > > >