/PHP-5.3/ext/mysqli/tests/ |
H A D | mysqli_real_escape_string.phpt | 14 $link = NULL; 19 if (NULL !== ($tmp = @mysqli_real_escape_string($link))) 24 if (NULL !== ($tmp =@mysqli_real_escape_string($link, "foo", "foo"))) 27 if ('\\\\' !== ($tmp = mysqli_real_escape_string($link, '\\'))) 30 if ('\"' !== ($tmp = mysqli_real_escape_string($link, '"'))) 33 if ("\'" !== ($tmp = mysqli_real_escape_string($link, "'"))) 36 if ("\\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 39 if ("\\r" !== ($tmp = mysqli_real_escape_string($link, "\r"))) 42 if ("foo\\0bar" !== ($tmp = mysqli_real_escape_string($link, "foo" . chr(0) . "bar"))) 45 mysqli_close($link); [all …]
|
H A D | mysqli_get_charset.phpt | 16 $link = NULL; 21 if (!is_null($tmp = @mysqli_get_charset($link))) 24 if (!is_null($tmp = @mysqli_set_charset($link, $link))) 30 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 41 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 48 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 57 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 64 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 70 if (!is_object($charset = mysqli_get_charset($link))) 102 mysqli_close($link); [all …]
|
H A D | bug33090.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, null, $port, $socket); 14 mysqli_select_db($link, $db); 16 if (!($link->prepare("this makes no sense"))) { 17 printf("%d\n", $link->errno); 18 printf("%s\n", $link->sqlstate); 20 $link->close();
|
H A D | 031.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 14 $error = mysqli_error($link); 17 mysqli_select_db($link, $db); 19 mysqli_query($link, "SELECT * FROM non_exisiting_table"); 20 $error = mysqli_error($link); 24 mysqli_close($link);
|
H A D | bug42378.phpt | 15 function create_table($link, $column, $min, $max, $engine, $offset) { 17 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) { 20 mysqli_errno($link), mysqli_error($link)); 27 if (!mysqli_query($link, $sql)) { 30 mysqli_errno($link), mysqli_error($link)); 40 if (!mysqli_query($link, $sql)) { 43 mysqli_errno($link), mysqli_error($link)); 53 if (!$stmt = mysqli_stmt_init($link)) { 56 mysqli_errno($link), mysqli_error($link)); 164 test_format($link, 'FORMAT(col1, 0)', 'test', NULL, array(), 100); [all …]
|
H A D | mysqli_stmt_send_long_data.phpt | 14 $link = NULL; 24 if (!$stmt = mysqli_stmt_init($link)) 25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 31 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 45 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 48 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 101 printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 105 $tmp, mysqli_errno($link), mysqli_error($link)); 108 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_mysqlnd_read_timeout_long.phpt | 13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 16 if (mysqli_get_server_version($link) <= 50011) { 17 die(sprintf('skip Needs MySQL 5.0.12+, found version %d.', mysqli_get_server_version($link))); 29 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 33 if (!$res = mysqli_query($link, "SELECT SLEEP(6)")) 34 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 39 mysqli_close($link);
|
H A D | mysqli_mysqlnd_read_timeout_zero.phpt | 13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 16 if (mysqli_get_server_version($link) <= 50011) { 17 die(sprintf('skip Needs MySQL 5.0.12+, found version %d.', mysqli_get_server_version($link))); 28 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 32 if (!$res = mysqli_query($link, "SELECT SLEEP(2)")) 33 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 38 mysqli_close($link);
|
H A D | mysqli_stmt_init.phpt | 19 $link = NULL; 24 if (!is_null($tmp = @mysqli_stmt_init($link))) 29 if (!is_object($stmt = mysqli_stmt_init($link))) 30 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 32 if (!is_object($stmt2 = @mysqli_stmt_init($link))) 33 printf("[003a] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 40 mysqli_close($link); 42 if (NULL !== ($tmp = mysqli_stmt_init($link)))
|
H A D | mysqli_stmt_result_metadata.phpt | 14 $link = NULL; 24 if (!$stmt = mysqli_stmt_init($link)) 25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 38 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 42 gettype($field0_fetch), $field0_fetch, mysqli_errno($link), mysqli_error($link)); 46 gettype($field0_direct), $field0_direct, mysqli_errno($link), mysqli_error($link)); 58 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 66 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 70 gettype($field1_direct), $field1_direct, mysqli_errno($link), mysqli_error($link)); 80 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_stmt_get_result_non_select.phpt | 21 if (!$stmt = mysqli_stmt_init($link)) 22 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 24 if (mysqli_query($link, 'PREPARE mystmt FROM "SHOW ENGINES"')) { 25 mysqli_query($link, 'DEALLOCATE PREPARE mystmt'); 51 if (mysqli_query($link, 'PREPARE mystmt FROM "DESCRIBE test id"')) { 52 mysqli_query($link, 'DEALLOCATE PREPARE mystmt'); 64 mysqli_errno($link), mysqli_error($link)); 70 if (mysqli_query($link, 'PREPARE mystmt FROM "EXPLAIN SELECT id FROM test"')) { 71 mysqli_query($link, 'DEALLOCATE PREPARE mystmt'); 83 mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_options.phpt | 31 $link = NULL; 36 if (!is_null($tmp = @mysqli_options($link))) 39 $link = mysqli_init(); 42 mysqli_options($link, MYSQLI_SET_CHARSET_NAME, "utf8"); 43 mysqli_options($link, MYSQLI_SET_CHARSET_NAME, "latin1"); 45 if (!is_null($tmp = @mysqli_options($link, MYSQLI_OPT_CONNECT_TIMEOUT))) 48 if (!is_null($tmp = @mysqli_options($link, "s", 'extra_my.cnf'))) 58 var_dump("MYSQLI_OPT_LOCAL_INFILE", mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)); 94 if (true !== mysqli_options($link, MYSQLI_SET_CHARSET_NAME, $charset['Charset'])) { 102 var_dump("MYSQLI_OPT_LOCAL_INFILE", mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)); [all …]
|
H A D | mysqli_pconn_twice.phpt | 19 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 28 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) || 30 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 35 mysqli_close($link); 37 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 47 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) || 49 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 54 mysqli_close($link); 56 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 59 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) [all …]
|
H A D | mysqli_stat.phpt | 14 $link = NULL; 19 if (!is_null($tmp = @mysqli_stat($link))) 24 if (!is_null($tmp = @mysqli_stat($link, "foo"))) 27 if ((!is_string($tmp = mysqli_stat($link))) || ('' === $tmp)) 29 gettype($tmp), $tmp, mysqli_errno($link), mysql_error($link)); 31 mysqli_close($link); 33 if (!is_null($tmp = mysqli_stat($link)))
|
H A D | mysqli_set_local_infile_default.phpt | 13 if (!$link) 17 if ($msg = check_local_infile_support($link, $engine)) 18 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error)); 20 mysqli_close($link); 29 $link = $tmp = null; 33 if (!is_null($tmp = @mysqli_set_local_infile_default($link))) 36 $link = new mysqli(); 37 if (!is_null($tmp = @mysqli_set_local_infile_default($link))) 97 try_handler(10, $link, $file, 'callback_simple', $expected); 104 try_handler(20, $link, $file, 'default', $expected); [all …]
|
H A D | connect.inc | 93 $link = mysqli_init(); 95 $link = false; 100 return $link; 142 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); 154 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); 169 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); 177 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); 192 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); 201 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); 216 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug48909.phpt | 12 if (!($link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))) 16 if (!$link->query("DROP TABLE IF EXISTS test") || 17 !$link->query(sprintf("CREATE TABLE test(id INT, label varchar(255)) ENGINE = %s", $engine))) 18 printf("[002] [%d] %s\n", $link->errno, $link->error); 20 if (!$stmt = $link->prepare("INSERT INTO test(id, label) VALUES (?, ?)")) 21 printf("[003] [%d] %s\n", $link->errno, $link->error); 37 $link->close();
|
/PHP-5.3/ext/mysql/tests/ |
H A D | mysql_pconn_kill.phpt | 29 $thread_id = mysql_thread_id($link); 31 if (!($res = mysql_query("SHOW FULL PROCESSLIST", $link))) 32 printf("[002] Cannot get processlist, [%d] %s\n", mysql_errno($link), mysql_error($link)); 40 …ind regular connection thread in process list, [%d] %s\n", mysql_errno($link), mysql_error($link)); 42 … persistent connection thread in process list, [%d] %s\n", mysql_errno($link), mysql_error($link)); 45 …005] Cannot kill persistent connection thread, [%d] %s\n", mysql_errno($link), mysql_error($link)); 49 printf("[006] Cannot get processlist, [%d] %s\n", mysql_errno($link), mysql_error($link)); 63 …ind regular connection thread in process list, [%d] %s\n", mysql_errno($link), mysql_error($link)); 93 mysql_select_db($db, $link); 95 … Cannot run query on new regular connection, [%d] %s\n", @mysql_errno($link), @mysql_error($link)); [all …]
|
H A D | mysql_fetch_field.phpt | 13 $link = NULL; 30 printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link)); 40 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link)); 85 printf("[008/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link)); 101 printf("[009/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link)); 119 printf("[013] [%d] %s\n", mysql_errno($link), mysql_error($link)); 122 printf("[014] [%d] %s\n", mysql_errno($link), mysql_error($link)); 125 printf("[015] [%d] %s\n", mysql_errno($link), mysql_error($link)); 128 printf("[016] [%d] %s\n", mysql_errno($link), mysql_error($link)); 135 printf("[017] [%d] %s\n", mysql_errno($link), mysql_error($link)); [all …]
|
H A D | mysql_query_load_data_openbasedir.phpt | 49 mysql_close($link); 61 if (!mysql_select_db($db, $link)) { 62 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link)); 92 if (!mysql_query($sql, $link)) 93 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link)); 98 printf("[007] [%d] '%s'\n", mysql_errno($link), mysql_error($link)); 103 if (!mysql_query('DELETE FROM test', $link)) 104 printf("[009] [%d] %s\n", mysql_errno($link), mysql_error($link)); 111 if (!mysql_query($sql, $link)) 112 printf("[010] [%d] %s\n", mysql_errno($link), mysql_error($link)); [all …]
|
/PHP-5.3/ext/ldap/tests/ |
H A D | ldap_first_entry_basic.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 14 insert_dummy_data($link); 15 $result = ldap_search($link, "dc=my-domain,dc=com", "(objectclass=person)"); 17 $entry = ldap_first_entry($link, $result), 18 ldap_get_values($link, $entry, 'sn') 26 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 27 remove_dummy_data($link);
|
H A D | ldap_mod_del_basic.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 14 insert_dummy_data($link); 21 ldap_mod_del($link, "cn=userA,dc=my-domain,dc=com", $entry), 23 $link, 24 ldap_search($link, "dc=my-domain,dc=com", "(description=user A)") 33 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 35 remove_dummy_data($link);
|
H A D | ldap_delete_error.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 17 var_dump(ldap_delete($link)); 20 var_dump(ldap_delete($link, "dc=my-domain,dc=com", "Additional data")); 24 ldap_delete($link, "weirdAttribute=val"), 25 ldap_error($link), 26 ldap_errno($link) 31 ldap_delete($link, "dc=my-domain,dc=com"), 32 ldap_error($link), 33 ldap_errno($link) 41 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
|
/PHP-5.3/ext/standard/tests/file/ |
H A D | unlink_variation8.phpt | 87 $msg = "soft link"; 90 link($toLinkTo, $linkedfile); 91 $msg = "hard link"; 115 -- unlinking soft link unlinkVar8.tmp/file.tmp -- 117 -- unlinking hard link unlinkVar8.tmp/file.tmp -- 121 -- unlinking soft link ./unlinkVar8.tmp/file.tmp -- 123 -- unlinking hard link ./unlinkVar8.tmp/file.tmp -- 143 -- unlinking soft link BADDIR/file.tmp -- 146 -- unlinking hard link BADDIR/file.tmp -- 170 -- unlinking soft link /%s/BADDIR/file.tmp -- [all …]
|
/PHP-5.3/ext/ldap/ |
H A D | ldap.c | 71 LDAP *link; member 352 ld->link = ldap; in PHP_FUNCTION() 383 zval *link; in PHP_FUNCTION() local 493 zval *link; in PHP_FUNCTION() local 533 zval *link; in PHP_FUNCTION() local 1415 zval *link; in PHP_FUNCTION() local 1439 zval *link; in PHP_FUNCTION() local 1470 zval *link; in PHP_FUNCTION() local 1490 zval *link; in PHP_FUNCTION() local 1989 zval *link; in PHP_FUNCTION() local [all …]
|