Chris Roane has a suggestion to all of the PHP developers out there - stop whining and shut up!
If you are sick and tired of a few projects sucking your time and pissing off your boss…then fix the code that is causing you problems. What? Your boss won’t give you the time to do this since it is not billable time? Than find time outside of normal work hours to fix it. I understand this isn’t fun, but if you want to move on with your life, this is necessary. If you are waiting for the problem to go away (or praying about it), than that is a good sign that you are at a bad spot.
Complaining about what you have to do won't make things any better - only owning up to what needs to be done (that or doing it right the first time).
The only person who has the power to fix your problems is you.