Base lambda function to close not found

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
// get meta information from many controllers
function getReflectionData() {
$function_for_get_reflection = require 'controller.php'
}

// dispatch controller
function dispatch() {
$function_to_call = require 'controller.php'
}

getReflectionData();
dispatch();

and controller.php

<?php
return 
/**
 * @route /page/{$alias}.html
 */
function() { /*...*/ }

But I do not understand how I can avoid this error if APC is enabled :(

+4
source share

All Articles