A Bug By Any Other Name ...
[QUOTE=Moonbat;2**72]When you put in the number 0 before any number it makes it octal. Octal numbers (base 8) only go from 0-7. That's why you have a bug.[/QUOTE]
That's all I need - an 8-legged bug!
I was unaware that PHP worked like that! It seems like anything entered as purely numeric from the key***rd should be interpreted as a normal base *0 number by default! They should use a special symbol to indicate binary, octal or hex and no symbol would default to base *0.
Don't computer engineers ever think like real people? The computer should conform to a human's way of thinking, not the other way around!
If I was the dictator, I'd have someone shot for this!
LOL
If I put the digits inside quotes, then it treats everything like base *0, but I don't want the user to have to bother with that.
I found a simple workaround to the problem, so zeros won't cause anymore problems.
Also, I just upgraded to the horrors of PHP v5.2.4 At first, few of my programs worked because they changed the code used to POST a form and I couldn't find anything about that at the PHP site.
Any interactive program using $HTTP_POST_VARS will instantly break. Billions of my pages need to be changed to work with PHP 5.
Thanx for the info
:)