/PHP-5.6/ext/mysqli/tests/ |
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 | 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 | 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 | 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_real_escape_string_big5.phpt | 13 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 17 if (!mysqli_set_charset($link, 'big5')) 19 mysqli_close($link); 32 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) { 33 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), 34 mysqli_error($link)); 39 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), 40 mysqli_error($link)); 43 var_dump(mysqli_set_charset($link, "big5")); 69 var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, [all …]
|
H A D | 060.phpt | 19 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 21 mysqli_select_db($link, $db); 22 mysqli_query($link, "SET sql_mode=''"); 24 mysqli_query($link,"DROP TABLE IF EXISTS test_fetch"); 25 mysqli_query($link,"CREATE TABLE test_fetch(c1 smallint unsigned, 35 $result = mysqli_query($link, "SELECT * FROM test_fetch"); 41 mysqli_close($link); 48 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 51 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_fetch")) 52 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 016.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 if (!mysqli_query($link, "SET @dummy='foobar'")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 18 if (!$stmt = mysqli_prepare($link, "SELECT @dummy")) 19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 28 mysqli_close($link);
|
H A D | bug55283.phpt | 12 if (!($link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))) 16 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) { 19 if ($link->errno == 1064 && ($res = $link->query("SHOW VARIABLES"))) { 24 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error)); 30 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error)); 33 die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error)); 35 $link->close(); 45 $link = mysqli_init(); 46 mysqli_ssl_set($link, null, null, null, null, "RC4-MD5"); 47 if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) { [all …]
|
H A D | mysqli_fetch_array_large.phpt | 14 function mysqli_fetch_array_large($offset, $link, $package_size) { 27 if (!@mysqli_query($link, $sql)) { 28 …if (1153 == mysqli_errno($link) || 2006 == mysqli_errno($link) || stristr(mysqli_error($link), 'ma… 35 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 41 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 48 $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link)); 55 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 107 $link = mysqli_init(); 114 if (!mysqli_query($link, "DROP TABLE IF EXISTS test") || 116 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_kill.phpt | 14 $link = NULL; 29 printf("[004] Cannot determine thread id, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 31 $tmp = mysqli_kill($link, $thread_id); 42 var_dump($link); 47 if ($link->stat != NULL) { 51 if ($link->info != NULL) { 56 mysqli_close($link); 61 mysqli_kill($link, -1); 64 …printf("[011] Connection should not be gone, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 68 mysqli_close($link); [all …]
|
H A D | bug54221.phpt | 17 $link = mysqli_init(); 18 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) { 25 if ($link->multi_query($query)) { 27 $sth = $link->store_result(); 29 if ($link->warning_count) { 30 $warnings = $link->get_warnings(); 37 } while ($link->more_results() && $link->next_result()); 40 mysqli_close($link);
|
H A D | mysqli_store_result_buffered_c.phpt | 16 $link = NULL; 21 if (!$res = mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id")) 22 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 24 if (!is_object($res = mysqli_store_result($link, MYSQLI_STORE_RESULT_COPY_DATA))) 26 gettype($res), $res, mysqli_errno($link), mysqli_error($link)); 30 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
|
H A D | bug52891.phpt | 19 if (!$link->query("DROP TABLE IF EXISTS tuint") || 20 !$link->query("DROP TABLE IF EXISTS tsint")) { 21 printf("[002] [%d] %s\n", $link->errno, $link->error); 26 printf("[003] [%d] %s\n", $link->errno, $link->error); 31 printf("[004] [%d] %s\n", $link->errno, $link->error); 34 printf("[005] [%d] %s\n", $link->errno, $link->error); 107 if (!mysqli_query($link, 'DROP TABLE IF EXISTS tuint')) { 108 …printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link… 111 if (!mysqli_query($link, 'DROP TABLE IF EXISTS tsint')) { 112 …printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link… [all …]
|
/PHP-5.6/ext/mysql/tests/ |
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 | 003.phpt | 20 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) 24 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) 25 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link)); 27 if (!mysql_query("CREATE TABLE test(a varchar(10))", $link)) 28 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link)); 32 printf("[004 - %s] [%d] %s\n", $str, mysql_errno($link), mysql_error($link)); 36 if (!$res = mysql_query("SELECT a FROM test", $link)) 37 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link)); 45 if (!$res = mysql_query("SELECT a FROM test", $link)) 46 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link)); [all …]
|
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_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 …]
|
H A D | mysql_num_rows.phpt | 13 $link = NULL; 18 if (NULL !== ($tmp = @mysql_num_rows($link))) 25 if (!$res = mysql_query($query, $link)) { 26 printf("[%03d] [%d] %s\n", $offset, mysql_errno($link), mysql_error($link)); 41 func_test_mysql_num_rows($link, "SELECT 1 AS a", 1, 5); 42 func_test_mysql_num_rows($link, "SHOW VARIABLES LIKE '%nixnutz%'", 0, 10); 44 func_test_mysql_num_rows($link, "SELECT id FROM test LIMIT 2", 2, 20, true); 46 if ($res = mysql_query('SELECT COUNT(id) AS num FROM test', $link)) { 54 printf("[030] [%d] %s\n", mysql_errno($link), mysql_error($link)); 71 printf("[034] [%d] %s\n", mysql_errno($link), mysql_error($link)); [all …]
|
/PHP-5.6/ext/pdo_dblib/ |
H A D | dblib_driver.c | 80 if (H->link) { in dblib_handle_closer() 81 dbclose(H->link); in dblib_handle_closer() 82 H->link = NULL; in dblib_handle_closer() 139 dbcanquery(H->link); in dblib_handle_doer() 141 return DBCOUNT(H->link); in dblib_handle_doer() 224 dbcancel(H->link); in dblib_handle_last_id() 231 dbcancel(H->link); in dblib_handle_last_id() 236 dbcancel(H->link); in dblib_handle_last_id() 241 …*len = dbconvert(NULL, (dbcoltype(H->link, 1)) , (dbdata(H->link, 1)) , (dbdatlen(H->link, 1)), SQ… in dblib_handle_last_id() 243 dbcancel(H->link); in dblib_handle_last_id() [all …]
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | fflush_variation2.phpt | 46 // creating the sym link 71 -- link opened in w mode -- 76 -- link opened in wb mode -- 81 -- link opened in wt mode -- 86 -- link opened in w+ mode -- 101 -- link opened in a mode -- 106 -- link opened in ab mode -- 111 -- link opened in at mode -- 116 -- link opened in a+ mode -- 132 -- link opened in w mode -- [all …]
|
H A D | unlink_variation3.phpt | 15 /* Delete link files - soft and hard links */ 25 // link name used here 28 echo "-- Testing unlink() on soft link --\n"; 29 // create soft link 31 // unlink soft link 35 echo "-- Testing unlink() on hard link --\n"; 36 // create hard link 37 var_dump( link($filename, $linkname) ); // expected: true 38 // delete hard link 50 -- Testing unlink() on soft link -- [all …]
|
H A D | pathinfo_basic.phpt | 15 "$file_path/foo/symlink.link", 73 %unicode|string%(4) "link" 133 %unicode|string%(4) "link" 148 %unicode|string%(4) "link" 163 %unicode|string%(4) "link" 178 %unicode|string%(4) "link" 193 %unicode|string%(4) "link" 208 %unicode|string%(4) "link" 252 string(12) "symlink.link" 253 string(4) "link" [all …]
|
/PHP-5.6/ext/ldap/tests/ |
H A D | ldap_next_attribute_error.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 14 insert_dummy_data($link, $base); 15 $result = ldap_search($link, "$base", "(objectclass=organization)"); 16 $entry = ldap_first_entry($link, $result); 18 ldap_next_attribute($link), 19 ldap_next_attribute($link, $link), 20 ldap_next_attribute($link, $entry) 28 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 29 remove_dummy_data($link, $base);
|
H A D | skipifbindfailure.inc | 6 $link = ldap_connect($host, $port); 7 ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version); 8 if (!@ldap_bind($link, $user, $passwd)) 9 die(sprintf("skip Can't bind to LDAP Server - [%d] %s", ldap_errno($link), ldap_error($link))); 11 ldap_unbind($link);
|