php-src/ext/mysqli/tests/041.phpt
Ulf Wendel 2a191bb06d As usual:
- connection parameter tweaking
 - a bit of whitespace here and there
 - use UEXPECTF if need be
2007-07-12 20:55:12 +00:00

24 lines
504 B
PHP

--TEST--
function test: mysqli_warning_count()
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
include "connect.inc";
/*** test mysqli_connect 127.0.0.1 ***/
$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
mysqli_select_db($link, $db);
mysqli_query($link, "DROP TABLE IF EXISTS test_warnings");
mysqli_query($link, "DROP TABLE IF EXISTS test_warnings");
var_dump(mysqli_warning_count($link));
mysqli_close($link);
print "done!";
?>
--EXPECT--
int(1)
done!