Actually two differetnt expected results
This commit is contained in:
parent
783c096496
commit
f330b6e674
|
@ -74,6 +74,9 @@ error messages when trying to retrieve past the end of a result set and when no
|
|||
die("sqlsrv_execute failed.");
|
||||
}
|
||||
|
||||
$textValues = array("This is some text meant to test binding parameters to streams",
|
||||
"This is some more text meant to test binding parameters to streams");
|
||||
$k = 0;
|
||||
while (sqlsrv_fetch($stmt)) {
|
||||
$id = sqlsrv_get_field($stmt, 0, SQLSRV_PHPTYPE_STRING(SQLSRV_ENC_CHAR));
|
||||
echo "$id\n";
|
||||
|
@ -91,7 +94,7 @@ error messages when trying to retrieve past the end of a result set and when no
|
|||
} else {
|
||||
while (!feof($stream)) {
|
||||
$str = fread($stream, 10000);
|
||||
if ($str !== "This is some more text meant to test binding parameters to streams") {
|
||||
if ($str !== $textValues[$k++]) {
|
||||
fatalError("Incorrect data: \'$str\'!\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue