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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user