|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-29 22:58 UTC] nick dot rawlins at gmail dot com
[2016-10-15 23:15 UTC] kalle@php.net
-Status: Open
+Status: Wont fix
[2016-10-15 23:15 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 08:00:01 2025 UTC |
Description: ------------ I think mssql_execute() should return FALSE (or throw an ErrorException) when RAISERROR() raises error with severity >= mssql_min_error_severity(). Now it returns TRUE if query is run with success, no matter if error is risen. Test script: --------------- CREATE PROCEDURE MySP BEGIN RAISERROR('Error happened', 18, 1) END <?php $conn = mssql_connect(...); mssql_min_error_severity(10); $stmt = mssql_init('MySP', $conn); if (($ret = mssql_execute($stmt)) == false) { echo "Error!"; } else { echo "OK!"; } ?> Expected result: ---------------- I expect the script to output "Error!". Actual result: -------------- That would output "OK!".