Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73543 invoked from network); 19 Aug 2011 12:54:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 12:54:49 -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:49076] helo=elvis.mohiva.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/7C-11562-51D5E4E4 for ; Fri, 19 Aug 2011 08:54:46 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by elvis.mohiva.com (Postfix) with ESMTP id F03C71D24858 for ; Fri, 19 Aug 2011 14:54:39 +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 4Adu7qoAkmm3 for ; Fri, 19 Aug 2011 14:54:32 +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 E39421D24857 for ; Fri, 19 Aug 2011 14:54:29 +0200 (CEST) Message-ID: <4E4E5D05.4010600@mohiva.com> Date: Fri, 19 Aug 2011 14:54:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110709 Thunderbird/5.0 MIME-Version: 1.0 To: PHPMailingList Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Issue with custom stream wrapper, include and APC From: christian.kaps@mohiva.com (Christian Kaps) 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