The newer builds of PHP have trubles to connect to older versions of MySql as well. Even if they did, the returned results would not be in the format expected by SQLyog.
We are running an older build of PHP as well, so there are no connection problems there. It's probably just the results are not understandable by SQLyog.