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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Wed Apr 24 00:01:32 2024 UTC