andrey Thu May 28 17:49:00 2009 UTC
Modified files:
/php-src/ext/mysqli/tests mysqli_fetch_field_oo.phpt
mysqli_stmt_send_long_data.phpt
Log:
Fix a valgrind warning as well as more trace log information
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt?r1=1.4&r2=1.5&diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt
diff -u php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt:1.4
php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt:1.5
--- php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt:1.4 Thu May 28
14:11:40 2009
+++ php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt Thu May 28 17:49:00 2009
@@ -31,8 +31,9 @@
if (!is_null($tmp = @$res->fetch_field($link)))
printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp),
$tmp);
- while ($tmp = $res->fetch_field())
+ while ($tmp = $res->fetch_field()) {
var_dump($tmp);
+ }
var_dump($tmp);
$res->free_result();
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt?r1=1.7&r2=1.8&diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt
diff -u php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.7
php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.8
--- php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.7 Thu May
28 15:47:08 2009
+++ php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt Thu May 28
17:49:00 2009
@@ -80,7 +80,7 @@
printf("[012] Expecting boolean/false, got %s/%s. [%d] %s\n",
gettype($tmp), $tmp, mysqli_stmt_errno($stmt),
mysqli_stmt_error($stmt));
- if (false !== ($tmp = mysqli_stmt_send_long_data($stmt, PHP_INT_MAX +
1, $blob)))
+ if (false !== ($tmp = @mysqli_stmt_send_long_data($stmt, PHP_INT_MAX +
1, $blob)))
printf("[013] Expecting boolean/false, got %s/%s. [%d] %s\n",
gettype($tmp), $tmp, mysqli_stmt_errno($stmt),
mysqli_stmt_error($stmt));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php