Re: PHP 4.0 Bug #6715 Updated: db.c ver 1.43 is not working properly on windows

From: Date: Wed, 29 Nov 2000 13:20:02 +0000
Subject: Re: PHP 4.0 Bug #6715 Updated: db.c ver 1.43 is not working properly on windows
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39568@lists.php.net to get a copy of this message
> ID: 6715 > Updated by: sniper > Reported By: helio@helio.com.br > Status: Bogus why are you marking it bogus? it *is* still existant. imo it's not a good idea to cleanup the whole bug db, if you're deleting bugreports that are correct and existant. daniel > Bug Type: DBM/DBA related > Assigned To: > Comments: > > > > Previous Comments: > -------------------------------------------------------------------------- - > > [2000-09-13 12:18:39] helio@helio.com.br > 1st. dbmreplace is not working > 2nd. first charachter of keys disappear sometimes: > This my code: > <? > echo "<br><b>dblist function</b> ".dblist(); > //$aArray=array("1st"=>"Dbase" , > "2nd"=>"Access" , "3rd"=>"Oracle" , "4th"=>"Sybase"); > $db=dbmopen("dbtest.dbm", "c") or die("Can't create database > n"); > echo "<br>Database Opened"; > // insert/replace array into database > while (list ($key, $val) = each ($aArray)) { > echo "<br> $key => $val //-> function returned = n"; > if ( dbmexists($db, $key) ) { > echo "Replace => ".dbmreplace($db, $key, $val) ; > } else { > echo "Insert => ".dbminsert($db, $key, $val) ; > } > } > // listing dbatabase > echo "<P> Listing Database n"; > $key = dbmfirstkey($db); > while ($key) { > echo "<br>$key = " . dbmfetch($db, $key) . "n"; > $key = dbmnextkey($db, $key); > } > echo "<P> Closing Database n"; > dbmclose($db) or die("<br>dbmclose failled</b> n"); > > This code produces : > > Database Opened > 1st => Dbase //-> function returned = Insert => 0 > 2nd => Access //-> function returned = Insert => 0 > 3rd => Oracle //-> function returned = Insert => 0 > 4th => Sybase //-> function returned = Insert => 0 > > Listing Database > 1st = base3 > 2nd = ccess3 > 3rd = Oracle > 4th = ybasee > > Closing Database > > > -------------------------------------------------------------------------- - > > > Full Bug description available at: http://bugs.php.net/?id=6715 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > /*-- daniel beulshausen - daniel@php4win.de using php on windows? http://www.php4win.de

« previous php.dev (#39568) next »