Someone reported a bug in ADOdb, the open source db library i maintain. I went crazy for half an hour until i realised the problem. Here's a little gotcha you can try:
echo 09," => (09) <br>"; echo 9," => (9) <br>";
If you expect the above code to produce the same values, you are sadly mistaken. Try it. Also see the followup.