/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_fetch_assoc_zerofill.phpt | 18 if (!mysqli_query($link, $sql)) { 25 $offset, mysqli_errno($link), mysqli_error($link)); 31 $offset, mysqli_errno($link), mysqli_error($link)); 57 zerofill(2, $link, 'TINYINT'); 60 zerofill(5, $link, 'INT'); 61 zerofill(6, $link, 'INTEGER'); 62 zerofill(7, $link, 'BIGINT'); 63 zerofill(8, $link, 'FLOAT'); 64 zerofill(9, $link, 'DOUBLE'); 67 zerofill(12, $link, 'DEC'); [all …]
|
H A D | 006.phpt | 15 if (!mysqli_query($link, "SET sql_mode=''")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 18 if (!mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch")) 19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 45 mysqli_close($link); 55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 007.phpt | 15 if (!mysqli_query($link, "SET sql_mode=''")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 18 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 45 mysqli_close($link); 55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 008.phpt | 15 if (!mysqli_query($link, "SET sql_mode=''")) 16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 18 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch")) 19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch"); 44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"); 45 mysqli_close($link); 55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_real_escape_string_nobackslash.phpt | 15 …intf("[001] Cannot set NO_BACKSLASH_ESCAPES, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 17 if ('\\' !== ($tmp = mysqli_real_escape_string($link, '\\'))) 20 if ('"' !== ($tmp = mysqli_real_escape_string($link, '"'))) 23 if ("''" !== ($tmp = mysqli_real_escape_string($link, "'"))) 26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 37 mysqli_real_escape_string($link, "\\")))) 38 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 47 if (!mysqli_query($link, 'SET @@sql_mode=""')) 48 …("[011] Cannot disable NO_BACKSLASH_ESCAPES, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug51647.phpt | 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(); 41 if (!is_object($link = mysqli_init())) 46 printf("[002] [%d] %s\n", $link->errno, $link->error); 53 if (1064 == $link->errno) { 60 printf("[005] [%d] %s\n", $link->errno, $link->error); 63 printf("[004] [%d] %s\n", $link->errno, $link->error); [all …]
|
H A D | 037.phpt | 16 mysqli_select_db($link, $db); 18 mysqli_query($link, "DROP TABLE IF EXISTS test_result"); 22 mysqli_query($link, "INSERT INTO test_result VALUES (1, 'foo')"); 23 $ir[] = mysqli_field_count($link); 25 mysqli_real_query($link, "SELECT * FROM test_result"); 26 $ir[] = mysqli_field_count($link); 31 mysqli_query($link, "DROP TABLE IF EXISTS test_result"); 32 mysqli_close($link); 41 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_result")) 42 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 038.phpt | 15 mysqli_select_db($link, $db); 17 mysqli_query($link, "DROP TABLE IF EXISTS test_result"); 21 mysqli_query($link, "INSERT INTO test_result VALUES (1, 'foo')"); 23 mysqli_real_query($link, "SELECT * FROM test_result"); 24 if (mysqli_field_count($link)) { 25 $result = mysqli_store_result($link); 32 mysqli_query($link, "DROP TABLE IF EXISTS test_result"); 33 mysqli_close($link); 41 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_result")) 42 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_fetch_array_many_rows.phpt | 18 printf("[001] %s failed: [%d] %s\n", $sql, mysqli_errno($link), mysqli_error($link)); 24 printf("[002] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 34 printf("[003] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 49 $row[0], $id, mysqli_errno($link), mysqli_error($link)); 54 $row[0], $row[id], mysqli_errno($link), mysqli_error($link)); 61 $row[1], mysqli_errno($link), mysqli_error($link)); 66 $row[1], $row['label'], mysqli_errno($link), mysqli_error($link)); 74 printf("[008] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 84 printf("[009] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 104 $num, $i, mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug67839.phpt | 12 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 18 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) { 19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 24 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 if (!mysqli_query($link, "INSERT INTO test(id, fp4, fp8) VALUES (1, 9.9999, 9.9999)")) { 30 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 if (!($stmt = mysqli_prepare($link, "SELECT id, fp4, fp8 FROM test"))) { 35 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 44 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 49 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_store_result.phpt | 14 $link = NULL; 19 if (!is_null($tmp = @mysqli_store_result($link))) 25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 27 if (!is_object($res = mysqli_store_result($link))) 29 gettype($res), $res, mysqli_errno($link), mysqli_error($link)); 33 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 37 if (!mysqli_query($link, "DELETE FROM test")) 38 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 gettype($res), $res, mysqli_errno($link), mysqli_error($link)); 45 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_last_insert_id.phpt | 20 printf("[003] [%d] %s\n", $link->errno, $link->error); 36 printf("[002] [%d] %s\n", $link->errno, $link->error); 50 printf("[006] [%d] %s\n", $link->errno, $link->error); 81 printf("[012] [%d] %s\n", $link->errno, $link->error); 96 printf("[016] [%d] %s\n", $link->errno, $link->error); 109 printf("[019] [%d] %s\n", $link->errno, $link->error); 117 printf("[021] [%d] %s\n", $link->errno, $link->error); 125 printf("[023] [%d] %s\n", $link->errno, $link->error); 134 printf("[024] [%d] %s\n", $link->errno, $link->error); 156 printf("[029] [%d] %s\n", $link->errno, $link->error); [all …]
|
H A D | mysqli_pam_sha256_public_key_option_invalid.phpt | 24 die(sprintf("skip [%d] %s\n", $link->errno, $link->error)); 38 die(sprintf("skip [%d] %s\n", $link->errno, $link->error)); 42 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error)); 69 die(sprintf("skip CREATE USER failed [%d] %s", $link->errno, $link->error)); 74 die(sprintf("skip SET PASSWORD failed [%d] %s", $link->errno, $link->error)); 80 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error)); 88 $link->close(); 96 $link = mysqli_init(); 108 printf("[%03d + 003] [%d] %s\n", $offset, $link->errno, $link->error); 112 printf("[%03d + 004] [%d] %s\n", $offset, $link->errno, $link->error); [all …]
|
H A D | mysqli_rollback.phpt | 15 if (!have_innodb($link)) 16 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error)); 23 $link = NULL; 28 if (!is_null($tmp = @mysqli_rollback($link))) 42 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 45 printf("[007] Cannot create test table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 48 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 50 $tmp = mysqli_rollback($link); 55 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 62 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 040.phpt | 15 mysqli_select_db($link, $db); 17 mysqli_query($link, "DROP TABLE IF EXISTS test_result"); 19 mysqli_query($link, "INSERT INTO test_result VALUES (1, 'foo')"); 21 mysqli_real_query($link, "SELECT * FROM test_result"); 22 if (mysqli_field_count($link)) { 23 $result = mysqli_store_result($link); 30 mysqli_query($link, "DROP TABLE IF EXISTS test_result"); 31 mysqli_close($link); 40 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_result")) 41 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_execute_stored_proc.phpt | 21 printf("[009] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 26 printf("[011] Cannot prepare CALL, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 39 printf("[015] Cannot prepare SELECT, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 58 printf("[010] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 65 printf("[019] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 96 printf("[027] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 102 printf("[028] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 136 printf("[036] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 140 printf("[037] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 181 mysqli_close($link); [all …]
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - access/update file … 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 41 // create hard link to file 43 var_dump( link($filename, $linkname) ); 54 // append link with data 87 // delete the link 103 Size of file and hard link are same 110 Size of file and hard link are same [all …]
|
H A D | symlink_link_linkinfo_is_link_variation3.phpt | 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 27 Check size of file and soft link link 38 // create soft link to file 66 // append link with data 109 // delete the link 123 -- Check size of soft link and file -- 127 Soft link size remains same 136 Soft link size remains same [all …]
|
H A D | symlink_link_linkinfo_is_link_variation1.phpt | 12 Description: creates a symbolic link to the existing target with the specified name link 17 Prototype: bool link ( string $target, string $link ); 47 // creating soft link 51 // check if link is soft link 53 // delete the link created 60 // creating hard link 64 // check if link is soft link; expected: false as the link is a hardlink 77 // creating soft link 81 // check if link is soft link 90 // creating hard link [all …]
|
H A D | fopen_variation19.phpt | 40 echo "soft link:"; 42 echo "hard link:"; 44 echo "link of link:"; 48 echo "soft link:"; 50 echo "hard link:"; 52 echo "link of link:"; 56 echo "soft link:"; 60 echo "link of link:"; 101 link of link:Hello World 105 link of link:Hello World again! again! again! [all …]
|
H A D | symlink_link_linkinfo_is_link_basic2.phpt | 2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to dirs 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 36 // name of the soft link created to $dirname 42 // testing on soft link 44 // creating soft link to $dirname 48 // checks if link created is soft link; expected: true 53 // testing on hard link [all …]
|
/PHP-5.5/ext/mysql/tests/ |
H A D | mysql_list_fields.phpt | 13 $link = NULL; 18 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link)); 21 …xpecting two fields from 'test', got %d. [%d] %s\n", $num, mysql_errno($link), mysql_error($link)); 26 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link)); 29 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link)); 32 printf("[007] [%d] %s\n", mysql_errno($link), mysql_error($link)); 35 … Expecting 2 fields from 'test', got %d. [%d] %s\n", $num, mysql_errno($link), mysql_error($link)); 47 mysql_close($link); 59 printf("[c002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 62 printf("[c002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysql_create_db.phpt | 13 $link = NULL; 19 if (false !== ($tmp = mysql_create_db($link, $link, $link))) 27 …"[004] Cannot create database, aborting test, [%d] %s\n", mysql_errno($link), mysql_error($link))); 29 if (!mysql_query("DROP DATABASE mysqlcreatedb", $link)) 30 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link)); 33 … boolean/true, got %s/%s, [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link)); 36 …boolean/false, got %s/%s, [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link)); 38 if (!mysql_query("DROP DATABASE mysqlcreatedb", $link)) 39 printf("[008] [%d] %s\n", mysql_errno($link), mysql_error($link)); 51 printf("[c002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug53649.phpt | 14 die(sprintf("skip [%d] %s\n", mysql_errno($link), mysql_error($link))); 20 1148 == mysql_errno($link)) 32 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link)); 36 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link)); 42 if (!mysql_query("SELECT 1 FROM DUAL", $link)) 43 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link)); 46 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link)); 51 mysql_close($link); 62 if (!mysql_query($link, 'DROP TABLE IF EXISTS test', $link)) { 63 …printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link… [all …]
|
/PHP-5.5/ext/ldap/tests/ |
H A D | ldap_compare_error.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 14 insert_dummy_data($link); 17 var_dump(ldap_compare($link)); 18 var_dump(ldap_compare($link, $link)); 19 var_dump(ldap_compare($link, $link, $link)); 22 var_dump(ldap_compare($link, $link, $link, $link, "Additional data")); 25 ldap_compare($link, "cn=userNotAvailable,dc=my-domain,dc=com", "sn", "testSN1"), 26 ldap_error($link), 27 ldap_errno($link) 35 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); [all …]
|