mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
- Fixed paths
This commit is contained in:
parent
085067a9aa
commit
96d24a59e5
@ -3,13 +3,13 @@ Bug #36436 (DBA problem with Berkeley DB4)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'db4';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$handler = 'db4';
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
|
||||
$db = dba_popen($db_filename, 'c', 'db4');
|
||||
|
||||
|
@ -3,13 +3,13 @@ Bug #48240 (DBA Segmentation fault dba_nextkey)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'db4';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$handler = 'db4';
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
|
||||
$db = dba_open($db_filename, 'c', 'db4');
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA File Creation Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
echo "database file created\n";
|
||||
@ -18,4 +18,4 @@ DBA File Creation Test
|
||||
?>
|
||||
--EXPECTF--
|
||||
database handler: %s
|
||||
database file created
|
||||
database file created
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA Insert/Fetch Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
dba_insert("key1", "This is a test insert", $db_file);
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA Insert/Replace/Fetch Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
dba_insert("key1", "This is a test insert", $db_file);
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA Multiple Insert/Fetch Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
dba_insert("key1", "Content String 1", $db_file);
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA FirstKey/NextKey Loop Test With 5 Items
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
dba_insert("key1", "Content String 1", $db_file);
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA FirstKey/NextKey with 2 deletes
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
dba_insert("key1", "Content String 1", $db_file);
|
||||
@ -34,4 +34,4 @@ DBA FirstKey/NextKey with 2 deletes
|
||||
?>
|
||||
--EXPECTF--
|
||||
database handler: %s
|
||||
3NYNYY
|
||||
3NYNYY
|
||||
|
@ -2,13 +2,13 @@
|
||||
DBA Multiple File Creation Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
if (!function_exists('dba_list')) die('skip dba_list() not available');
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
$db_file1 = dirname(__FILE__).'/test1.dbm';
|
||||
$db_file2 = dirname(__FILE__).'/test2.dbm';
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA magic_quotes_runtime Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
|
||||
ini_set('magic_quotes_runtime', 0);
|
||||
|
@ -2,12 +2,12 @@
|
||||
DBA dba_popen Test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
print("info $HND handler used");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
if (($db=dba_popen($db_file, "n", $handler))!==FALSE) {
|
||||
echo "Opened\n";
|
||||
|
@ -3,14 +3,14 @@ DBA CDB handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'cdb';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die('info CDB does not support replace or delete');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'cdb';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -5,13 +5,13 @@ magic_quotes_runtime=1
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'cdb_make';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
die('info CDB_MAKE does not support reading');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'cdb_make';
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
echo "database handler: $handler\n";
|
||||
// print md5 checksum of test.cdb which is generated by cdb_make program
|
||||
var_dump(md5_file(dirname(__FILE__).'/test.cdb'));
|
||||
|
@ -3,7 +3,7 @@ DBA CDB handler test (read only)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'cdb_make';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
@ -62,4 +62,4 @@ database handler: cdb
|
||||
#1122
|
||||
?1212314
|
||||
#1212314
|
||||
=1231324
|
||||
=1231324
|
||||
|
@ -3,13 +3,13 @@ DBA DB1 handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'db1';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'db1';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,13 +3,13 @@ DBA DB2 handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'db2';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'db2';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,13 +3,13 @@ DBA DB3 handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'db3';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'db3';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,13 +3,13 @@ DBA DB4 handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'db4';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'db4';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,13 +3,13 @@ DBA DBM handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'dbm';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'dbm';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,13 +3,13 @@ DBA FlatFile handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'flatfile';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'flatfile';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,14 +3,14 @@ DBA GDBM handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'gdbm';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'gdbm';
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
$lock_flag = ''; // lock in library
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
|
||||
// Read during write is system dependant. Important is that there is no deadlock
|
||||
?>
|
||||
|
@ -3,13 +3,13 @@ DBA INIFILE handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'inifile';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'inifile';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,13 +3,13 @@ DBA NDBM handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'ndbm';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'ndbm';
|
||||
require_once('test.inc');
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
|
@ -3,14 +3,14 @@ DBA QDBM handler test
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$handler = 'qdbm';
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$handler = 'qdbm';
|
||||
require_once('test.inc');
|
||||
require_once dirname(__FILE__) .'/test.inc';
|
||||
$lock_flag = ''; // lock in library
|
||||
require_once('dba_handler.inc');
|
||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once('skipif.inc');
|
||||
require_once dirname(__FILE__) .'/skipif.inc';
|
||||
$lock_flag = 'l';
|
||||
$db_filename = $db_file = dirname(__FILE__).'/test0.dbm';
|
||||
$db_filename = $db_file = dirname(__FILE__) .'/test0.dbm';
|
||||
@unlink($db_filename);
|
||||
@unlink($db_filename.'.lck');
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user