6. Why do I get "call to undefined function" PHP errors with APC but not
without it?
Your code creates a conflict in the global namespace, but PHP manages to
deal with it. APC, however, will fail to correctly cache the conflicting
modules if it finds a namespace conflict. Here is an example of how this can
occur:
File A.php includes file B.php, which
defines the function foobar and sets some variable,
say, $B_INCLUDED, to indicate that it has been included.
File A.php now includes file C.php, which
also defines a function named foobar. Before it gets to
the function definition, though, C.php returns if
$B_INCLUDED is true.
PHP permits this kind of conditional inclusion, but it will fail with APC
because C.php is always included and compiled, even though it never reaches
the statement that declares foobar for the second time. We made the
(possibly questionable) decision to designate this a programming error, so
you must "correct" your code before you can use APC."
6. Why do I get "call to undefined function" PHP errors with APC but not
without it?
Your code creates a conflict in the global namespace, but PHP manages to
deal with it. APC, however, will fail to correctly cache the conflicting
modules if it finds a namespace conflict. Here is an example of how this can
occur:
File A.php includes file B.php, which
defines the function foobar and sets some variable,
say, $B_INCLUDED, to indicate that it has been included.
File A.php now includes file C.php, which
also defines a function named foobar. Before it gets to
the function definition, though, C.php returns if
$B_INCLUDED is true.
PHP permits this kind of conditional inclusion, but it will fail with APC
because C.php is always included and compiled, even though it never reaches
the statement that declares foobar for the second time. We made the
(possibly questionable) decision to designate this a programming error, so
you must "correct" your code before you can use APC."