PHP 4.0 Bug #5841 Updated: Warning: second parameter must be array of arrays ...
| From: | Bug Database | Date: | Wed, 06 Sep 2000 04:04:58 +0000 |
| Subject: | PHP 4.0 Bug #5841 Updated: Warning: second parameter must be array of arrays ... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32296@lists.php.net to get a copy of this message | ||
ID: 5841
Updated by: sterling
Reported By: t0020776@tpts8.seed.net.tw
Status: Closed
Bug Type: dBase related
Assigned To:
Comments:
This is fixed in 4.0.2
Previous Comments:
[2000-08-23 08:36:52] 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-07-28 18:48:13] t0020776@tpts8.seed.net.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>";
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5841