Date: 10/31/00
- Next message: darkwing <email protected>: "[PHP-DEV] Bug #7556: PATH_INFO does not output correct information"
- Previous message: php <email protected>: "[PHP-DEV] PHP 4.0 Bug #7554: Exclusive flock() breaks client/server communication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: yoshinori.kawahara <email protected>
Operating system: NT4 SP4
PHP version: 4.0.3pl1
PHP Bug Type: *Database Functions
Bug description: flatfile dbmfetch loses first char if datum length exceeds 9 chars
<?
$db = dbmopen('req.db', "n");
$in = "1234567890";
dbminsert($db, "ID", $in);
$out = dbmfetch($db, "ID");
dbmclose($db);
echo "in -$in-\n";
echo "out -$out-\n";
?>
am using the distribution "Win32 Binaries packaged as zip" from
http://www.php3.org/downloads.php
filename : php-4.0.3pl1-Win32.zip
save code as say db.php3
run in dos window to exclude interference from webserver
d:\tmp>\php\php.exe db.php3
X-Powered-By: PHP/4.0.3pl1
Content-type: text/html
in -1234567890-
out -234567890-
As you can see the first char is dropped. For anything up to 9 chars everythings OK. More than 9, first char is dropped. Tried using all alhpa strings, same behaviour.
Looked at req.db flat file database, everything looks ok there.
2<nl>
ID10<nl>
1234567890
-- Edit Bug report at: http://bugs.php.net/?id=7555&edit=1-- 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: darkwing <email protected>: "[PHP-DEV] Bug #7556: PATH_INFO does not output correct information"
- Previous message: php <email protected>: "[PHP-DEV] PHP 4.0 Bug #7554: Exclusive flock() breaks client/server communication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

