PHP Very Fast At Infinite Loops
Fixing bugs in Drupal PHP modules does not count as one of my favourite activities. Or as much as wading through a sewer system does.
Maybe it is just me, but I always get the feeling that the PHP programmer is on the verge of a complexity breakdown. Everything seems to take enormous efforts, there is no sign of airiness.
If there is then a whole infrastructure like Drupal together with the many different ways to install it, then the path issue (a.k.a. where are things) becomes insane.
And to fight that you will find amazing code:
Now assume that the current position of the PHP script does not give access to ./includes/bootstrap.inc. And also none of the directory nodes above it, as the includes might be installed somewhere completely else.
In that case this loop will loop ... indefinitely; or until the PHP builtin max_execution_time kicks in (with a timeout).
3 hours of my life just to get Brilliant Gallery running.