3 ms·
I tried the example but ran with some issues. Maybe you could specify the requirements ? 1/ It needs PHP >= 5.3 I guess (anonymous functions ?). 2/ It needs A
by conradfr 15y ago
I tried the example but ran with some issues. Maybe you could specify the requirements ?
1/ It needs PHP >= 5.3 I guess (anonymous functions ?).
2/ It needs APC (use of apc_exists ?)
3/ I stopped at "Cannot use string offset as an array in ham\ham.php on line 42" (seems cache related).
- antihero 15y agoAh there were a couple of bugs. It now doesn't require a caching module to be installed, but is slower with out it. XCache is preferred as it allows closure caching. On my laptop: Xcache: ~700 microseconds APC: ~1,300 microseconds Dummy (no caching): ~3,712 microseconds
- Gigablah 15y agoYeah, I tried to drop in a Redis caching class and immediately ran into that problem. I noticed someone had published a method for serializing PHP closures using magic methods and reflection, but that's way too complex a workaround.