1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

Simplify mysqlnd debug trace marginally for debugging

This commit is contained in:
Ulf Wendel
2011-09-01 11:48:18 +00:00
parent 1cef55952f
commit 80ec77df04
2 changed files with 10 additions and 2 deletions
@@ -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));
@@ -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));