/PHP-5.6/ext/mysqli/tests/ |
H A D | 011.phpt | 15 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 17 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result")) 18 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 26 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result"); 44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"); 45 mysqli_close($link); 54 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result")) 55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 036.phpt | 19 mysqli_select_db($link, $db); 21 mysqli_query($link, "DROP TABLE IF EXISTS t036"); 24 mysqli_query($link, "INSERT INTO t036 (b) VALUES ('foo1')"); 25 $test[] = mysqli_insert_id($link); 33 mysqli_query($link, "INSERT INTO t036 (b) VALUES ('foo2')"); 36 $x = mysqli_insert_id($link); 41 mysqli_query($link, "DROP TABLE IF EXISTS t036"); 42 mysqli_close($link); 51 if (!mysqli_query($link, "DROP TABLE IF EXISTS t036")) 52 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_set_charset.phpt | 22 mysqli_close($link); 24 mysqli_errno($link), mysqli_error($link))); 29 mysqli_close($link); 35 mysqli_close($link); 45 mysqli_close($link); 48 mysqli_close($link); 56 $link = NULL; 64 if (!is_null($tmp = @mysqli_set_charset($link, $link))) 70 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 78 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 005.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 25 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 39 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 40 mysqli_close($link); 46 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 49 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 50 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_change_user_get_lock.phpt | 24 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 27 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 47 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 50 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 55 mysqli_errno($link), mysqli_error($link)); 59 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 62 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 67 mysqli_errno($link), mysqli_error($link)); 84 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug49442.phpt | 8 $link = mysqli_init(); 15 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error)); 17 mysqli_close($link); 27 $link = mysqli_init(); 37 printf("[003] Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 48 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 52 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 63 mysqli_close($link); 87 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 93 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_execute_stored_proc_out.phpt | 11 if (mysqli_get_server_version($link) < 50503) { 29 if (!mysqli_query($link, 'DROP PROCEDURE IF EXISTS p')) 30 printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 33 if (!$stmt = mysqli_prepare($link, 'CALL p(?, ?)')) 34 printf("[005] Cannot prepare CALL, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 56 if (!$res = $link->query("SELECT 1")) 57 printf("[013] [%d] %s\n", $link->errno, $link->error); 60 printf("[004] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 63 mysqli_close($link); 72 @mysqli_query($link, 'DROP PROCEDURE IF EXISTS p'); [all …]
|
H A D | mysqli_stmt_bind_result_zerofill.phpt | 18 if (!mysqli_query($link, $sql)) { 25 $offset, mysqli_errno($link), mysqli_error($link)); 31 $offset, mysqli_errno($link), mysqli_error($link)); 75 zerofill(2, $link, 'TINYINT'); 78 zerofill(5, $link, 'INT'); 79 zerofill(6, $link, 'INTEGER'); 80 zerofill(7, $link, 'BIGINT'); 81 zerofill(8, $link, 'FLOAT'); 82 zerofill(9, $link, 'DOUBLE'); 86 zerofill(12, $link, 'DEC'); [all …]
|
H A D | 019.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 if (!mysqli_query($link, "DROP TABLE IF EXISTS insert_read")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 26 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 54 mysqli_query($link, "DROP TABLE IF EXISTS insert_read"); 55 mysqli_close($link); 64 if (!mysqli_query($link, "DROP TABLE IF EXISTS insert_read")) 65 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_info.phpt | 21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 24 if (!is_null($tmp = mysqli_info($link)) || ('' != $tmp)) 28 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp)) 37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 54 if (!$res = mysqli_query($link, "SELECT 1")) 55 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 76 if (!mysqli_query($link, "DELETE FROM test")) { [all …]
|
H A D | 046.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 test_affected"); 20 mysqli_query($link, "INSERT INTO test_affected VALUES (1),(2),(3),(4),(5)"); 22 $stmt = mysqli_prepare($link, "DELETE FROM test_affected WHERE foo=?"); 33 mysqli_query($link, "DROP TABLE IF EXISTS test_affected"); 34 mysqli_close($link); 40 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 43 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_affected")) 44 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | table.inc | 4 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 10 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) { 11 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 15 if (!mysqli_query($link, 'SET SESSION sql_mode=\'\'')) { 16 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 20 if (!mysqli_query($link, 'CREATE TABLE test(id INT DEFAULT 0, label CHAR(1), PRIMARY KEY(id)) ENGIN… 21 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 25 if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd')… 26 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link));
|
H A D | 059.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 17 mysqli_query($link, "SET SQL_MODE='PIPES_AS_CONCAT'"); 19 mysqli_query($link,"DROP TABLE IF EXISTS mbind"); 20 mysqli_query($link,"CREATE TABLE mbind (b varchar(25))"); 22 $stmt = mysqli_prepare($link, "INSERT INTO mbind VALUES (?||?)"); 33 $stmt = mysqli_prepare($link, "SELECT * FROM mbind"); 41 mysqli_close($link); 50 if (!mysqli_query($link, "DROP TABLE IF EXISTS mbind")) 51 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 041.phpt | 14 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 mysqli_select_db($link, $db); 17 mysqli_query($link, "DROP TABLE IF EXISTS test_warnings"); 18 mysqli_query($link, "DROP TABLE IF EXISTS test_warnings"); 20 var_dump(mysqli_warning_count($link)); 22 mysqli_close($link); 28 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 31 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_warnings")) 32 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 mysqli_close($link);
|
H A D | 043.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 test_update"); 18 mysqli_query($link,"CREATE TABLE test_update(a varchar(10), 21 mysqli_query($link, "INSERT INTO test_update VALUES ('foo', 2)"); 23 $stmt = mysqli_prepare($link, "UPDATE test_update SET a=?,b=? WHERE b=?"); 39 mysqli_query($link, "DROP TABLE IF EXISTS test_update"); 40 mysqli_close($link); 49 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_update")) 50 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_change_user_set_names.phpt | 13 die(sprintf("skip [%d] %s\n", mysqli_errno($link), mysqli_error($link))); 32 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 if (!$res = mysqli_query($link, 'SELECT 49 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 52 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 99 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 102 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 118 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 121 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
/PHP-5.6/ext/mysql/tests/ |
H A D | mysql_query.phpt | 13 $link = NULL; 18 if (false !== ($tmp = @mysql_query($link))) 32 if ((0 === mysql_errno($link)) || ('' == mysql_error($link))) 36 printf("[007] [%d] %s\n", mysql_errno($link), mysql_error($link)); 42 printf("[007a] [%d] %s\n", mysql_errno($link), mysql_error($link)); 49 printf("[008] [%d] %s\n", mysql_errno($link), mysql_error($link)); 67 printf("[011] [%d] %s\n", mysql_errno($link), mysql_error($link)); 84 printf("[014] [%d] %s\n", mysql_errno($link), mysql_error($link)); 88 mysql_close($link); 106 printf("[clean] Failed to drop test table: [%d] %s\n", mysql_errno($link), mysql_error($link)); [all …]
|
H A D | mysql_unbuffered_query.phpt | 13 $link = NULL; 15 if (false !== ($tmp = @mysql_unbuffered_query($link))) 29 if ((0 === mysql_errno($link)) || ('' == mysql_error($link))) 33 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link)); 39 printf("[007] [%d] %s\n", mysql_errno($link), mysql_error($link)); 57 printf("[010] [%d] %s\n", mysql_errno($link), mysql_error($link)); 74 printf("[012] [%d] %s\n", mysql_errno($link), mysql_error($link)); 82 mysql_close($link); 100 printf("[clean] Failed to drop test table: [%d] %s\n", mysql_errno($link), mysql_error($link)); 105 @mysql_query('DROP FUNCTION IF EXISTS f', $link); [all …]
|
H A D | mysql_insert_id.phpt | 14 $link = NULL; 19 if (NULL !== ($tmp = @mysql_insert_id($link))) 27 if (0 !== ($tmp = mysql_insert_id($link))) 31 printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link)); 33 if (0 !== ($tmp = mysql_insert_id($link))) 39 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link)); 41 if (0 !== ($tmp = mysql_insert_id($link))) 45 printf("[008] [%d] %s\n", mysql_errno($link), mysql_error($link)); 48 printf("[009] [%d] %s\n", mysql_errno($link), mysql_error($link)); 58 mysql_close($link); [all …]
|
/PHP-5.6/ext/ldap/tests/ |
H A D | ldap_next_attribute_basic.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", "(cn=userC)"); 16 $entry = ldap_first_entry($link, $result); 17 $attribute = ldap_first_attribute($link, $entry); 19 ldap_next_attribute($link, $entry), 20 ldap_next_attribute($link, $entry), 21 ldap_next_attribute($link, $entry), 22 ldap_next_attribute($link, $entry) 30 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); [all …]
|
H A D | ldap_next_reference_basic.phpt | 13 insert_dummy_data($link, $base); 14 ldap_add($link, "cn=userref,$base", array( 19 ldap_add($link, "cn=userref2,$base", array( 24 ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER); 25 $result = ldap_search($link, "$base", "(cn=*)"); 26 $ref = ldap_first_reference($link, $result); 27 var_dump($ref2 = ldap_next_reference($link, $ref)); 28 ldap_parse_reference($link, $ref2, $refs); 39 ldap_delete($link, "cn=userref,$base"); 40 ldap_delete($link, "cn=userref2,$base"); [all …]
|
H A D | ldap_sort_error.phpt | 12 $link = ldap_connect($host, $port); 13 var_dump(ldap_sort($link)); 14 var_dump(ldap_sort($link, $link)); 15 var_dump(ldap_sort($link, $link, $link, $link)); 16 var_dump(ldap_sort($link, $link, $link)); 17 var_dump(ldap_sort($link, $link, "sn"));
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | symlink_link_linkinfo_is_link_variation5.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - work on deleted link 11 /* Prototype: bool symlink ( string $target, string $link ); 12 Description: creates a symbolic link to the existing target with the specified name link 17 Prototype: bool link ( string $target, string $link ); 18 Description: Create a hard link 21 Description: Gets information about a link 29 // link name used here 44 var_dump( symlink($filename, $linkname) ); // create link 46 // delete the link 47 var_dump( unlink($linkname) ); // delete the link [all …]
|
H A D | symlink_link_linkinfo_is_link_basic1.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to files 12 Description: creates a symbolic link to the existing target with the specified name link 17 Prototype: bool link ( string $target, string $link ); 18 Description: Create a hard link 53 /* create soft/hard link to the file 58 // create soft link 62 // checking if given file is soft link 67 // testing on hard link 69 // creating hard link 70 var_dump( link($file, $linkname) ); [all …]
|
H A D | symlink_link_linkinfo_is_link_variation2.phpt | 11 /* Prototype: bool symlink ( string $target, string $link ); 12 Description: creates a symbolic link to the existing target with the specified name link 15 Description: Tells whether the given file is a symbolic link. 17 Prototype: bool link ( string $target, string $link ); 18 Description: Create a hard link 21 Description: Gets information about a link 24 /* Variation 2 : Create hard link to non-existent file */ 32 echo "*** Creating a hard link to a non-existent file ***\n"; 33 // creating hard link to non_existent file 43 *** Creating a hard link to a non-existent file *** [all …]
|