Re: Interesting APC behaviour
| From: | Rasmus Lerdorf | Date: | Sun, 28 Oct 2012 13:56:26 +0000 |
| Subject: | Re: Interesting APC behaviour | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9940@lists.php.net to get a copy of this message | ||
On 10/28/2012 02:41 AM, Gopal Vijayaraghavan wrote:
> If I'm not wrong, this only breaks APC when include_once_override is turned on.
>
> My vote is to drop the apc.include_once_override and make APC a bit
> simpler & neater.
>
> I've found that it behaves rather inconsistently when people start
> returning values from scripts.
>
> <?php
> function f($a = array(1)) { return $a; }
> return f();
>
> has been a suspect case for some segvs.
Sorry, I didn't understand. Do you mean my change to include_once
override is causing new segvs or are you saying in general our
include_once override implementation has historically had problems?
I'd love to hear your suggestion for a simpler non-override way to solve
this particular inconsistency. Clearly the way the included_files check
is done currently is not ideal and I don't really see how we can solve
this in APC without doing an override since the actual check is done in
PHP's include_once code.
-Rasmus