From: foobar Date: Fri, 8 Jul 2005 08:53:25 +0000 (+0000) Subject: Make sure we get a WARNING and not an ERROR here :) X-Git-Tag: php-5.1.0b3~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7e85b3c07e7f842c84674be73fa56470d728970;p=php Make sure we get a WARNING and not an ERROR here :) --- diff --git a/ext/mysqli/tests/041.phpt b/ext/mysqli/tests/041.phpt index d6a9f954d0..90bed1ad49 100644 --- a/ext/mysqli/tests/041.phpt +++ b/ext/mysqli/tests/041.phpt @@ -9,16 +9,12 @@ function test: mysqli_warning_count() /*** test mysqli_connect 127.0.0.1 ***/ $link = mysqli_connect($host, $user, $passwd); - mysqli_select_db($link, "test"); + mysqli_query($link, "DROP TABLE IF EXISTS test_warnings"); mysqli_query($link, "DROP TABLE IF EXISTS test_warnings"); - mysqli_query($link, "CREATE TABLE test_warnings (a int not null"); - mysqli_query($link, "INSERT INTO test_warnings VALUES (NULL)"); - - $num = mysqli_warning_count($link); - var_dump($num); + var_dump(mysqli_warning_count($link)); mysqli_close($link); ?>