1--TEST-- 2DBA dba.default_handler tests 3--EXTENSIONS-- 4dba 5--SKIPIF-- 6<?php 7$handler = "flatfile"; 8require_once(__DIR__ .'/skipif.inc'); 9?> 10--INI-- 11dba.default_handler=flatfile 12--FILE-- 13<?php 14$handler = "flatfile"; 15require_once(__DIR__ .'/test.inc'); 16echo "database handler: $handler\n"; 17 18echo "Test 1\n"; 19 20ini_set('dba.default_handler', 'does_not_exist'); 21 22var_dump(dba_open($db_filename, 'c')); 23 24echo "Test 2\n"; 25 26ini_set('dba.default_handler', ''); 27 28var_dump(dba_open($db_filename, 'n')); 29 30?> 31--CLEAN-- 32<?php 33require(__DIR__ .'/clean.inc'); 34?> 35--EXPECTF-- 36database handler: flatfile 37Test 1 38 39Warning: ini_set(): No such handler: does_not_exist in %sdba012.php on line %d 40resource(%d) of type (dba) 41Test 2 42 43Warning: dba_open(%stest0.dbm,n): No default handler selected in %sdba012.php on line %d 44bool(false) 45