Because you typed 08 rather than 8 PHP thinks you are talking about a value that doesn't exist. In octal numbers run from 00 to 07. To let PHP take care of the values for you type:
In short it's not a bug but it is one of those things that will catch you out if you were not expecting it.