#16190 [Dup->Csd]: DBM Support on Windows truncates values
| From: | sniper@php.net | Date: | Wed, 14 Aug 2002 22:00:45 +0000 |
| Subject: | #16190 [Dup->Csd]: DBM Support on Windows truncates values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16845@lists.php.net to get a copy of this message | ||
ID: 16190
Updated by: sniper@php.net
Reported By: holler@ergo-soft.com
-Status: Duplicate
+Status: Closed
Bug Type: DBM/DBA related
Operating System: Windows 2000
PHP Version: 4.1.2
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab
the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-08-12 23:47:55] kalowsky@php.net
Dup of 18746... yes I know this came first, but the other one has a
shorter example, and a few more comments.
------------------------------------------------------------------------
[2002-08-05 18:25:38] t2315@freemail.hu
See my bugreport 18746 for a shorter example.
------------------------------------------------------------------------
[2002-07-06 12:52:21] d.crawford@blueyonder.co.uk
Also a problem on Windows 98 and PHP 4.2.0
------------------------------------------------------------------------
[2002-03-20 12:48:28] holler@ergo-soft.com
The DBM-Functions on Windows truncates the values (cuts 1. char)
examplecode:
<?php
$d = dbmopen('testfile.dbm', 'c');
dbminsert($d, '0', 'Testtext1');
dbminsert($d, '1', 'Testtext2');
dbminsert($d, '2', 'Testtext3');
echo dbmfetch($d, '0') . '<br>';
echo dbmfetch($d, '1') . '<br>';
echo dbmfetch($d, '2') . '<br>';
dbmclose($d);
?>
------------------------------------------------------------------------
[2002-03-20 12:43:44] holler@ergo-soft.com
The DBM-Functions on Windows truncates the values (cuts 1. char)
excamplecode:
<?php
$d = dbmopen('testfile.dbm', 'c');
dbminsert($d, '0', 'Testtext1');
dbminsert($d, '1', 'Testtext2');
dbminsert($d, '2', 'Testtext3');
echo dbmfetch($d, '0') . '<br>';
echo dbmfetch($d, '1') . '<br>';
echo dbmfetch($d, '2') . '<br>';
dbmclose($d);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16190&edit=1