diff options
author | Andrey Hristov <andrey@php.net> | 2008-02-06 13:01:58 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-02-06 13:01:58 +0000 |
commit | 72c97a14e554e07534258301b5008dd4ebbcb234 (patch) | |
tree | 976d3c8a788ab39ddb9c33b3c86c302941a860fa /ext/mysqli | |
parent | 1caa85a682937b6b7732f95f21e4c961482ee4c2 (diff) | |
download | php-git-72c97a14e554e07534258301b5008dd4ebbcb234.tar.gz |
MFH: Fix test
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt b/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt index ce469428f5..bddc6c2bfb 100644 --- a/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt +++ b/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt @@ -298,9 +298,9 @@ if (version_compare(PHP_VERSION, '5.3.0-dev') == -1) $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 @@ if (version_compare(PHP_VERSION, '5.3.0-dev') == -1) $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 @@ string(1) "a" 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 @@ unicode(1) "a" 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! |