|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-05 16:47 UTC] vrana@php.net
[2008-11-05 16:47 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 09:00:02 2026 UTC |
Description: ------------ The mssql_bind function documentation states: === $var - The PHP variable you'll bind the MSSQL parameter to. You can pass it by value, or by reference, to retrieve OUTPUT and RETVAL values after the procedure execution. === If the value is bound by value, it a random chunk of memory to be bound as the value. I am using the latest TDS stable, using TDS version 8.0 talking to a Microsoft SQL 2000 Server. Reproduce code: --------------- $value = 'Test'; $proc = mssql_init('myProc'); mssql_bind($proc, '@myVal', $value, SQLVARCHAR, false, false, 50); var_dump(mssql_execute($proc)); Expected result: ---------------- The database should receive the following command: exec myProc @myVal = 'Test' Actual result: -------------- The database server receives the following command: exec myProc @myVal = ';?e