|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-23 08:55 UTC] sniper@php.net
[2000-09-29 09:15 UTC] sniper@php.net
[2001-03-16 14:46 UTC] hholzgra@php.net
[2001-05-29 23:03 UTC] vlad@php.net
[2001-10-30 19:00 UTC] sniper@php.net
[2001-12-13 23:27 UTC] vlad@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Here's the patch to fix the bug above: diff -urN php-4.0.1pl2/ext/dbase/dbase.c php-4.0.1pl2.bazsi/ext/dbase/dbase.c --- php-4.0.1pl2/ext/dbase/dbase.c Sun Jun 25 19:02:44 2000 +++ php-4.0.1pl2.bazsi/ext/dbase/dbase.c Sun Aug 6 18:42:16 2000 @@ -455,7 +455,12 @@ case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ if (cur_f->db_fdc == 0) { - add_next_index_long(return_value, strtol(str_value, NULL, 10)); + if (cur_f->db_flen >= 10) { + add_next_index_string(return_value, str_value, 1); + } + else { + add_next_index_long(return_value, strtol(str_value, NULL, 10)); + } } else { add_next_index_double(return_value, atof(str_value)); }