1--TEST-- 2DBA with array key with empty array 3--SKIPIF-- 4<?php 5require_once(__DIR__ .'/skipif.inc'); 6die("info $HND handler used"); 7?> 8--FILE-- 9<?php 10require_once(__DIR__ .'/test.inc'); 11echo "database handler: $handler\n"; 12 13if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) { 14 dba_insert(array(), "Content String 1", $db_file); 15} else { 16 echo "Error creating database\n"; 17} 18 19?> 20--CLEAN-- 21<?php 22require(__DIR__ .'/clean.inc'); 23?> 24--EXPECTF-- 25database handler: %s 26 27Fatal error: Uncaught Error: Key does not have exactly two elements: (key, name) in %sdba013.php:6 28Stack trace: 29#0 %sdba013.php(6): dba_insert(Array, '%s', Resource id #%d) 30#1 {main} 31 thrown in %sdba013.php on line 6 32