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

From: Date: Tue, 11 Jul 2006 07:04:16 +0000
Subject: cvs: php-src /ext/mysqli/tests 069.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-39142@lists.php.net to get a copy of this message
hholzgra Tue Jul 11 07:04:16 2006 UTC Added files: /php-src/ext/mysqli/tests 069.phpt Log: test multi_query(), next_result(), more_results() (only partially covered by a bug testcase yet) http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/069.phpt?view=markup&rev=1.1 Index: php-src/ext/mysqli/tests/069.phpt +++ php-src/ext/mysqli/tests/069.phpt --TEST-- mysqli multi_query, next_result, more_results --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php include "connect.inc"; $mysql = new mysqli($host, $user, $passwd, "test"); $mysql->multi_query('SELECT 1;SELECT 2'); do { $res = $mysql->store_result(); if ($mysql->errno == 0) { while ($arr = $res->fetch_assoc()) { var_dump($arr); } $res->free(); } if ($mysql->more_results()) { echo "---\n"; } } while ($mysql->next_result()); $mysql->close(); ?> --EXPECT-- array(1) { [1]=> string(1) "1" } --- array(1) { [2]=> string(1) "2" }

« previous php.cvs (#39142) next »