2003-02-14 19:49:35 +00:00
|
|
|
--TEST--
|
|
|
|
mysqli_bind_result (SHOW)
|
2004-02-16 15:32:46 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
include "connect.inc";
|
2004-12-04 08:16:04 +00:00
|
|
|
$link = mysqli_connect($host, $user, $passwd);
|
2004-02-16 15:32:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
$stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
|
|
|
|
mysqli_execute($stmt);
|
|
|
|
|
|
|
|
if (!$stmt->field_count) {
|
|
|
|
printf("skip SHOW command is not supported in prepared statements.");
|
|
|
|
}
|
|
|
|
$stmt->close();
|
|
|
|
mysqli_close($link);
|
|
|
|
?>
|
2004-12-04 08:50:33 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php require_once('skipif.inc'); ?>
|
2003-02-14 19:49:35 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
include "connect.inc";
|
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2004-12-04 08:16:04 +00:00
|
|
|
$link = mysqli_connect($host, $user, $passwd);
|
2003-02-14 19:49:35 +00:00
|
|
|
|
|
|
|
$stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
|
|
|
|
mysqli_execute($stmt);
|
2004-02-16 15:32:46 +00:00
|
|
|
|
2003-06-28 21:30:58 +00:00
|
|
|
mysqli_bind_result($stmt, $c1, $c2);
|
2003-02-14 19:49:35 +00:00
|
|
|
mysqli_fetch($stmt);
|
|
|
|
mysqli_stmt_close($stmt);
|
|
|
|
$test = array ($c1,$c2);
|
|
|
|
|
|
|
|
var_dump($test);
|
|
|
|
|
|
|
|
mysqli_close($link);
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
array(2) {
|
|
|
|
[0]=>
|
|
|
|
string(4) "port"
|
|
|
|
[1]=>
|
|
|
|
string(4) "3306"
|
|
|
|
}
|