From:             Jeff dot Leigh at Premconf dot com
Operating system: Windows 2000
PHP version:      4.3.5
PHP Bug Type:     MSSQL related
Bug description:  Stored Procedure with no result sets doesn't set output params

Description:
------------
Create an MSSQL stored procedure that does not return any result sets.  It
only takes input parameters, and returns parameters.



Create php code to called stored procedure, bind, etc, etc.  



Execute the procedure.  You will not get any bug reported, and the output
param variables will not be changed.  mssql_execute will not return
anything, since there are no result sets.  Thus, 'mssql_next_result'
cannot be called.



If I force the stored procedure to return at least one result set, the
output parameter is set properly.



(There is nothing wrong with my MSSQL configuration from what I can tell. 
I can connect and do standard queries just fine.) 



Oh, and the current documentation says there is an optional second
parameter for mssql_execute()... a boolean.  If I try to use it, I get an
error regarding an incorrect number of arguments to mssql_execute().  I'm
assuming this was depreciated, but not documented.


-- 
Edit bug report at http://bugs.php.net/?id=27764&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27764&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27764&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27764&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27764&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27764&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27764&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27764&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27764&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27764&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27764&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27764&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27764&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27764&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27764&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27764&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27764&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27764&r=float

Reply via email to