Harro Verton wrote on Saturday 5th of May 2012:Although flattered I don't think this is going to be a quick fix for your problem. Zombor is actually right that the DB layer of FuelPHP 1.x is mainly the same as Kohana's. But the ORM is different, and so is the rest of the framework. As I don't see anything spectacular in your code, the main difference between this and something comparable in FuelPHP is the ORM call. Rewriting a full Kohana app to Fuel might be quite a bit of work, depending on the complexity of the app...
Harro Verton wrote on Sunday 6th of May 2012:Possible, I can't really comment on that. It is unlikely that the issue is in your piece of code, as you are constantly re-using everything in your loop. Memory leaks are usually very difficult to find, especially if this is a background process. You might be able to find something using an xdebug trace of the process, and analyse it with cachegrind. I personally never code endless loops. My background tasks process what there is to process, and then finish. If it needs to process a lot, I make it so that I can run the same process multiple times (using queues), and launch the processes from a queue manager (or if that is not there from cron every minute or so).
It looks like you're new here. If you want to get involved, click one of these buttons!