/PHP-5.4/ext/mysqli/tests/ |
H A D | 020.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 16 mysqli_query($link, "SET sql_mode=''"); 18 mysqli_query($link,"DROP TABLE IF EXISTS test_bind_result"); 20 $rc = @mysqli_query($link,"CREATE TABLE test_bind_result( 30 $rc = mysqli_query($link,"CREATE TABLE test_bind_result( 65 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"); 66 mysqli_close($link); 76 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result")) 77 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 023.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 16 mysqli_query($link, "SET sql_mode=''"); 18 mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch"); 19 mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 int unsigned, 40 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 50 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 51 mysqli_close($link); 61 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 62 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 024.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 16 mysqli_query($link, "SET sql_mode=''"); 18 mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch"); 19 mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 smallint unsigned, 41 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 51 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 52 mysqli_close($link); 61 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 62 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 026.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 16 mysqli_query($link, "SET sql_mode=''"); 18 mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch"); 21 $stmt = mysqli_prepare ($link, "INSERT INTO test_bind_fetch VALUES (?,?)"); 33 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 43 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 44 mysqli_close($link); 53 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 54 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 042.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 16 mysqli_query($link, "SET sql_mode=''"); 18 mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch"); 19 mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 smallint unsigned, 41 $result = mysqli_query($link, "SELECT * FROM test_bind_fetch"); 47 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 48 mysqli_close($link); 57 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 58 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_get_warnings.phpt | 17 $link = NULL; 37 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 69 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 91 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 94 printf("[023] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 103 printf("[026] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 120 printf("[031] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 123 printf("[032] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug34785.phpt | 14 public function __construct($link, $query) { 15 parent::__construct($link, $query); 21 public function __construct($link, $query) { 22 parent::__construct($link, $query); 27 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 28 mysqli_query($link, "SET sql_mode=''"); 30 $stmt = new my_stmt($link, "SELECT 'foo' FROM DUAL"); 39 mysqli_real_query($link, "SELECT 'bar' FROM DUAL"); 40 $result = new my_result($link, MYSQLI_STORE_RESULT); 46 mysqli_close($link);
|
H A D | mysqli_sqlstate.phpt | 14 $link = NULL; 19 if (!is_null($tmp = @mysqli_sqlstate($link))) 24 var_dump(@mysqli_sqlstate($link, "foo")); 26 var_dump(mysqli_sqlstate($link)); 27 mysqli_query($link, "SELECT unknown_column FROM test"); 28 var_dump(mysqli_sqlstate($link)); 29 mysqli_free_result(mysqli_query($link, "SELECT id FROM test")); 30 var_dump(mysqli_sqlstate($link)); 32 mysqli_close($link); 34 var_dump(mysqli_sqlstate($link));
|
H A D | mysqli_connect_twice.phpt | 13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 17 if (!$thread_id = mysqli_thread_id($link)) 18 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) || 31 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 36 mysqli_close($link); 38 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 42 if (!$thread_id = $link->thread_id) 43 … Cannot determine thread id, test will fail, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 56 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_warning_count.phpt | 14 $link = NULL; 19 if (!is_null($tmp = @mysqli_warning_count($link))) 24 if (NULL !== ($tmp = @mysqli_warning_count($link, "too_many"))) 27 if (!$res = mysqli_query($link, "SELECT id, label FROM test")) 28 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 if (0 !== ($tmp = mysqli_warning_count($link))) 33 if (!mysqli_query($link, "DROP TABLE IF EXISTS this_table_does_not_exist")) 34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 36 if (1 !== ($tmp = mysqli_warning_count($link))) 39 mysqli_close($link); [all …]
|
H A D | bug32405.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 14 mysqli_select_db($link, "test"); 15 mysqli_query($link, "SET sql_mode=''"); 19 …$link->query('INSERT INTO test_users VALUES (NULL, "user1"), (NULL, "user2"), (NULL, "user3"), (NU… 22 if ($stmt = $link->prepare("SELECT SQL_NO_CACHE user_id, login FROM test_users")) { 31 mysqli_query($link,"DROP TABLE test_users"); 32 mysqli_close($link); 37 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 40 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_users")) 41 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_no_reconnect.phpt | 20 $thread_id_timeout = mysqli_thread_id($link); 25 mysqli_errno($link2), mysqli_error($link)); 35 mysqli_errno($link2), mysqli_error($link)); 38 printf("[004] Cannot set wait_timeout, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 mysqli_errno($link), mysqli_error($link)); 46 mysqli_errno($link), mysqli_error($link)); 51 mysqli_errno($link), mysqli_error($link)); 69 if (false !== @mysqli_ping($link)) 74 mysqli_errno($link), mysqli_error($link)); 116 if (false !== ($tmp = @mysqli_ping($link))) [all …]
|
H A D | mysqli_more_results.phpt | 20 $link = NULL; 31 var_dump(mysqli_more_results($link)); 34 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 41 if (mysqli_get_server_version($link) > 41000 && !($ret = mysqli_more_results($link))) 44 $res = mysqli_store_result($link); 46 if (mysqli_more_results($link)) 62 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 65 if (mysqli_get_server_version($link) > 41000 && !($ret = mysqli_more_results($link))) 71 $res = mysqli_use_result($link); 78 if (mysqli_more_results($link)) [all …]
|
H A D | mysqli_stmt_bind_param_many_columns.phpt | 33 if (!$link->query("SET GLOBAL max_allowed_packet=(2<<29)")) { 34 if (1227 == mysqli_errno($link)) { 39 …ed to set max_allowed_packet the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 mysqli_close($link); 51 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) { 52 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 61 if (mysqli_errno($link)) { 62 printf("Failed to create the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 87 if (1227 != mysqli_errno($link)) 88 …ed to set max_allowed_packet the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_num_rows.phpt | 14 $link = NULL; 19 if (!is_null($tmp = @mysqli_num_rows($link))) 26 if (!$res = mysqli_query($link, $query, MYSQLI_STORE_RESULT)) { 27 printf("[%03d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link)); 43 func_test_mysqli_num_rows($link, "SELECT 1 AS a", 1, 5); 44 func_test_mysqli_num_rows($link, "SHOW VARIABLES LIKE '%nixnutz%'", 0, 10); 48 if ($res = mysqli_query($link, 'SELECT COUNT(id) AS num FROM test')) { 56 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 61 if ($res = mysqli_query($link, 'SELECT id FROM test', MYSQLI_USE_RESULT)) { 70 printf("[032] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 058.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 17 mysqli_query($link,"DROP TABLE IF EXISTS mbind"); 18 mysqli_query($link,"CREATE TABLE mbind (a int, b varchar(10))"); 20 $stmt = mysqli_prepare($link, "INSERT INTO mbind VALUES (?,?)"); 37 $stmt = mysqli_prepare($link, "SELECT * FROM mbind"); 48 mysqli_close($link); 54 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 57 if (!mysqli_query($link, "DROP TABLE IF EXISTS mbind")) 58 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 018.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 if (!mysqli_query($link, "SET AUTOCOMMIT=0")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 18 if (!$stmt = mysqli_prepare($link, "SELECT @@autocommit")) 19 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 28 mysqli_close($link);
|
H A D | mysqli_set_local_infile_handler_new_query.phpt | 2 mysqli_set_local_infile_handler() - run new query on db link 20 if ($msg = check_local_infile_support($link, $engine)) 21 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error)); 23 mysqli_close($link); 34 global $link; 39 if (is_object($link)) { 40 if (!$res = mysqli_query($link, "SELECT id, label FROM test")) { 42 $invocation, mysqli_errno($link), mysqli_error($link)); 51 mysqli_set_local_infile_default($link); 57 try_handler(20, $link, $file, 'callback_new_query', $expected); [all …]
|
H A D | mysqli_set_local_infile_handler_close_link.phpt | 2 mysqli_set_local_infile_handler() - close database link 16 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 20 if ($msg = check_local_infile_support($link, $engine)) 21 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error)); 23 mysqli_close($link); 33 global $link; 38 if (is_object($link)) 39 mysqli_close($link); 50 try_handler(20, $link, $file, 'callback_close_link', $expected); 51 mysqli_close($link);
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | 001.phpt | 14 @unlink('test.link'); 30 echo "test.link exists\n"; 39 if (is_link('test.link')) { 56 $s = stat ('test.link'); 57 $ls = lstat ('test.link'); 64 echo "test.link is " . filetype('test.link') . "\n"; 92 if (is_dir('test.link')) { 108 unlink('test.link'); 124 test.link exists 126 test.link is a symlink [all …]
|
/PHP-5.4/ext/mysql/tests/ |
H A D | bug47438.phpt | 12 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) 16 mysql_select_db($db, $link); 17 mysql_query("DROP TABLE IF EXISTS test_47438", $link); 18 mysql_query("CREATE TABLE test_47438 (a INT, b INT, c INT)", $link); 20 $result = mysql_query("SELECT * FROM test_47438", $link); 32 mysql_query("DROP TABLE IF EXISTS test_47438", $link); 39 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) 43 if (!mysql_select_db($db, $link) || 44 !mysql_query("DROP TABLE IF EXISTS test_47438", $link)) 45 printf("[c002] [%d] %s\n", mysql_errno($link), mysql_error($link)); [all …]
|
H A D | mysql_max_persistent.phpt | 9 mysql_query('DROP USER pcontest', $link); 11 printf("skip Cannot create second DB user [%d] %s", mysql_errno($link), mysql_error($link)); 12 mysql_close($link); 18 …printf("skip Cannot GRANT SELECT to second DB user [%d] %s", mysql_errno($link), mysql_error($link… 20 mysql_query('DROP USER pcontest', $link); 21 mysql_close($link); 24 mysql_close($link); 42 if (!$link) { 49 if (!mysql_select_db($db, $link)) 52 return $link; [all …]
|
H A D | table.inc | 5 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) { 11 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) { 12 printf("Failed to drop old test table: [%d] %s\n", mysql_errno($link), mysql_error($link)); 16 …ysql_query('CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE=' . $engine, $link)) { 17 printf("Failed to create test table: [%d] %s\n", mysql_errno($link), mysql_error($link)); 21 … INTO test(id, label) VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd'), (5, 'e'), (6, 'f')", $link)) { 22 printf("[%d] %s\n", mysql_errno($link), mysql_error($link));
|
H A D | mysql_error.phpt | 13 $link = NULL; 18 if (NULL !== ($tmp = @mysql_error($link))) 21 if (!is_null($tmp = @mysql_error($link, 'too many args'))) 29 $tmp = mysql_error($link); 31 … string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link)); 33 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) { 34 printf("[005] Failed to drop old test table: [%d] %s\n", mysql_errno($link), mysql_error($link)); 37 mysql_query('SELECT * FROM test', $link); 38 $tmp = mysql_error($link); 47 mysql_close($link); [all …]
|
/PHP-5.4/ext/ldap/tests/ |
H A D | ldap_add_error.phpt | 17 var_dump(ldap_add($link)); 27 ldap_add($link, "weirdAttribute=val", array( 30 ldap_error($link), 31 ldap_errno($link) 46 var_dump(ldap_error($link), ldap_errno($link)); 60 ldap_error($link), 61 ldap_errno($link) 76 ldap_error($link), 77 ldap_errno($link) 85 ldap_error($link), [all …]
|