php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58395 allow apc.php to work when includ()ed from another php script
Submitted: 2008-10-28 09:16 UTC Modified: 2016-11-18 20:52 UTC
From: giunta dot gaetano at gmail dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.5 OS: windoze
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: giunta dot gaetano at gmail dot com
New email:
PHP Version: OS:

 

 [2008-10-28 09:16 UTC] giunta dot gaetano at gmail dot com
Description:
------------
Trying to include apc.php from another script, while using ob_start/ob_clean to get the script output works halfway, especially if this inclusion is done within a function.

Fixes:
- remove call to exit; if apc is not enabled, replace with a big else block
- declaration of function bsize has to be moved before its usage (don't ask me why), eg before if (isset($MYREQUEST['IMG']))
- remove any usage of 'global $x' in favour of $_GLOBALS['x']




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 20:52 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 20:52 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 20:01:23 2020 UTC