I work with the new PHP framework (from u it can smile :), and sometimes I get a very strange error:
Base lambda function to close not found /application/modules/index/controllers/index.php#15
I think this is a problem with the APC extension (I found the problem https://bugs.php.net/bug.php?id=52144 ).
A simple example of pseudo index.php:
<?php
function getReflectionData() {
$function_for_get_reflection = require 'controller.php'
}
function dispatch() {
$function_to_call = require 'controller.php'
}
getReflectionData();
dispatch();
and controller.php
<?php
return
function() { }
But I do not understand how I can avoid this error if APC is enabled :(
source
share