Cannot get it to run with ZF 2.2.2
RalfEggert opened this issue · 5 comments
When I call a page in my browser like http://yourapp/?EDPSUPERLUMINAL_CACHE I always get an error, telling me that the page was aborted. I tried to track this down and figured out, that line 109 starts the trouble.
https://github.com/EvanDotPro/EdpSuperluminal/blob/master/Module.php#L109
Precisely, as soon as $r->getDeclaringFile() is called, the error is shown.
Looks like some problem with an internal PHP class - did you try-catch it?
Try-Catch is not catching any Exception at all. PHP Version is 5.3.3.
Oh, I see... $r->getDeclaringFile()
, probably returns NULL
or false
on internal PHP classes, so $r->getDeclaringFile()->getUses()
fails. You should probably apply a simple check there.
I have debugged a little more and located the problem within the scan() method of Zend\Code\Scanner\TokenArrayScanner:
Looking at that method I felt a little lost and stopped my debugging.
A simple check is quite hard to implement since the call of $r->getDeclaringFile() processes the error...
Seems to be a memory_limit issue. After rising the memory_limit the creation of the cache file works.