PHP 4.0 Bug #5625: dbase_create error with array of arrays
| From: | areding at cmdnet dot lu | Date: | Sun, 16 Jul 2000 15:07:10 +0000 |
| Subject: | PHP 4.0 Bug #5625: dbase_create error with array of arrays | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24657@lists.php.net to get a copy of this message | ||
From: areding@cmdnet.lu
Operating system: Linux
PHP version: 4.0.1pl2
PHP Bug Type: dBase related
Bug description: dbase_create error with array of arrays
$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 .