????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.144.237.31 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/dba/tests/ |
Upload File : |
--TEST-- DBA CDB handler test --SKIPIF-- <?php $handler = 'cdb'; require_once(dirname(__FILE__) .'/skipif.inc'); die('info CDB does not support replace or delete'); ?> --FILE-- <?php $handler = 'cdb'; require_once(dirname(__FILE__) .'/test.inc'); echo "Test 0\n"; if (($db_file = dba_open($db_filename, 'n', $handler))!==FALSE) { var_dump(dba_insert("key1", "Content String 1", $db_file)); var_dump(dba_replace("key1", "New Content String", $db_file)); var_dump(dba_fetch("key1", $db_file)); var_dump(dba_firstkey($db_file)); var_dump(dba_delete("key1", $db_file)); var_dump(dba_optimize($db_file)); var_dump(dba_sync($db_file)); dba_close($db_file); } else { echo "Failed to open DB\n"; } unlink($db_filename); echo "Test 1\n"; if (($db_file = dba_open($db_filename, 'c', $handler))!==FALSE) { dba_insert("key1", "Content String 1", $db_file); dba_close($db_file); } else { echo "Failed to open DB\n"; } echo "Test 2\n"; if (($db_file = dba_open($db_filename, 'r', $handler))!==FALSE) { dba_insert("key1", "Content String 1", $db_file); dba_close($db_file); } else { echo "Failed to open DB\n"; } echo "Test 3\n"; if (($db_file = dba_open($db_filename, 'w', $handler))!==FALSE) { echo dba_fetch("key1", $db_file), "\n"; dba_close($db_file); } else { echo "Failed to open DB\n"; } ?> ===DONE=== --CLEAN-- <?php require(dirname(__FILE__) .'/clean.inc'); ?> --EXPECTF-- Test 0 bool(true) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) Test 1 Warning: dba_open(%stest0.dbm,c): Driver initialization failed for handler: cdb: Update operations are not supported in %sdba_cdb_001.php on line %d Failed to open DB Test 2 Warning: dba_insert(): You cannot perform a modification to a database without proper access in %sdba_cdb_001.php on line %d Test 3 Warning: dba_open(%stest0.dbm,w): Driver initialization failed for handler: cdb: Update operations are not supported in %sdba_cdb_001.php on line %d Failed to open DB ===DONE===