diff options
author | Ulf Wendel <uw@php.net> | 2007-07-23 12:04:19 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2007-07-23 12:04:19 +0000 |
commit | 1884a16d01db5bf277d12bda0c62afb7de3f1cf0 (patch) | |
tree | f21b899b680b6c028ec489de44ef77510f5524dd /ext/mysqli/tests/067.phpt | |
parent | 7bfd857fa1e762c4ac5c3abd3eba4c95406af147 (diff) | |
download | php-git-1884a16d01db5bf277d12bda0c62afb7de3f1cf0.tar.gz |
Primarily whitespace/CS - synching with mysqlnd SVN repository
Diffstat (limited to 'ext/mysqli/tests/067.phpt')
-rw-r--r-- | ext/mysqli/tests/067.phpt | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/ext/mysqli/tests/067.phpt b/ext/mysqli/tests/067.phpt index fd6016bd59..b7e457f298 100644 --- a/ext/mysqli/tests/067.phpt +++ b/ext/mysqli/tests/067.phpt @@ -10,9 +10,9 @@ function test: nested selects (cursors) /* skip cursor test for versions < 50004 */ if ((!$IS_MYSQLND && mysqli_get_client_version() < 50009) || - (mysqli_get_server_version($link) < 50009)) { - die(sprintf("skip Client library doesn't support cursors (%s/%s)", - mysqli_get_client_version(), mysqli_get_server_version($link)); + (mysqli_get_server_version($link) < 50009)) { + die(sprintf("skip Client library doesn't support cursors (%s/%s)", + mysqli_get_client_version(), mysqli_get_server_version($link)); } mysqli_close($link); ?> @@ -21,8 +21,8 @@ function test: nested selects (cursors) function open_cursor($mysql, $query) { if (!is_object($stmt = $mysql->prepare($query))) { - printf("[001] Cannot create statement object for '%s', [%d] %s\n", - $query, $mysql->errno, $mysql->error); + printf("[001] Cannot create statement object for '%s', [%d] %s\n", + $query, $mysql->errno, $mysql->error); } $stmt->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_READ_ONLY); @@ -30,11 +30,16 @@ function test: nested selects (cursors) } include "connect.inc"; - $a = array(); - - /*** test mysqli_connect 127.0.0.1 ***/ $mysql = new mysqli($host, $user, $passwd, $db, $port, $socket); + if ((!$IS_MYSQLND && mysqli_get_client_version() < 50009) || + (mysqli_get_server_version($mysql) < 50009)) { + /* we really want to skip it... */ + die(var_dump(63)); + } + + $a = array(); + for ($i=0;$i < 3; $i++) { $mysql->query("DROP TABLE IF EXISTS cursor$i"); $mysql->query("CREATE TABLE cursor$i (a int not null) ENGINE=" . $engine); |