You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strpos($err[0][2], 'The connection cannot process this operation because there is a statement with pending results')===false) {
199
+
echo"Error: Wrong error message.\n";
200
+
print_r($err);
201
+
}
192
202
}
193
203
else
194
204
{
@@ -199,7 +209,7 @@ sqlsrv_close( $conn );
199
209
sqlsrv_close( $conn_break );
200
210
201
211
?>
202
-
--EXPECTREGEX--
212
+
--EXPECT--
203
213
Statement 1 successful.
204
214
16 rows in result set.
205
215
Statement 2 successful.
@@ -211,51 +221,5 @@ Statement 4 successful.
211
221
Statement 5 successful.
212
222
rows in result set.
213
223
Error in statement 6.
214
-
Array
215
-
\(
216
-
\[0\] => Array
217
-
\(
218
-
\[0\] => 08S01
219
-
\[SQLSTATE\] => 08S01
220
-
\[1\] => (10054|104)
221
-
\[code\] => (10054|104)
222
-
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]TCP Provider: (An existing connection was forcibly closed by the remote host\.\n|Error code 0x68|Error code 0x2746)
223
-
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]TCP Provider: (An existing connection was forcibly closed by the remote host\.\n|Error code 0x68|Error code 0x2746)
224
-
\)
225
-
226
-
\[1\] => Array
227
-
\(
228
-
\[0\] => 08S01
229
-
\[SQLSTATE\] => 08S01
230
-
\[1\] => (10054|104)
231
-
\[code\] => (10054|104)
232
-
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]Communication link failure
233
-
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]Communication link failure
234
-
\)
235
-
236
-
\)
237
224
Statement 7 successful.
238
225
Error in statement 8.
239
-
Array
240
-
\(
241
-
\[0\] => Array
242
-
\(
243
-
\[0\] => IMSSP
244
-
\[SQLSTATE\] => IMSSP
245
-
\[1\] => -44
246
-
\[code\] => -44
247
-
\[2\] => The connection cannot process this operation because there is a statement with pending results. To make the connection available for other queries, either fetch all results or cancel or free the statement. For more information, see the product documentation about the MultipleActiveResultSets connection option.
248
-
\[message\] => The connection cannot process this operation because there is a statement with pending results. To make the connection available for other queries, either fetch all results or cancel or free the statement. For more information, see the product documentation about the MultipleActiveResultSets connection option.
249
-
\)
250
-
251
-
\[1\] => Array
252
-
\(
253
-
\[0\] => HY000
254
-
\[SQLSTATE\] => HY000
255
-
\[1\] => 0
256
-
\[code\] => 0
257
-
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]Connection is busy with results for another command
258
-
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]Connection is busy with results for another command
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\](TCP Provider: An existing connection was forcibly closed by the remote host\.\n|SMux Provider: Physical connection is not usable \[xFFFFFFFF\]\. )
193
-
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\](TCP Provider: An existing connection was forcibly closed by the remote host\.\n|SMux Provider: Physical connection is not usable \[xFFFFFFFF\]\. )
194
-
\)
195
-
196
-
\[1\] => Array
197
-
\(
198
-
\[0\] => 08S02
199
-
\[SQLSTATE\] => 08S02
200
-
\[1\] => (10054|-1)
201
-
\[code\] => (10054|-1)
202
-
\[2\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]Unable to open a logical session
203
-
\[message\] => \[Microsoft\]\[ODBC Driver 1[1-9] for SQL Server\]Unable to open a logical session
0 commit comments