|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59710 Multi front controller
Submitted: 2011-04-12 09:26 UTC Modified: 2016-08-31 15:59 UTC
From: marfillaster at gmail dot com Assigned: cmb (profile)
Status: Wont fix Package: APC (PECL)
PHP Version: 5.3.5 OS: windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: marfillaster at gmail dot com
New email:
PHP Version: OS:


 [2011-04-12 09:26 UTC] marfillaster at gmail dot com
In Symfony2, there are two front controllers, app_dev.php 
and app.php which assumes as index via htaccess. When apc 
3.1.7 (cgi mode) is enabled both controllers the output is 
the same. Say the dev controller is requested first, the 
prod controller will also show the debug toolbar which is 
disabled in prod. If prod is requested first the prod will 
not show the debug toolbar.

Environment (apache 2.2 modfcgi):

Also tried this versions (pierre's builds)

And nginx 0.8 + apc also shows the same bug

Have not tested via mod_php in apache.

Reproduce code:
1. Download and install Symfony2 PR10
2. Enable apc 3.1.7
3. request http://symfony-se/ (prod)
4. request http://symfony-se/app_dev.php (dev)

Expected result:
prod must not show debug toolbar
dev must show debug toolbar

Actual result:
prod has no debug toolbar
dev has no debug toolbar


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-31 15:59 UTC]
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2016-08-31 15:59 UTC]
According to <>, APC support has been
discontinued in favor of OPcache, APCu, the session upload
progress API and WinCache. Therefore this issue won't get fixed.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 04:01:28 2024 UTC