cvs: php-src /ext/mysqli/tests 041.phpt

From: Date: Fri, 08 Jul 2005 08:53:26 +0000
Subject: cvs: php-src /ext/mysqli/tests 041.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32799@lists.php.net to get a copy of this message
sniper Fri Jul 8 04:53:26 2005 EDT Modified files: /php-src/ext/mysqli/tests 041.phpt Log: Make sure we get a WARNING and not an ERROR here :) http://cvs.php.net/diff.php/php-src/ext/mysqli/tests/041.phpt?r1=1.4&r2=1.5&ty=u Index: php-src/ext/mysqli/tests/041.phpt diff -u php-src/ext/mysqli/tests/041.phpt:1.4 php-src/ext/mysqli/tests/041.phpt:1.5 --- php-src/ext/mysqli/tests/041.phpt:1.4 Fri Jan 7 09:59:59 2005 +++ php-src/ext/mysqli/tests/041.phpt Fri Jul 8 04:53:25 2005 @@ -9,16 +9,12 @@ /*** 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); ?>

« previous php.cvs (#32799) next »