Re: Re: PDO types

From: Date: Sun, 20 Feb 2005 15:37:43 +0000
Subject: Re: Re: PDO types
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-15123@lists.php.net to get a copy of this message
On Sun, 2005-02-20 at 09:44 -0500, Wez Furlong wrote: > On Sun, 20 Feb 2005 12:36:01 +0100, Timm Friebe <thekid@thekid.de> wrote: > > * If the number does not fit, I will try to convert it into a double > > (PHP datatype float). This is the case for e.g. numeric(10) - values > > might not fit. This is the same what PHP does when adding 1 to > > LONG_MAX, for instance. If - in the procedure of doing so, strtod() > > gives an ERANGE or if the length overflows EG(precision), I will > > return a string. > > This is exactly what I wanted to avoid. Why is that so? I think this a good idea - it saves memory in the usual case (most numbers will probably fit into a long). > Please don't make this change. How could I? I only have CVS karma for ext/sybase_ct, not for anything else, not Zend, not PDO:) -- Timm If it ain't broken, it doesn't have enough features yet

« previous php.internals (#15123) next »