From: vladik_g at mail dot ru
Operating system: Linux RedHat 9
PHP version: 5CVS-2005-11-08 (snap)
PHP Bug Type: MSSQL related
Bug description: binding of stored proc input parameters is not working
Description:
------------
binding input parameters is not really working.
This mechanism was working well in 4-th family of php.
Reproduce code:
---------------
php code here:
mssql_bind($Proc,'@Param1',$Param1,SQLVARCHAR,false,false,30);
mssql_execute($Proc,FALSE) ||
print(mssql_get_last_message());
MSSQL code here:
CREATE PROCEDURE [dbo].[test]
(
@Param1 VARCHAR(30)
)
AS
RETURN 0
GO
Expected result:
----------------
successfull execution
Actual result:
--------------
Procedure 'test' expects parameter '@Param1', which was not supplied.
--
Edit bug report at http://bugs.php.net/?id=35158&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35158&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=35158&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=35158&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35158&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35158&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35158&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35158&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35158&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35158&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35158&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35158&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35158&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35158&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35158&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35158&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35158&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35158&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35158&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35158&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35158&r=mysqlcfg