--TEST-- Stored Proc Query Test --DESCRIPTION-- Verifies the data retrieved via a store procedure to validate behavior of queries including SQLSRV_PARAM_OUT qualifiers. Checks all numeric data types (i.e. 10 SQL types). --ENV-- PHPT_EXEC=true --SKIPIF-- --FILE-- = 1 && $type < 5) { // for any kinds of integers convert the inputs to integers first // AE is stricter with data types $inData1 = floor($inData1); $inData2 = floor($inData2); } $callValues = array(array($inData1, null, null, $driverType), array($inData2, null, null, $driverType), array(&$callResult, SQLSRV_PARAM_OUT, null, $driverType)); } callProc($conn, $procName, $callArgs, $callValues); dropProc($conn, $procName); traceData($dataType, "".$inData1." + ".$inData2." = ".$callResult); if ($callResult != $outData) { die("Expected result for ".$dataType." was ".$outData); } } try { procQuery(1, 10); } catch (Exception $e) { echo $e->getMessage(); } ?> --EXPECT-- Test "Stored Proc Query" completed successfully.