Re: Strings with leading zeros
| From: | Rasmus Lerdorf | Date: | Thu, 28 Dec 2000 21:54:47 +0000 |
| Subject: | Re: Strings with leading zeros | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32151@lists.php.net to get a copy of this message | ||
Not when this is coming in via a URL. All GET/POST/Cookie parameters are
assumed to be strings since there is no way for us to tell that they
aren't.
-Rasmus
On Thu, 28 Dec 2000 eschmid+sic@s.netic.de wrote:
> On Thu, Dec 28, 2000 at 02:37:24PM -0600, Charlie Llewellin wrote:
> > It comes back to me as a key value pair (expire=01102001) in a URL. It never
> > gets to my database. I am trying to set a cookie to expire at a future date
> > based on this field.
>
> A number starting with a zero is interpreted as a octal number. Drop the
> leading zero and it would be a decimal number.
>
> -Egon
>
> --
> http://www.linuxtag.de/
> http://php.net/books.php
> http://www.concert-band.de/
>