cvs: php-src(PHP_5_3) /ext/mysqli/tests mysqli_fetch_field_oo.phpt mysqli_stmt_send_long_data.phpt
| From: | Andrey Hristov | Date: | Thu, 28 May 2009 17:49:29 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/mysqli/tests mysqli_fetch_field_oo.phpt mysqli_stmt_send_long_data.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58353@lists.php.net to get a copy of this message | ||
andrey Thu May 28 17:49:29 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/mysqli/tests mysqli_fetch_field_oo.phpt
mysqli_stmt_send_long_data.phpt
Log:
MFH: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.2.2.3&r2=1.2.2.4&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.2.2.3
php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt:1.2.2.4
--- php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt:1.2.2.3 Thu May 28 14:33:42 2009
+++ php-src/ext/mysqli/tests/mysqli_fetch_field_oo.phpt Thu May 28 17:49:29 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.2.2.7&r2=1.2.2.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.2.2.7
php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.2.2.8
--- php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt:1.2.2.7 Thu May 28 15:49:14 2009
+++ php-src/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt Thu May 28 17:49:29 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));