--TEST-- Complex Stored Proc Test --DESCRIPTION-- Test output string parameters with rows affected return results before output parameter. --ENV-- PHPT_EXEC=true --SKIPIF-- --FILE-- 1, "Intro" => 'Test Value 1'), $r, AE\INSERT_PREPARE_PARAMS); insertCheck($stmt1); $stmt2 = AE\insertRow($conn1, $table3, array("DataID" => 2, "Intro" => 'Test Value 2'), $r, AE\INSERT_PREPARE_PARAMS); insertCheck($stmt2); $stmt3 = AE\insertRow($conn1, $table3, array("DataID" => 3, "Intro" => 'Test Value 3'), $r, AE\INSERT_PREPARE_PARAMS); insertCheck($stmt3); $stmt4 = callProcEx($conn1, $procName, "", "?, ?, ?, ?, ?", $callArgs); $result = sqlsrv_next_result($stmt4); while ($result != null) { if ($result === false) { fatalError("Failed to execute sqlsrv_next_result"); } $result = sqlsrv_next_result($stmt4); } sqlsrv_free_stmt($stmt4); dropProc($conn1, $procName); echo "$introText\n"; dropTable($conn1, $table1); dropTable($conn1, $table2); dropTable($conn1, $table3); sqlsrv_close($conn1); endTest($testName); } try { storedProcCheck(); } catch (Exception $e) { echo $e->getMessage(); } ?> --EXPECT-- Test Value 1 Test "ResultSet with Stored Proc" completed successfully.