uw Fri May 29 13:12:39 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/mysqli/tests bug44897.phpt
Log:
MFH - Skip test for libmysql. The MySQL C-API does not support it, mysqlnd
does...
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/bug44897.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/mysqli/tests/bug44897.phpt
diff -u php-src/ext/mysqli/tests/bug44897.phpt:1.1.2.2
php-src/ext/mysqli/tests/bug44897.phpt:1.1.2.3
--- php-src/ext/mysqli/tests/bug44897.phpt:1.1.2.2 Wed Jul 23 14:07:38 2008
+++ php-src/ext/mysqli/tests/bug44897.phpt Fri May 29 13:12:39 2009
@@ -1,10 +1,15 @@
--TEST--
-Bug #44879 ( failed to prepare statement)
+Bug #44879 (failed to prepare statement)
--SKIPIF--
<?php
require_once('skipif.inc');
+
+if (!stristr(mysqli_get_client_info(), 'mysqlnd'))
+ die("skip: only available in mysqlnd");
+
require_once('skipifconnectfailure.inc');
require_once('connect.inc');
+
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()));
}
@@ -45,7 +50,8 @@
$stmt2 = $link->prepare('SELECT label FROM test WHERE id = ?');
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 {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php