Infinite loop issue – syndicatedpost.class.php:2342
-
Has been running the plugin to parse feeds through cron and sometime back noticed it running for hours and using all cpu. After checking for a long time, identified it to a do-while loop causing an infinite loop in the file syndicatedpost.class.php line 2342.
The below comments are there above the do-while loop.
#– loop. Keep trying to add the user until you get it
#– right. Or until PHP crashes, I guess.In my case the user insert failed due to the email field being long or something. And that do-while just went on trying to insert the user for ever.
I think it would be best to throw an exception there rather than allowing a potential infinite loop. Or keep a count of the looped times and throw an exception or exit after reaching a maximum number of tries.
Thank you
- The topic ‘Infinite loop issue – syndicatedpost.class.php:2342’ is closed to new replies.