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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: t0020776 at tpts8 dot seed dot net dot tw
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC