cvs: php-src(PHP_5_3) /ext/mysqli/tests mysqli_stmt_bind_param_call_user_func.phpt
| From: | Andrey Hristov | Date: | Wed, 06 Feb 2008 13:01:58 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/mysqli/tests mysqli_stmt_bind_param_call_user_func.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48378@lists.php.net to get a copy of this message | ||
andrey Wed Feb 6 13:01:58 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/mysqli/tests
mysqli_stmt_bind_param_call_user_func.phpt
Log:
MFH: Fix test
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt
diff -u php-src/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt:1.1.2.2
php-src/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt:1.1.2.3
--- php-src/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt:1.1.2.2 Fri Jan 4 18:20:53
2008
+++ php-src/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt Wed Feb 6 13:01:58 2008
@@ -298,9 +298,9 @@
$id = 1;
$params = array(
0 => 'i',
- 1 => $id
+ 1 => &$id
);
- if (call_user_func_array(array($stmt, 'bind_param'), $params))
+ if (!call_user_func_array(array($stmt, 'bind_param'), $params))
printf("[047] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
if (!mysqli_stmt_execute($stmt))
@@ -318,9 +318,9 @@
$params = array(
0 => $stmt,
1 => 'i',
- 2 => $id
+ 2 => &$id
);
- if (call_user_func_array('mysqli_stmt_bind_param', $params))
+ if (!call_user_func_array('mysqli_stmt_bind_param', $params))
printf("[051] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
if (!mysqli_stmt_execute($stmt))
@@ -359,8 +359,6 @@
Call user func, procedural, using references for bound parameter, using variable for resource,
using constant for types, array
int(1)
string(1) "a"
-[048] [2031] (Message might vary with MySQL Server version, e.g. No data supplied for parameters in
prepared statement)
-[052] [2031] (Message might vary with MySQL Server version, e.g. No data supplied for parameters in
prepared statement)
done!
--UEXPECTF--
Regular, procedural, using variables
@@ -393,6 +391,4 @@
Call user func, procedural, using references for bound parameter, using variable for resource,
using constant for types, array
int(1)
unicode(1) "a"
-[048] [2031] (Message might vary with MySQL Server version, e.g. No data supplied for parameters in
prepared statement)
-[052] [2031] (Message might vary with MySQL Server version, e.g. No data supplied for parameters in
prepared statement)
-done!
\ No newline at end of file
+done!