uw Wed Jul 11 15:49:32 2007 UTC Modified files: /php-src/ext/mysql/tests mysql_list_processes.phpt Log: Whitespace/Coding Standards and check added for default connection. http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/tests/mysql_list_processes.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/mysql/tests/mysql_list_processes.phpt diff -u php-src/ext/mysql/tests/mysql_list_processes.phpt:1.1 php-src/ext/mysql/tests/mysql_list_processes.phpt:1.2 --- php-src/ext/mysql/tests/mysql_list_processes.phpt:1.1 Sun Nov 19 12:14:44 2006 +++ php-src/ext/mysql/tests/mysql_list_processes.phpt Wed Jul 11 15:49:32 2007 @@ -4,32 +4,46 @@ <?php require_once('skipif.inc'); ?> --FILE-- <?php - include "connect.inc"; +include "connect.inc"; - $tmp = NULL; - $link = NULL; - - if (NULL !== ($tmp = @mysql_list_processes($link, $link))) - printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); - - require('table.inc'); - - if (!$res = mysql_list_processes($link)) - printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link)); - - if (!$num = mysql_num_rows($res)) - printf("[003] Empty process list? [%d] %s\n", mysql_errno($link), mysql_error($link)); - - $row = mysql_fetch_array($res, MYSQL_NUM); - if (ini_get('unicode.semantics') && !is_unicode($row[0])) { - printf("[004] Check for unicode support\n"); - var_inspect($row); - } - - mysql_free_result($res); - mysql_close($link); - - print "done!\n"; +$tmp = NULL; +$link = NULL; + +if (NULL !== ($tmp = @mysql_list_processes($link, $link))) + printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); + +require('table.inc'); + +if (!$res = mysql_list_processes($link)) + printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link)); + +if (!$num = mysql_num_rows($res)) + printf("[003] Empty process list? [%d] %s\n", mysql_errno($link), mysql_error($link)); + +$row = mysql_fetch_array($res, MYSQL_NUM); +if (ini_get('unicode.semantics') && !is_unicode($row[0])) { + printf("[004] Check for unicode support\n"); + 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_close($link); + +print "done!\n"; ?> --EXPECTF-- -done! +done! \ No newline at end of file
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php