Date: 09/29/00
- Next message: Mike Berry-Porter: "[PHP-DEV] Enabling shared on my extension fails to load my library WITH the shared extension"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5542 Updated: Binary Cores with shm_attach"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 5993
Updated by: sniper
Reported By: bazsi <email protected>
Status: Analyzed
Bug Type: dBase related
Assigned To:
Comments:
This isn't fixed.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-08-23 08:55:38] sniper <email protected>
Is this one fixed in newer versions of php4?
(CVS or snaps.php.net)
--Jani
---------------------------------------------------------------------------
[2000-08-06 18:44:05] bazsi <email protected>
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));
}
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5993
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mike Berry-Porter: "[PHP-DEV] Enabling shared on my extension fails to load my library WITH the shared extension"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5542 Updated: Binary Cores with shm_attach"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

