Re: Maybe BUG.
| From: | Rasmus Lerdorf | Date: | Thu, 29 Jun 2000 03:18:54 +0000 |
| Subject: | Re: Maybe BUG. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22713@lists.php.net to get a copy of this message | ||
> > 080000 == 0
> ...
> > Therefore not a bug.
> > -Rasmus
>
> Rasmus,
>
> I think it's unusual that a number with a leading zero is considered
> equivalent to zero. Is there a reason behind this "feature"?
It is not that unusual. Numbers with leading zeroes are considered octal
numbers. However 08 and 09 are not legal octal numbers, so either an
error needs to be thrown which is what Perl does, or it needs to be
considered to be 0.
-Rasmus