php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marfillaster at gmail dot com
New email:
PHP Version: OS:

 

 [2011-04-12 09:26 UTC] marfillaster at gmail dot com
Description:
------------
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):
https://gist.github.com/915486

Also tried this versions (pierre's builds)
apc-igbinary-fastlz-snap20110301-5.3-ts-vc9-x86
php_apc-3.1.8-dev+igbinary-1.1.2-dev-20110321-5.3-ts-vc9-x86

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-31 15:59 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2016-08-31 15:59 UTC] cmb@php.net
According to <https://bugs.php.net/69618>, 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: Thu Mar 28 09:01:26 2024 UTC