Issue with custom stream wrapper, include and APC

From: Date: Fri, 19 Aug 2011 12:54:29 +0000
Subject: Issue with custom stream wrapper, include and APC
Groups: php.internals 
Request: Send a blank email to internals+get-54730@lists.php.net to get a copy of this message
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

« previous php.internals (#54730) next »