summaryrefslogtreecommitdiff
path: root/ext/mysqli
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2011-09-01 11:48:18 +0000
committerUlf Wendel <uw@php.net>2011-09-01 11:48:18 +0000
commit80ec77df04f0f1be830da4e17e7a5d970469f42a (patch)
treef7d7edfa11c7d4ae717a58f52e6d3e27211581af /ext/mysqli
parent1cef55952fe9b7cd30de50478bc577203342cc97 (diff)
downloadphp-git-80ec77df04f0f1be830da4e17e7a5d970469f42a.tar.gz
Simplify mysqlnd debug trace marginally for debugging
Diffstat (limited to 'ext/mysqli')
-rw-r--r--ext/mysqli/tests/mysqli_stmt_execute_stored_proc_next_result.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_stmt_execute_stored_proc_out.phpt6
2 files changed, 10 insertions, 2 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_next_result.phpt b/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_next_result.phpt
index 1f92ca1f88..1469f65801 100644
--- a/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_next_result.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_next_result.phpt
@@ -15,7 +15,11 @@ if (mysqli_get_server_version($link) < 50503) {
--FILE--
<?php
require_once('connect.inc');
- require_once('table.inc');
+
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
+ $host, $user, $db, $port, $socket);
+ }
if (!mysqli_query($link, 'DROP PROCEDURE IF EXISTS p'))
printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
diff --git a/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_out.phpt b/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_out.phpt
index c6053bcae8..bd3592264c 100644
--- a/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_out.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_execute_stored_proc_out.phpt
@@ -20,7 +20,11 @@ if ($IS_MYSQLND) {
--FILE--
<?php
require_once('connect.inc');
- require_once('table.inc');
+
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
+ $host, $user, $db, $port, $socket);
+ }
if (!mysqli_query($link, 'DROP PROCEDURE IF EXISTS p'))
printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));