Bug #3777 Updated: Dbase_create fails to recognize array of arrays
| From: | sniper@php.net | Date: | Wed, 31 Oct 2001 23:54:21 +0000 |
| Subject: | Bug #3777 Updated: Dbase_create fails to recognize array of arrays | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69433@lists.php.net to get a copy of this message | ||
ID: 3777
Updated by: sniper
Reported By: candrsn@mindsprng.com
Old Status: Open
Status: Closed
Bug Type: dBase related
Operating System: Solaris 2.7
PHP Version: 4.0b4pl1
New Comment:
Works fine with latest CVS.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-02-10 15:57:17] jimw@php.net
fixing version number in report.
------------------------------------------------------------------------
[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;
}
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=3777&edit=1