php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5841 Warning: second parameter must be array of arrays ...
Submitted: 2000-07-28 18:48 UTC Modified: 2000-09-06 00:04 UTC
From: t0020776 at tpts8 dot seed dot net dot tw Assigned:
Status: Closed Package: dBase related
PHP Version: 4.0.0 OS: FreeBSD4.0
Private report: No CVE-ID: None
 [2000-07-28 18:48 UTC] t0020776 at tpts8 dot seed dot net dot tw
Warning: second parameter must be array of arrays in /home/www/data/test4.php on line 9

<?php
// "database" name
$dbname = "/tmp/test.dbf";

// database "definition"
$def=array(array("date","D"),array("name","C",50),array("age","N",3,0),array("email","C",128),array("ismember", "L"));

// creation
if (!dbase_create($dbname, $def))
print "<strong>Error!</strong>"; 
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-23 08:36 UTC] sniper@php.net
Are you sure you have copy-pasted that example right?

This is wrong:   array("name&uot;,"C", 50) 
It should be:    array("name","C",50)

Please check your code if it has that same typo..

--Jani
 [2000-09-06 00:04 UTC] sterling@php.net
This is fixed in 4.0.2
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 09 01:03:34 2021 UTC