cvs: php-src /ext/mysqli/tests bug44897.phpt

From: Date: Fri, 29 May 2009 13:12:24 +0000
Subject: cvs: php-src /ext/mysqli/tests bug44897.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58407@lists.php.net to get a copy of this message
uw Fri May 29 13:12:24 2009 UTC Modified files: /php-src/ext/mysqli/tests bug44897.phpt Log: 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&r2=1.2&diff_format=u Index: php-src/ext/mysqli/tests/bug44897.phpt diff -u php-src/ext/mysqli/tests/bug44897.phpt:1.1 php-src/ext/mysqli/tests/bug44897.phpt:1.2 --- php-src/ext/mysqli/tests/bug44897.phpt:1.1 Wed Jul 23 14:06:31 2008 +++ php-src/ext/mysqli/tests/bug44897.phpt Fri May 29 13:12:24 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 {

« previous php.cvs (#58407) next »