mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Whitespace/Coding Standards and check added for default connection.
This commit is contained in:
parent
c1ab1512fd
commit
cf0231da96
1 changed files with 40 additions and 26 deletions
|
@ -26,6 +26,20 @@ mysql_list_processes()
|
||||||
var_inspect($row);
|
var_inspect($row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mysql_free_result($res);
|
||||||
|
|
||||||
|
if (!$res = mysql_list_processes())
|
||||||
|
printf("[005] [%d] %s\n", mysql_errno(), mysql_error());
|
||||||
|
|
||||||
|
if (!$num = mysql_num_rows($res))
|
||||||
|
printf("[006] Empty process list? [%d] %s\n", mysql_errno(), mysql_error());
|
||||||
|
|
||||||
|
$row = mysql_fetch_array($res, MYSQL_NUM);
|
||||||
|
if (ini_get('unicode.semantics') && !is_unicode($row[0])) {
|
||||||
|
printf("[007] Check for unicode support\n");
|
||||||
|
var_inspect($row);
|
||||||
|
}
|
||||||
|
|
||||||
mysql_free_result($res);
|
mysql_free_result($res);
|
||||||
mysql_close($link);
|
mysql_close($link);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue