Open adamculp opened 9 years ago
Also, as a sidenote, when Z-Ray was disabled it appears that Zend Server is still loading the extension even though Z-Ray is not loaded.
In the next release of Zend Server we will have a fix for the closure issue. We will investigate the second issue you mentioned,
OK, great. I downloaded the latest code for this extension and it was still an issue.
If codebase contains a closure in a module.config.php file it causes Z-Ray ZF2 extension to error with:
Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' in /var/www/html/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:0 Stack trace: #0 /var/www/html/public/index.php(28): Zend\Mvc\Application->run() #1 {main} thrown
Example from module.config.php:
Maybe look at makeArraySerializable()