php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58613 fall back to late binding instead of not caching at all
Submitted: 2009-04-03 04:59 UTC Modified: 2009-10-06 15:28 UTC
From: corinl at gmx dot de Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.6 OS: debian
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: corinl at gmx dot de
New email:
PHP Version: OS:

 

 [2009-04-03 04:59 UTC] corinl at gmx dot de
Description:
------------
When having scripts that mix early/late binding, APC detects this and just marks the problematic scripts as not cacheable at all.

As far as I know, dynamic (late) binding should always work. I wonder the developers prefer to mark the problematic scripts as not cacheable at all instead of just using always late binding for those? Although late binding is (slightly) slower than early binding, it would still be much faster than compiling the script every request?


Reproduce code:
---------------
Not important here / see other bugs.

Expected result:
----------------
Always use late binding for problematic classes/files instead of blacklisting them.

Actual result:
--------------
Files are blacklisted/recompiled on every request.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-15 10:10 UTC] gopalv82 at yahoo dot com
turn on

apc.report_autofilter = On;

on 3.1.2 and report back. It should log whenever it recompiles into cache.
 [2009-10-06 15:28 UTC] gopalv82 at yahoo dot com
It should say 'recompile XXXX' now instead of not caching.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 11:01:34 2024 UTC