mirror of
https://github.com/php/php-src.git
synced 2025-01-09 12:34:14 +08:00
24 lines
453 B
PHP
24 lines
453 B
PHP
--TEST--
|
|
resultset constructor
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once("connect.inc");
|
|
|
|
$mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
|
|
|
|
$stmt = new mysqli_stmt($mysql, "SELECT 'foo' FROM DUAL");
|
|
$stmt->execute();
|
|
$stmt->bind_result($foo);
|
|
$stmt->fetch();
|
|
$stmt->close();
|
|
$mysql->close();
|
|
|
|
var_dump($foo);
|
|
?>
|
|
--EXPECTF--
|
|
%unicode|string%(3) "foo"
|