Re: Possible MSSQL error PHP4.2.0?
| From: | Stig S. Bakken | Date: | Mon, 17 Jun 2002 06:38:14 +0000 |
| Subject: | Re: Possible MSSQL error PHP4.2.0? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85261@lists.php.net to get a copy of this message | ||
Looks like an off-by-one error when setting the length of the returned
string. Which function returns this value?
- Stig
On Wed, 2002-06-12 at 13:11, Jeremy Coates wrote:
> Hi All,
>
> I'm not sure if this is a bug or not:
>
> Using MSSQL Server 2000 on WinNT / IIS (all fully patched).
> PHP 4.2.0 using ini_set('mssql.datetimeconvert',0)
>
> Date fields get returned with an extra character on the end output from
> var_dump (or any other output):
>
> string(20) "2002-08-06 11:45:02@"
> -------------------------------^ Extra character seems to be ASCII 00 (I've
> placed an @ sign there so that it will show up in email clients!)
>
> This is obviously mucking about with other date related functions.
>
> Any ideas?
>
> Regards,
> Jeremy Coates
> --
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb