php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3777 Dbase_create fails to recognize array of arrays
Submitted: 2000-03-08 20:28 UTC Modified: 2001-10-31 18:54 UTC
From: candrsn at mindsprng dot com Assigned:
Status: Closed Package: dBase related
PHP Version: 4.0b4pl1 OS: Solaris 2.7
Private report: No CVE-ID: None
 [2000-03-08 20:28 UTC] candrsn at mindsprng dot 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; }

?>
 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 15:57 UTC] jimw@php.net
fixing version number in report.
 [2001-10-31 18:54 UTC] sniper@php.net
Works fine with latest CVS.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC