php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59907 Issue with custom stream wrapper, include and APC
Submitted: 2011-08-21 06:43 UTC Modified: 2012-08-14 15:57 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bugs dot pecl at mohiva dot com Assigned: ab (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.3.6 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2011-08-21 06:43 UTC] bugs dot pecl at mohiva dot com
Description:
------------
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.

Reproduce code:
---------------
https://gist.github.com/1156717

Expected result:
----------------
The code shouldn't throw an error

Actual result:
--------------
Fatal error: include(): Cannot redeclare class test1 in ... on line 78
PHP Fatal error:  include(): Cannot redeclare class test1 in ... on line 78

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-14 15:57 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2012-08-14 15:57 UTC] ab@php.net
This is fixed in the current APC trunk, please test with PHP 5.3 and 5.4.
 [2012-08-14 15:58 UTC] ab@php.net
Automatic comment from SVN on behalf of ab
Revision: http://svn.php.net/viewvc/?view=revision&revision=327124
Log: added test for bug #59907
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC