From:             lh at moranti dot com
Operating system: ubuntu
PHP version:      5.2.1
PHP Bug Type:     MSSQL related
Bug description:  mssql_execute errror

Description:
------------
I have a problem executing a stored procedure. 
It fails on my ubuntu installation with php 5.2.1 but when i run it with
php 5.1.6 no problem.

Reproduce code:
---------------
mssql_select_db("dbname", $conn);
$sp = mssql_init("procedurename", $conn); // stored proc name
        $compId=1000;
        $SessionId = substr(session_id(),0,8);
        
        mssql_bind($sp, "@CompID",$compId,SQLVARCHAR);
        mssql_bind($sp, "@SessionID",$SessionId,SQLVARCHAR);
        mssql_bind($sp, "@BasketAmount",$BasketAmount,SQLVARCHAR,TRUE);
        mssql_bind($sp, "@BasketTotalItem",$BasketTotalItem,SQLVARCHAR,TRUE);
        $query  = mssql_execute($sp) or die("could not perform insert");

Actual result:
--------------
Warning: mssql_execute() [function.mssql-execute]: stored procedure
execution failed in /home/www/sitename/test_init.php on line 14

-- 
Edit bug report at http://bugs.php.net/?id=40901&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40901&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40901&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40901&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40901&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40901&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40901&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40901&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40901&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40901&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40901&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40901&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40901&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40901&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40901&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40901&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40901&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40901&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40901&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40901&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40901&r=mysqlcfg

Reply via email to