php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5625 dbase_create error with array of arrays
Submitted: 2000-07-16 11:07 UTC Modified: 2000-07-16 11:08 UTC
From: areding at cmdnet dot lu Assigned:
Status: Closed Package: dBase related
PHP Version: 4.0.1pl2 OS: Linux
Private report: No CVE-ID: None
 [2000-07-16 11:07 UTC] areding at cmdnet dot lu
$dbname = "marreg.dbf";

$def =
	array (
		array("Regist_id","N",5,0),
		array("Name","C",30),
		array("First_name","C",30),
		array("Email_from","C",30),
		array("Distance","N",2,0),
		array("Street","C",30),
		array("Zip_Code","C",30),
		array("City","C",30),
		array("Country","C",30),
		array("Nat","C",30),
		array("Year_birth","C",30),		
		array("Gender","C",1),
		array("Club","C",30),
		array("Best_time","C",30),
		array("Number_PP","C",30),
		array("Tshirt","C",2),
		array("Comments","C",250),
		array("Amount","N",10,0),
		array("res_time","C",12)
	);
	
$dbase_ident=dbase_create($dbname,$def)

While running the script, I receive the following error message .

Warning: second parameter must be array of arrays in make_reg_list_n.php on line 32

It seems that the dbase_create doesn't like my definition $def anymore (php4 only, no problem with php3)! That's the way it is described in the manual and to me, $def is definitly an array of arrays .

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-16 11:08 UTC] sterling at cvs dot php dot net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 19:01:31 2024 UTC