Bug #851: corrupting of dBase structure of file

From: Date: Fri, 16 Oct 1998 07:57:41 +0000
Subject: Bug #851: corrupting of dBase structure of file
Groups: php.dev 
Request: Send a blank email to php-dev+get-1854@lists.php.net to get a copy of this message
From: nemeth_zoltan@ba.novitech.sk Operating system: WinNT 4 PHP version: 3.0.5 PHP Bug Type: dBase related Bug description: corrupting of dBase structure of file the problem reason: the dBase file os opened for writing in text mode, not binary mode, and causes following: 1. if I modify database on 10-th of month or in October, the database is corrupted! 2. if I modify database on 26-th of month, the database is corrupted too... 3. if I create field with width 10, the database is corrupted too... 4. if I create field with width 26, the database is not corrupted, but... 5. if I write 10-th record, the database is corrupted too... 6. if I write 26-th record, the database is corrupted too... why? 1. if dbase.dll wites 0xa, it is traslated to 0x0d 0x0a (text mode) 2. if dbase.dll wites 26. record or field with width 26, after reading the php.exe hangs because in text mode is 26 Ctrl-Z - End of File marker..... -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1854) next »