summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-07-07 12:09:36 +0000
committerAndrey Hristov <andrey@php.net>2010-07-07 12:09:36 +0000
commitb580bc38758f7c0da42a8ae153656b9880ec7592 (patch)
tree3b6fce7d28e054626809e52166d4f5046e3fae2a
parent25d6aee4fb950179fa1585a6f852fcddf94ee6d6 (diff)
downloadphp-git-b580bc38758f7c0da42a8ae153656b9880ec7592.tar.gz
Cleanup in trunk. Remove some functions, noted in
UPGRADING. sed-ed the tests to change the usage to the real function name.
-rwxr-xr-xUPGRADING9
-rw-r--r--ext/mysqli/mysqli_fe.c16
-rw-r--r--ext/mysqli/tests/002.phpt6
-rw-r--r--ext/mysqli/tests/003.phpt6
-rw-r--r--ext/mysqli/tests/004.phpt6
-rw-r--r--ext/mysqli/tests/005.phpt8
-rw-r--r--ext/mysqli/tests/006.phpt6
-rw-r--r--ext/mysqli/tests/007.phpt6
-rw-r--r--ext/mysqli/tests/008.phpt6
-rw-r--r--ext/mysqli/tests/009.phpt12
-rw-r--r--ext/mysqli/tests/010.phpt6
-rw-r--r--ext/mysqli/tests/011.phpt6
-rw-r--r--ext/mysqli/tests/012.phpt6
-rw-r--r--ext/mysqli/tests/013.phpt8
-rw-r--r--ext/mysqli/tests/016.phpt6
-rw-r--r--ext/mysqli/tests/017.phpt6
-rw-r--r--ext/mysqli/tests/018.phpt6
-rw-r--r--ext/mysqli/tests/019.phpt10
-rw-r--r--ext/mysqli/tests/020.phpt10
-rw-r--r--ext/mysqli/tests/021.phpt10
-rw-r--r--ext/mysqli/tests/022.phpt10
-rw-r--r--ext/mysqli/tests/023.phpt10
-rw-r--r--ext/mysqli/tests/024.phpt10
-rw-r--r--ext/mysqli/tests/025.phpt10
-rw-r--r--ext/mysqli/tests/026.phpt16
-rw-r--r--ext/mysqli/tests/042.phpt4
-rw-r--r--ext/mysqli/tests/043.phpt6
-rw-r--r--ext/mysqli/tests/045.phpt10
-rw-r--r--ext/mysqli/tests/046.phpt4
-rw-r--r--ext/mysqli/tests/047.phpt6
-rw-r--r--ext/mysqli/tests/050.phpt2
-rw-r--r--ext/mysqli/tests/051.phpt2
-rw-r--r--ext/mysqli/tests/052.phpt2
-rw-r--r--ext/mysqli/tests/057.phpt12
-rw-r--r--ext/mysqli/tests/058.phpt18
-rw-r--r--ext/mysqli/tests/059.phpt10
-rw-r--r--ext/mysqli/tests/065.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_character_set_name.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_character_set_name_oo.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_prepare.phpt10
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_param.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_result.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_stmt_fetch.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_stmt_param_count.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_stmt_result_metadata.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_stmt_send_long_data.phpt2
46 files changed, 162 insertions, 161 deletions
diff --git a/UPGRADING b/UPGRADING
index b249da1341..4bd6a4c680 100755
--- a/UPGRADING
+++ b/UPGRADING
@@ -144,6 +144,15 @@ UPGRADE NOTES - PHP X.Y
- session_is_registered()
- session_register()
- session_unregister()
+ - mysqli_bind_param() (alias of mysqli_stmt_bind_param())
+ - mysqli_bind_result() (alias of mysqli_stmt_bind_result())
+ - mysqli_client_encoding() (alias of mysqli_character_set_name())
+ - mysqli_fetch() (alias of mysqli_stmt_fetch())
+ - mysqli_param_count() (alias of mysqli_stmt_param_count())
+ - mysqli_get_metadata() (alias of mysqli_stmt_result_metadata())
+ - mysqli_send_long_data() (alias of mysqli_stmt_send_long_data())
+ - mysqli::client_encoding() (alias of mysqli::character_set_name)
+ - mysqli_stmt::stmt() (never worked/always throws, undocumented)
=============
8. Extensions
diff --git a/ext/mysqli/mysqli_fe.c b/ext/mysqli/mysqli_fe.c
index e413e6a213..fbf0a820a8 100644
--- a/ext/mysqli/mysqli_fe.c
+++ b/ext/mysqli/mysqli_fe.c
@@ -42,19 +42,19 @@
#endif
ZEND_BEGIN_ARG_INFO(arginfo_mysqli_stmt_bind_result, 1)
- ZEND_ARG_PASS_INFO(0)
+ MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(arginfo_mysqli_stmt_bind_param, 1)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
+ MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
+ ZEND_ARG_INFO(0, types)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(arginfo_class_mysqli_stmt_bind_result, 1)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(arginfo_class_mysqli_stmt_bind_param, 1)
- ZEND_ARG_PASS_INFO(0)
+ ZEND_ARG_INFO(0, types)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(all_args_force_by_ref, 1)
@@ -455,14 +455,7 @@ const zend_function_entry mysqli_functions[] = {
PHP_FE(mysqli_refresh, arginfo_mysqli_refresh)
/* Aliases */
- PHP_FALIAS(mysqli_bind_param, mysqli_stmt_bind_param, arginfo_mysqli_stmt_bind_param)
- PHP_FALIAS(mysqli_bind_result, mysqli_stmt_bind_result, arginfo_mysqli_stmt_bind_result)
- PHP_FALIAS(mysqli_client_encoding, mysqli_character_set_name, NULL)
PHP_FALIAS(mysqli_escape_string, mysqli_real_escape_string, arginfo_mysqli_query)
- PHP_FALIAS(mysqli_fetch, mysqli_stmt_fetch, NULL)
- PHP_FALIAS(mysqli_param_count, mysqli_stmt_param_count, NULL)
- PHP_FALIAS(mysqli_get_metadata, mysqli_stmt_result_metadata,NULL)
- PHP_FALIAS(mysqli_send_long_data, mysqli_stmt_send_long_data, NULL)
PHP_FALIAS(mysqli_set_opt, mysqli_options, NULL)
{NULL, NULL, NULL} /* Must be the last line in mysqli_functions[] */
@@ -477,7 +470,6 @@ const zend_function_entry mysqli_link_methods[] = {
PHP_FALIAS(autocommit, mysqli_autocommit, arginfo_class_mysqli_autocommit)
PHP_FALIAS(change_user,mysqli_change_user, arginfo_class_mysqli_change_user)
PHP_FALIAS(character_set_name, mysqli_character_set_name, arginfo_mysqli_no_params)
- PHP_FALIAS(client_encoding, mysqli_character_set_name, arginfo_mysqli_no_params) /* deprecated */
PHP_FALIAS(close, mysqli_close, arginfo_mysqli_no_params)
PHP_FALIAS(commit, mysqli_commit, arginfo_mysqli_no_params)
PHP_FALIAS(connect, mysqli_connect, arginfo_mysqli_connect)
diff --git a/ext/mysqli/tests/002.phpt b/ext/mysqli/tests/002.phpt
index c18310871e..522c99e800 100644
--- a/ext/mysqli/tests/002.phpt
+++ b/ext/mysqli/tests/002.phpt
@@ -32,10 +32,10 @@ require_once('skipifconnectfailure.inc');
printf("[004] Cannot insert records, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11 from test_fetch_null ORDER BY col1");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11);
- mysqli_execute($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11);
+ mysqli_stmt_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9,$c10,$c11);
diff --git a/ext/mysqli/tests/003.phpt b/ext/mysqli/tests/003.phpt
index 9094c86a76..9374763862 100644
--- a/ext/mysqli/tests/003.phpt
+++ b/ext/mysqli/tests/003.phpt
@@ -59,9 +59,9 @@ require_once('skipifconnectfailure.inc');
printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT c1, c2, c3, c4, c5, c6, c7 FROM test_bind_result");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/004.phpt b/ext/mysqli/tests/004.phpt
index 184eceaa89..ce222fea42 100644
--- a/ext/mysqli/tests/004.phpt
+++ b/ext/mysqli/tests/004.phpt
@@ -33,11 +33,11 @@ require_once('skipifconnectfailure.inc');
printf("[006] [%d] string\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch ORDER BY c1");
- mysqli_bind_result($stmt, $c1, $c2);
- mysqli_execute($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2);
+ mysqli_stmt_execute($stmt);
$i = 4;
while ($i--) {
- mysqli_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1, $c2);
var_dump($test);
}
diff --git a/ext/mysqli/tests/005.phpt b/ext/mysqli/tests/005.phpt
index 0d59f40b7e..07292a1f3e 100644
--- a/ext/mysqli/tests/005.phpt
+++ b/ext/mysqli/tests/005.phpt
@@ -23,9 +23,9 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link, "INSERT INTO test_bind_fetch VALUES ('1234567890', '$a')");
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test[] = $c1;
$test[] = ($a == $c2) ? "32K String ok" : "32K String failed";
@@ -33,7 +33,7 @@ require_once('skipifconnectfailure.inc');
var_dump($test);
/* this will crash with libmysql from PHP 5.0.6 (or earlier) to 5.3.0 */
- mysqli_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
diff --git a/ext/mysqli/tests/006.phpt b/ext/mysqli/tests/006.phpt
index 497426598c..2043cc5d07 100644
--- a/ext/mysqli/tests/006.phpt
+++ b/ext/mysqli/tests/006.phpt
@@ -32,9 +32,9 @@ require_once('skipifconnectfailure.inc');
printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/007.phpt b/ext/mysqli/tests/007.phpt
index 05a8ae5baf..26b5763bb4 100644
--- a/ext/mysqli/tests/007.phpt
+++ b/ext/mysqli/tests/007.phpt
@@ -32,9 +32,9 @@ require_once('skipifconnectfailure.inc');
printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/008.phpt b/ext/mysqli/tests/008.phpt
index ba0e340891..0ae09df842 100644
--- a/ext/mysqli/tests/008.phpt
+++ b/ext/mysqli/tests/008.phpt
@@ -32,9 +32,9 @@ require_once('skipifconnectfailure.inc');
printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/009.phpt b/ext/mysqli/tests/009.phpt
index 3e26f518ad..30d42c39a6 100644
--- a/ext/mysqli/tests/009.phpt
+++ b/ext/mysqli/tests/009.phpt
@@ -39,9 +39,9 @@ mysqli fetch bigint values (ok to fail with 4.1.x)
printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
- mysqli_execute($stmt);
- $rc = mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
+ mysqli_stmt_execute($stmt);
+ $rc = mysqli_stmt_fetch($stmt);
if (mysqli_get_server_version($link) < 50000) {
// 4.1 is faulty and will return big number for $c6
@@ -66,9 +66,9 @@ mysqli fetch bigint values (ok to fail with 4.1.x)
printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch_uint");
- mysqli_bind_result($stmt, $c1, $c2);
- mysqli_execute($stmt);
- $rc = mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2);
+ mysqli_stmt_execute($stmt);
+ $rc = mysqli_stmt_fetch($stmt);
echo $c1, "\n", $c2, "\n";
diff --git a/ext/mysqli/tests/010.phpt b/ext/mysqli/tests/010.phpt
index fab0c57889..60ff8eac19 100644
--- a/ext/mysqli/tests/010.phpt
+++ b/ext/mysqli/tests/010.phpt
@@ -35,9 +35,9 @@ require_once('skipifconnectfailure.inc');
sin(0.6), 1.00000000000001, 888888888888888)");
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/011.phpt b/ext/mysqli/tests/011.phpt
index 83f35e5869..db03abac83 100644
--- a/ext/mysqli/tests/011.phpt
+++ b/ext/mysqli/tests/011.phpt
@@ -32,9 +32,9 @@ require_once('skipifconnectfailure.inc');
printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8);
diff --git a/ext/mysqli/tests/012.phpt b/ext/mysqli/tests/012.phpt
index da4a48ab51..7cc34b0c00 100644
--- a/ext/mysqli/tests/012.phpt
+++ b/ext/mysqli/tests/012.phpt
@@ -31,9 +31,9 @@ require_once('skipifconnectfailure.inc');
printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8);
diff --git a/ext/mysqli/tests/013.phpt b/ext/mysqli/tests/013.phpt
index 5ddb49632a..6d75bde731 100644
--- a/ext/mysqli/tests/013.phpt
+++ b/ext/mysqli/tests/013.phpt
@@ -31,10 +31,10 @@ require_once('skipifconnectfailure.inc');
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result");
$c = array(0,0,0,0,0,0,0,0);
- $b_res= mysqli_bind_result($stmt, $c[0], $c[1], $c[2], $c[3], $c[4], $c[5], $c[6], $c[7]);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
- mysqli_fetch($stmt);
+ $b_res= mysqli_stmt_bind_result($stmt, $c[0], $c[1], $c[2], $c[3], $c[4], $c[5], $c[6], $c[7]);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
$result = mysqli_query($link, "select * from test_bind_result");
diff --git a/ext/mysqli/tests/016.phpt b/ext/mysqli/tests/016.phpt
index ce1ea83062..8e1ffe6200 100644
--- a/ext/mysqli/tests/016.phpt
+++ b/ext/mysqli/tests/016.phpt
@@ -18,9 +18,9 @@ require_once('skipifconnectfailure.inc');
if (!$stmt = mysqli_prepare($link, "SELECT @dummy"))
printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- mysqli_bind_result($stmt, $dummy);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $dummy);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
var_dump($dummy);
diff --git a/ext/mysqli/tests/017.phpt b/ext/mysqli/tests/017.phpt
index a48ae5c9d6..082202f528 100644
--- a/ext/mysqli/tests/017.phpt
+++ b/ext/mysqli/tests/017.phpt
@@ -16,10 +16,10 @@ require_once('skipifconnectfailure.inc');
if (!$stmt = mysqli_prepare($link, "SELECT md5('bar'), database(), 'foo'"))
printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- mysqli_bind_result($stmt, $c0, $c1, $c2);
- mysqli_execute($stmt);
+ mysqli_stmt_bind_result($stmt, $c0, $c1, $c2);
+ mysqli_stmt_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
$test = array($c0, $c1, $c2);
diff --git a/ext/mysqli/tests/018.phpt b/ext/mysqli/tests/018.phpt
index 87476442d2..d5466e2241 100644
--- a/ext/mysqli/tests/018.phpt
+++ b/ext/mysqli/tests/018.phpt
@@ -18,10 +18,10 @@ require_once('skipifconnectfailure.inc');
if (!$stmt = mysqli_prepare($link, "SELECT @@autocommit"))
printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- mysqli_bind_result($stmt, $c0);
- mysqli_execute($stmt);
+ mysqli_stmt_bind_result($stmt, $c0);
+ mysqli_stmt_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
var_dump($c0);
diff --git a/ext/mysqli/tests/019.phpt b/ext/mysqli/tests/019.phpt
index 51cf973324..5e6aac0f0b 100644
--- a/ext/mysqli/tests/019.phpt
+++ b/ext/mysqli/tests/019.phpt
@@ -28,23 +28,23 @@ require_once('skipifconnectfailure.inc');
if (!$stmt = mysqli_prepare($link, "INSERT INTO insert_read(col1,col10, col11, col6) VALUES (?,?,?,?)"))
printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- mysqli_bind_param($stmt, "issd", $c1, $c2, $c3, $c4);
+ mysqli_stmt_bind_param($stmt, "issd", $c1, $c2, $c3, $c4);
$c1 = 1;
$c2 = "foo";
$c3 = "foobar";
$c4 = 3.14;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
if (!$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11 FROM insert_read"))
printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11);
- mysqli_execute($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11);
+ mysqli_stmt_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9,$c10,$c11);
diff --git a/ext/mysqli/tests/020.phpt b/ext/mysqli/tests/020.phpt
index 6e867d7a0f..6512cd8b9c 100644
--- a/ext/mysqli/tests/020.phpt
+++ b/ext/mysqli/tests/020.phpt
@@ -37,7 +37,7 @@ require_once('skipifconnectfailure.inc');
c7 timestamp)");
$stmt = mysqli_prepare($link, "INSERT INTO test_bind_result VALUES (?,?,?,?,?,?,?)");
- mysqli_bind_param($stmt, "sssssss", $d1, $d2, $d3, $d4, $d5, $d6, $d7);
+ mysqli_stmt_bind_param($stmt, "sssssss", $d1, $d2, $d3, $d4, $d5, $d6, $d7);
$d1 = "2002-01-02";
$d2 = "12:49:00";
@@ -47,15 +47,15 @@ require_once('skipifconnectfailure.inc');
$d6 = "2020";
$d7 = "1999-12-29";
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT c1, c2, c3, c4, c5, c6, c7 FROM test_bind_result");
- mysqli_bind_result($stmt,$c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_bind_result($stmt,$c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/021.phpt b/ext/mysqli/tests/021.phpt
index 5dec86c90b..5ff58c0348 100644
--- a/ext/mysqli/tests/021.phpt
+++ b/ext/mysqli/tests/021.phpt
@@ -18,16 +18,16 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 char(10), c2 text)");
$stmt = mysqli_prepare($link, "INSERT INTO test_bind_fetch VALUES (?,?)");
- mysqli_bind_param($stmt, "ss", $q1, $q2);
+ mysqli_stmt_bind_param($stmt, "ss", $q1, $q2);
$q1 = "1234567890";
$q2 = "this is a test";
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2);
diff --git a/ext/mysqli/tests/022.phpt b/ext/mysqli/tests/022.phpt
index 8e1f0170a5..9cb71c0ea1 100644
--- a/ext/mysqli/tests/022.phpt
+++ b/ext/mysqli/tests/022.phpt
@@ -19,18 +19,18 @@ require_once('skipifconnectfailure.inc');
$stmt = mysqli_prepare($link, "INSERT INTO test_bind_fetch VALUES (?,?)");
- mysqli_bind_param($stmt, "ss", $a1, $a2);
+ mysqli_stmt_bind_param($stmt, "ss", $a1, $a2);
$a1 = "1234567890";
$a2 = str_repeat("A1", 32000);
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test[] = $c1;
$test[] = ($a2 == $c2) ? "32K String ok" : "32K String failed";
diff --git a/ext/mysqli/tests/023.phpt b/ext/mysqli/tests/023.phpt
index 97c7812567..2528519ebd 100644
--- a/ext/mysqli/tests/023.phpt
+++ b/ext/mysqli/tests/023.phpt
@@ -25,7 +25,7 @@ require_once('skipifconnectfailure.inc');
c7 int)");
$stmt = mysqli_prepare($link, "INSERT INTO test_bind_fetch VALUES (?,?,?,?,?,?,?)");
- mysqli_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
+ mysqli_stmt_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
$c1 = -23;
$c2 = 35999;
$c3 = NULL;
@@ -34,13 +34,13 @@ require_once('skipifconnectfailure.inc');
$c6 = -0;
$c7 = 0;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/024.phpt b/ext/mysqli/tests/024.phpt
index 2cb93be965..893ca0dce3 100644
--- a/ext/mysqli/tests/024.phpt
+++ b/ext/mysqli/tests/024.phpt
@@ -25,7 +25,7 @@ require_once('skipifconnectfailure.inc');
c7 smallint)");
$stmt = mysqli_prepare($link, "INSERT INTO test_bind_fetch VALUES (?,?,?,?,?,?,?)");
- mysqli_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
+ mysqli_stmt_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
$c1 = -23;
$c2 = 35999;
@@ -35,13 +35,13 @@ require_once('skipifconnectfailure.inc');
$c6 = -0;
$c7 = 0;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/025.phpt b/ext/mysqli/tests/025.phpt
index 84a9f67a19..937d624165 100644
--- a/ext/mysqli/tests/025.phpt
+++ b/ext/mysqli/tests/025.phpt
@@ -25,7 +25,7 @@ require_once('skipifconnectfailure.inc');
c7 tinyint)");
$stmt = mysqli_prepare ($link, "INSERT INTO test_bind_fetch VALUES(?,?,?,?,?,?,?)");
- mysqli_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
+ mysqli_stmt_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
$c1 = -23;
$c2 = 300;
@@ -35,7 +35,7 @@ require_once('skipifconnectfailure.inc');
$c6 = 30;
$c7 = 0;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
mysqli_query($link, "INSERT INTO test_bind_fetch VALUES (-23,300,0,-100,-127,+30,0)");
@@ -43,9 +43,9 @@ require_once('skipifconnectfailure.inc');
$c1 = $c2 = $c3 = $c4 = $c5 = $c6 = $c7 = NULL;
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
diff --git a/ext/mysqli/tests/026.phpt b/ext/mysqli/tests/026.phpt
index ec4baa262d..47d763a7c3 100644
--- a/ext/mysqli/tests/026.phpt
+++ b/ext/mysqli/tests/026.phpt
@@ -19,21 +19,21 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 varchar(10), c2 text)");
$stmt = mysqli_prepare ($link, "INSERT INTO test_bind_fetch VALUES (?,?)");
- mysqli_bind_param($stmt, "sb", $c1, $c2);
+ mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
$c1 = "Hello World";
- mysqli_send_long_data($stmt, 1, "This is the first sentence.");
- mysqli_send_long_data($stmt, 1, " And this is the second sentence.");
- mysqli_send_long_data($stmt, 1, " And finally this is the last sentence.");
+ mysqli_stmt_send_long_data($stmt, 1, "This is the first sentence.");
+ mysqli_stmt_send_long_data($stmt, 1, " And this is the second sentence.");
+ mysqli_stmt_send_long_data($stmt, 1, " And finally this is the last sentence.");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
- mysqli_bind_result($stmt, $d1, $d2);
- mysqli_execute($stmt);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $d1, $d2);
+ mysqli_stmt_execute($stmt);
+ mysqli_stmt_fetch($stmt);
$test = array($d1,$d2);
diff --git a/ext/mysqli/tests/042.phpt b/ext/mysqli/tests/042.phpt
index 55da0cd827..31f38f7651 100644
--- a/ext/mysqli/tests/042.phpt
+++ b/ext/mysqli/tests/042.phpt
@@ -25,7 +25,7 @@ require_once('skipifconnectfailure.inc');
c7 smallint) ENGINE=" . $engine);
$stmt = mysqli_prepare($link, "INSERT INTO test_bind_fetch VALUES (?,?,?,?,?,?,?)");
- mysqli_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
+ mysqli_stmt_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
$c1 = -23;
$c2 = 35999;
@@ -35,7 +35,7 @@ require_once('skipifconnectfailure.inc');
$c6 = -0;
$c7 = 0;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$result = mysqli_query($link, "SELECT * FROM test_bind_fetch");
diff --git a/ext/mysqli/tests/043.phpt b/ext/mysqli/tests/043.phpt
index 5d060b9bbb..c3a9901e4f 100644
--- a/ext/mysqli/tests/043.phpt
+++ b/ext/mysqli/tests/043.phpt
@@ -1,5 +1,5 @@
--TEST--
-mysqli_bind_param (UPDATE)
+mysqli_stmt_bind_param (UPDATE)
--SKIPIF--
<?php
require_once('skipif.inc');
@@ -21,13 +21,13 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link, "INSERT INTO test_update VALUES ('foo', 2)");
$stmt = mysqli_prepare($link, "UPDATE test_update SET a=?,b=? WHERE b=?");
- mysqli_bind_param($stmt, "sii", $c1, $c2, $c3);
+ mysqli_stmt_bind_param($stmt, "sii", $c1, $c2, $c3);
$c1 = "Rasmus";
$c2 = 1;
$c3 = 2;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$result = mysqli_query($link, "SELECT concat(a, ' is No. ', b) FROM test_update");
diff --git a/ext/mysqli/tests/045.phpt b/ext/mysqli/tests/045.phpt
index 0b1706002e..d11c16636a 100644
--- a/ext/mysqli/tests/045.phpt
+++ b/ext/mysqli/tests/045.phpt
@@ -1,5 +1,5 @@
--TEST--
-mysqli_bind_result (SHOW)
+mysqli_stmt_bind_result (SHOW)
--SKIPIF--
<?php
require_once('skipif.inc');
@@ -10,7 +10,7 @@ mysqli_bind_result (SHOW)
$link = my_mysqli_connect($host, $user, $passwd);
$stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
if (!$stmt->field_count) {
printf("skip SHOW command is not supported in prepared statements.");
@@ -26,10 +26,10 @@ mysqli_bind_result (SHOW)
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
$stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
- mysqli_bind_result($stmt, $c1, $c2);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $c1, $c2);
+ mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && mysqli_get_server_version($link) < 50000) {
/* variables are binary */
diff --git a/ext/mysqli/tests/046.phpt b/ext/mysqli/tests/046.phpt
index 18c86e3166..1abc5e7bb6 100644
--- a/ext/mysqli/tests/046.phpt
+++ b/ext/mysqli/tests/046.phpt
@@ -20,11 +20,11 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link, "INSERT INTO test_affected VALUES (1),(2),(3),(4),(5)");
$stmt = mysqli_prepare($link, "DELETE FROM test_affected WHERE foo=?");
- mysqli_bind_param($stmt, "i", $c1);
+ mysqli_stmt_bind_param($stmt, "i", $c1);
$c1 = 2;
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
$x = mysqli_stmt_affected_rows($stmt);
mysqli_stmt_close($stmt);
diff --git a/ext/mysqli/tests/047.phpt b/ext/mysqli/tests/047.phpt
index 5a86857031..65c951c080 100644
--- a/ext/mysqli/tests/047.phpt
+++ b/ext/mysqli/tests/047.phpt
@@ -1,5 +1,5 @@
--TEST--
-mysqli_get_metadata
+mysqli_stmt_result_metadata
--SKIPIF--
<?php
require_once('skipif.inc');
@@ -20,8 +20,8 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link, "INSERT INTO test_affected VALUES (1, 'Zak'),(2, 'Greant')");
$stmt = mysqli_prepare($link, "SELECT * FROM test_affected");
- mysqli_execute($stmt);
- $result = mysqli_get_metadata($stmt);
+ mysqli_stmt_execute($stmt);
+ $result = mysqli_stmt_result_metadata($stmt);
echo "\n=== fetch_fields ===\n";
var_dump(mysqli_fetch_fields($result));
diff --git a/ext/mysqli/tests/050.phpt b/ext/mysqli/tests/050.phpt
index 4e750c9248..448f164be1 100644
--- a/ext/mysqli/tests/050.phpt
+++ b/ext/mysqli/tests/050.phpt
@@ -15,7 +15,7 @@ require_once('skipifconnectfailure.inc');
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
$stmt = mysqli_prepare($link, "SELECT CURRENT_USER()");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_close($link);
printf("Ok\n");
diff --git a/ext/mysqli/tests/051.phpt b/ext/mysqli/tests/051.phpt
index ac85410bb3..4a766fb34d 100644
--- a/ext/mysqli/tests/051.phpt
+++ b/ext/mysqli/tests/051.phpt
@@ -15,7 +15,7 @@ require_once('skipifconnectfailure.inc');
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
$stmt1 = mysqli_prepare($link, "SELECT CURRENT_USER()");
- mysqli_execute($stmt1);
+ mysqli_stmt_execute($stmt1);
mysqli_close($link);
@mysqli_stmt_close($stmt1);
diff --git a/ext/mysqli/tests/052.phpt b/ext/mysqli/tests/052.phpt
index 89336ade60..1d131f1428 100644
--- a/ext/mysqli/tests/052.phpt
+++ b/ext/mysqli/tests/052.phpt
@@ -17,7 +17,7 @@ require_once('skipifconnectfailure.inc');
$stmt2 = mysqli_prepare($link, "SELECT CURRENT_USER()");
mysqli_close($link);
- @mysqli_execute($stmt2);
+ @mysqli_stmt_execute($stmt2);
@mysqli_stmt_close($stmt2);
printf("Ok\n");
?>
diff --git a/ext/mysqli/tests/057.phpt b/ext/mysqli/tests/057.phpt
index 92f82d4e1a..8c8b3eeed7 100644
--- a/ext/mysqli/tests/057.phpt
+++ b/ext/mysqli/tests/057.phpt
@@ -1,5 +1,5 @@
--TEST--
-mysqli_get_metadata
+mysqli_stmt_result_metadata
--SKIPIF--
<?php
require_once('skipif.inc');
@@ -20,7 +20,7 @@ require_once('skipifconnectfailure.inc');
mysqli_query($link, "INSERT INTO test_store_result VALUES (1),(2),(3)");
$stmt = mysqli_prepare($link, "SELECT * FROM test_store_result");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
/* this should produce an out of sync error */
if ($result = mysqli_query($link, "SELECT * FROM test_store_result")) {
@@ -31,20 +31,20 @@ require_once('skipifconnectfailure.inc');
/* now we should try mysqli_stmt_reset() */
$stmt = mysqli_prepare($link, "SELECT * FROM test_store_result");
- var_dump(mysqli_execute($stmt));
+ var_dump(mysqli_stmt_execute($stmt));
var_dump(mysqli_stmt_reset($stmt));
var_dump($stmt = mysqli_prepare($link, "SELECT * FROM test_store_result"));
if ($IS_MYSQLND && $stmt->affected_rows !== -1)
printf("[001] Expecting -1, got %d\n", $stmt->affected_rows);
- var_dump(mysqli_execute($stmt));
+ var_dump(mysqli_stmt_execute($stmt));
var_dump($stmt = @mysqli_prepare($link, "SELECT * FROM test_store_result"), mysqli_error($link));
var_dump(mysqli_stmt_reset($stmt));
$stmt = mysqli_prepare($link, "SELECT * FROM test_store_result");
- mysqli_execute($stmt);
- $result1 = mysqli_get_metadata($stmt);
+ mysqli_stmt_execute($stmt);
+ $result1 = mysqli_stmt_result_metadata($stmt);
mysqli_stmt_store_result($stmt);
printf ("Rows: %d\n", mysqli_stmt_affected_rows($stmt));
diff --git a/ext/mysqli/tests/058.phpt b/ext/mysqli/tests/058.phpt
index a8312617c7..3d2eed7fbe 100644
--- a/ext/mysqli/tests/058.phpt
+++ b/ext/mysqli/tests/058.phpt
@@ -19,29 +19,29 @@ require_once('skipifconnectfailure.inc');
$stmt = mysqli_prepare($link, "INSERT INTO mbind VALUES (?,?)");
- mysqli_bind_param($stmt, "is", $a, $b);
+ mysqli_stmt_bind_param($stmt, "is", $a, $b);
$a = 1;
$b = "foo";
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
- mysqli_bind_param($stmt, "is", $c, $d);
+ mysqli_stmt_bind_param($stmt, "is", $c, $d);
$c = 2;
$d = "bar";
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM mbind");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
- mysqli_bind_result($stmt, $e, $f);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $e, $f);
+ mysqli_stmt_fetch($stmt);
- mysqli_bind_result($stmt, $g, $h);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $g, $h);
+ mysqli_stmt_fetch($stmt);
var_dump((array($e,$f,$g,$h)));
diff --git a/ext/mysqli/tests/059.phpt b/ext/mysqli/tests/059.phpt
index 733a3cefba..e4b6a0b9fe 100644
--- a/ext/mysqli/tests/059.phpt
+++ b/ext/mysqli/tests/059.phpt
@@ -21,20 +21,20 @@ require_once('skipifconnectfailure.inc');
$stmt = mysqli_prepare($link, "INSERT INTO mbind VALUES (?||?)");
- mysqli_bind_param($stmt, "ss", $a, $b);
+ mysqli_stmt_bind_param($stmt, "ss", $a, $b);
$a = "foo";
$b = "bar";
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$stmt = mysqli_prepare($link, "SELECT * FROM mbind");
- mysqli_execute($stmt);
+ mysqli_stmt_execute($stmt);
- mysqli_bind_result($stmt, $e);
- mysqli_fetch($stmt);
+ mysqli_stmt_bind_result($stmt, $e);
+ mysqli_stmt_fetch($stmt);
var_dump($e);
diff --git a/ext/mysqli/tests/065.phpt b/ext/mysqli/tests/065.phpt
index 172cecde3c..9426644c9d 100644
--- a/ext/mysqli/tests/065.phpt
+++ b/ext/mysqli/tests/065.phpt
@@ -31,7 +31,7 @@ if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
if (3 !== ($tmp = strlen($mysql->real_escape_string($esc_str))))
printf("[003] Expecting 3/int got %s/%s\n", gettype($tmp), $tmp);
- if ('latin1' !== ($tmp = $mysql->client_encoding()))
+ if ('latin1' !== ($tmp = $mysql->character_set_name()))
printf("[004] Expecting latin1/string got %s/%s\n", gettype($tmp), $tmp);
}
@@ -43,7 +43,7 @@ if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
if (2 !== ($tmp = strlen($mysql->real_escape_string($esc_str))))
printf("[005] Expecting 2/int got %s/%s\n", gettype($tmp), $tmp);
- if ('gbk' !== ($tmp = $mysql->client_encoding()))
+ if ('gbk' !== ($tmp = $mysql->character_set_name()))
printf("[005] Expecting gbk/string got %s/%s\n", gettype($tmp), $tmp);;
}
}
diff --git a/ext/mysqli/tests/mysqli_character_set_name.phpt b/ext/mysqli/tests/mysqli_character_set_name.phpt
index 3fa997b50d..722facab00 100644
--- a/ext/mysqli/tests/mysqli_character_set_name.phpt
+++ b/ext/mysqli/tests/mysqli_character_set_name.phpt
@@ -55,9 +55,9 @@ require_once('skipifconnectfailure.inc');
}
}
- $charset2 = mysqli_client_encoding($link);
+ $charset2 = mysqli_character_set_name($link);
if ($charset2 !== $charset) {
- printf("[012] Alias mysqli_client_encoding returned %s/%s, expected %s/%s\n", gettype($charset2), $charset2, gettype($charset), $charset);
+ printf("[012] Alias mysqli_character_set_name returned %s/%s, expected %s/%s\n", gettype($charset2), $charset2, gettype($charset), $charset);
}
mysqli_close($link);
@@ -66,7 +66,7 @@ require_once('skipifconnectfailure.inc');
printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
/* Make sure that the function alias exists */
- if (!is_null($tmp = @mysqli_client_encoding()))
+ if (!is_null($tmp = @mysqli_character_set_name()))
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
print "done!";
diff --git a/ext/mysqli/tests/mysqli_character_set_name_oo.phpt b/ext/mysqli/tests/mysqli_character_set_name_oo.phpt
index 43a83bbcb7..7b71940e59 100644
--- a/ext/mysqli/tests/mysqli_character_set_name_oo.phpt
+++ b/ext/mysqli/tests/mysqli_character_set_name_oo.phpt
@@ -51,7 +51,7 @@ mysqli_chararcter_set_name(), mysql_client_encoding() [alias]
$charset2 = $mysqli->character_set_name();
if ($charset2 !== $charset) {
- printf("[012] Alias mysqli_client_encoding returned %s/%s, expected %s/%s\n",
+ printf("[012] Alias mysqli_character_set_name returned %s/%s, expected %s/%s\n",
gettype($charset2), $charset2, gettype($charset), $charset);
}
@@ -61,7 +61,7 @@ mysqli_chararcter_set_name(), mysql_client_encoding() [alias]
printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
/* Make sure that the function alias exists */
- if (!is_null($tmp = @$mysqli->client_encoding()))
+ if (!is_null($tmp = @$mysqli->character_set_name()))
printf("[014] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
print "done!";
diff --git a/ext/mysqli/tests/mysqli_prepare.phpt b/ext/mysqli/tests/mysqli_prepare.phpt
index bba82745e7..d6d6c092b9 100644
--- a/ext/mysqli/tests/mysqli_prepare.phpt
+++ b/ext/mysqli/tests/mysqli_prepare.phpt
@@ -49,7 +49,7 @@ require_once('skipifconnectfailure.inc');
printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$id = 1;
- if (!mysqli_bind_param($stmt, 'i', $id) || !mysqli_stmt_execute($stmt))
+ if (!mysqli_stmt_bind_param($stmt, 'i', $id) || !mysqli_stmt_execute($stmt))
printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
mysqli_stmt_close($stmt);
@@ -57,7 +57,7 @@ require_once('skipifconnectfailure.inc');
printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$id = 2;
- if (!mysqli_bind_param($stmt, 'i', $id) || !mysqli_stmt_execute($stmt))
+ if (!mysqli_stmt_bind_param($stmt, 'i', $id) || !mysqli_stmt_execute($stmt))
printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
mysqli_stmt_close($stmt);
@@ -66,7 +66,7 @@ require_once('skipifconnectfailure.inc');
$id = 3;
$where = 2;
- if (!mysqli_bind_param($stmt, 'ii', $id, $where) || !mysqli_stmt_execute($stmt))
+ if (!mysqli_stmt_bind_param($stmt, 'ii', $id, $where) || !mysqli_stmt_execute($stmt))
printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
mysqli_stmt_close($stmt);
@@ -74,7 +74,7 @@ require_once('skipifconnectfailure.inc');
printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$where = 3;
- if (!mysqli_bind_param($stmt, 'i', $where) || !mysqli_stmt_execute($stmt))
+ if (!mysqli_stmt_bind_param($stmt, 'i', $where) || !mysqli_stmt_execute($stmt))
printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
mysqli_stmt_close($stmt);
@@ -82,7 +82,7 @@ require_once('skipifconnectfailure.inc');
printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
$testvar = 'testvar';
- if (!mysqli_bind_param($stmt, 's', $testvar) || !mysqli_stmt_execute($stmt))
+ if (!mysqli_stmt_bind_param($stmt, 's', $testvar) || !mysqli_stmt_execute($stmt))
printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
mysqli_stmt_close($stmt);
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_param.phpt b/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
index 33ef3175ac..71045789bc 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_param.phpt
@@ -379,7 +379,7 @@ require_once('skipifconnectfailure.inc');
/* Check that the function alias exists. It's a deprecated function,
but we have not announce the removal so far, therefore we need to check for it */
- if (!is_null($tmp = @mysqli_bind_param()))
+ if (!is_null($tmp = @mysqli_stmt_bind_param()))
printf("[021] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
print "done!";
?>
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_result.phpt b/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
index 5b7da34d8d..26b39d516f 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
@@ -296,7 +296,7 @@ require_once('skipifconnectfailure.inc');
/* Check that the function alias exists. It's a deprecated function,
but we have not announce the removal so far, therefore we need to check for it */
- if (!is_null($tmp = @mysqli_bind_result()))
+ if (!is_null($tmp = @mysqli_stmt_bind_result()))
printf("[3000] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
$stmt = mysqli_stmt_init($link);
diff --git a/ext/mysqli/tests/mysqli_stmt_fetch.phpt b/ext/mysqli/tests/mysqli_stmt_fetch.phpt
index fca510003e..7598ffeb1b 100644
--- a/ext/mysqli/tests/mysqli_stmt_fetch.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_fetch.phpt
@@ -80,7 +80,7 @@ require_once('skipifconnectfailure.inc');
/* Check that the function alias exists. It's a deprecated function,
but we have not announce the removal so far, therefore we need to check for it */
- if (!is_null($tmp = @mysqli_fetch()))
+ if (!is_null($tmp = @mysqli_stmt_fetch()))
printf("[017] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
print "done!";
diff --git a/ext/mysqli/tests/mysqli_stmt_param_count.phpt b/ext/mysqli/tests/mysqli_stmt_param_count.phpt
index 84bcfd9e8b..3526956898 100644
--- a/ext/mysqli/tests/mysqli_stmt_param_count.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_param_count.phpt
@@ -55,7 +55,7 @@ require_once('skipifconnectfailure.inc');
/* Check that the function alias exists. It's a deprecated function,
but we have not announce the removal so far, therefore we need to check for it */
- if (!is_null($tmp = @mysqli_param_count()))
+ if (!is_null($tmp = @mysqli_stmt_param_count()))
printf("[041] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
print "done!";
diff --git a/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt b/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
index faccdf9e89..f9fd3cf3ca 100644
--- a/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
@@ -87,7 +87,7 @@ require_once('skipifconnectfailure.inc');
/* Check that the function alias exists. It's a deprecated function,
but we have not announce the removal so far, therefore we need to check for it */
- if (!is_null($tmp = @mysqli_get_metadata()))
+ if (!is_null($tmp = @mysqli_stmt_result_metadata()))
printf("[018] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
mysqli_close($link);
diff --git a/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt b/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt
index 1a6a3d7dbf..7e2f8603a8 100644
--- a/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt
@@ -120,7 +120,7 @@ require_once('skipifconnectfailure.inc');
/* Check that the function alias exists. It's a deprecated function,
but we have not announce the removal so far, therefore we need to check for it */
- if (!is_null($tmp = @mysqli_send_long_data()))
+ if (!is_null($tmp = @mysqli_stmt_send_long_data()))
printf("[023] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
mysqli_close($link);