mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
MFH - Skip test for libmysql. The MySQL C-API does not support it, mysqlnd does...
This commit is contained in:
parent
0f5e7e2bf9
commit
13d92e6957
1 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,15 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #44879 ( failed to prepare statement)
|
Bug #44879 (failed to prepare statement)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
require_once('skipif.inc');
|
require_once('skipif.inc');
|
||||||
|
|
||||||
|
if (!stristr(mysqli_get_client_info(), 'mysqlnd'))
|
||||||
|
die("skip: only available in mysqlnd");
|
||||||
|
|
||||||
require_once('skipifconnectfailure.inc');
|
require_once('skipifconnectfailure.inc');
|
||||||
require_once('connect.inc');
|
require_once('connect.inc');
|
||||||
|
|
||||||
if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
|
if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
|
||||||
die(sprintf('skip Cannot connect to MySQL, [%d] %s.', mysqli_connect_errno(), mysqli_connect_error()));
|
die(sprintf('skip Cannot connect to MySQL, [%d] %s.', mysqli_connect_errno(), mysqli_connect_error()));
|
||||||
}
|
}
|
||||||
|
@ -45,7 +50,8 @@ if (mysqli_get_server_version($link) <= 50000) {
|
||||||
$stmt2 = $link->prepare('SELECT label FROM test WHERE id = ?');
|
$stmt2 = $link->prepare('SELECT label FROM test WHERE id = ?');
|
||||||
if (!is_object($stmt2)) {
|
if (!is_object($stmt2)) {
|
||||||
|
|
||||||
printf("[007] Failed to create new statement object\n");
|
printf("[007] Failed to create new statement object, [%d] %s\n",
|
||||||
|
$link->errno, $link->error);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue