PHP 4.0 Bug #3777 Updated: Dbase_create fails to recognize array of arrays
| From: | jimw@php.net | Date: | Sat, 10 Feb 2001 20:57:17 +0000 |
| Subject: | PHP 4.0 Bug #3777 Updated: Dbase_create fails to recognize array of arrays | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46324@lists.php.net to get a copy of this message | ||
ID: 3777
Updated by: jimw
Reported By: candrsn@mindsprng.com
Status: Open
Bug Type: dBase related
Assigned To:
Comments:
fixing version number in report.
Previous Comments:
---------------------------------------------------------------------------
[2000-03-08 20:28:28] candrsn@mindsprng.com
under 4.0b4p1 for apachemodules and standalone binary
dbase_create fails with message
" second parameter must be array of arrays in ... "
this same fcn runs under 3.0.15
and runs correctly under linux rh6.1 with 4.0b4p1
compiler was gcc 2.95.2
flags were
scripts was
<?php
$dcfile = '/tables/ave/datacat/datacat.dbf';
$dbfdef = array (
array ('DATASRC','C',100,0),
array ('DATALIMIT','C',250,0),
array ('DATACLLCT','C',250,0),
array ('DATADESCR','C',250,0),
array ('DATANAME','C',80,0),
array ('LEGEND_SRC','C',80,0),
array ('CATEGORY','C',30,0),
array ('SCRIPT','C',80,0)
);
$dbf = dbase_create ($dcfile, $dbfdef);
if ( !$dbf ) { echo "unable to create file!!!<br></body></html>"; exit;
}
?>
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=3777&edit=2